@@ -137,11 +137,11 @@ test("innerWidth()", function() {
137137 expect ( 6 ) ;
138138
139139 var $div , div ,
140- winWidth = jQuery ( window ) . width ( ) ,
141- docWidth = jQuery ( document ) . width ( ) ;
140+ $win = jQuery ( window ) ,
141+ $doc = jQuery ( document ) ;
142142
143- equal ( jQuery ( window ) . innerWidth ( ) , winWidth , "Test on window" ) ;
144- equal ( jQuery ( document ) . innerWidth ( ) , docWidth , "Test on document" ) ;
143+ equal ( jQuery ( window ) . innerWidth ( ) , $win . width ( ) , "Test on window" ) ;
144+ equal ( jQuery ( document ) . innerWidth ( ) , $doc . width ( ) , "Test on document" ) ;
145145
146146 $div = jQuery ( "#nothiddendiv" ) ;
147147 // set styles
@@ -173,11 +173,11 @@ test("innerHeight()", function() {
173173 expect ( 6 ) ;
174174
175175 var $div , div ,
176- winHeight = jQuery ( window ) . height ( ) ,
177- docHeight = jQuery ( document ) . height ( ) ;
176+ $win = jQuery ( window ) ,
177+ $doc = jQuery ( document ) ;
178178
179- equal ( jQuery ( window ) . innerHeight ( ) , winHeight , "Test on window" ) ;
180- equal ( jQuery ( document ) . innerHeight ( ) , docHeight , "Test on document" ) ;
179+ equal ( jQuery ( window ) . innerHeight ( ) , $win . height ( ) , "Test on window" ) ;
180+ equal ( jQuery ( document ) . innerHeight ( ) , $doc . height ( ) , "Test on document" ) ;
181181
182182 $div = jQuery ( "#nothiddendiv" ) ;
183183 // set styles
@@ -209,13 +209,13 @@ test("outerWidth()", function() {
209209 expect ( 11 ) ;
210210
211211 var $div , div ,
212- winWidth = jQuery ( window ) . width ( ) ,
213- docWidth = jQuery ( document ) . width ( ) ;
212+ $win = jQuery ( window ) ,
213+ $doc = jQuery ( document ) ;
214214
215- equal ( jQuery ( window ) . outerWidth ( ) , winWidth , "Test on window without margin option" ) ;
216- equal ( jQuery ( window ) . outerWidth ( true ) , winWidth , "Test on window with margin option" ) ;
217- equal ( jQuery ( document ) . outerWidth ( ) , docWidth , "Test on document without margin option" ) ;
218- equal ( jQuery ( document ) . outerWidth ( true ) , docWidth , "Test on document with margin option" ) ;
215+ equal ( jQuery ( window ) . outerWidth ( ) , $win . width ( ) , "Test on window without margin option" ) ;
216+ equal ( jQuery ( window ) . outerWidth ( true ) , $win . width ( ) , "Test on window with margin option" ) ;
217+ equal ( jQuery ( document ) . outerWidth ( ) , $doc . width ( ) , "Test on document without margin option" ) ;
218+ equal ( jQuery ( document ) . outerWidth ( true ) , $doc . width ( ) , "Test on document with margin option" ) ;
219219
220220 $div = jQuery ( "#nothiddendiv" ) ;
221221 $div . css ( "width" , 30 ) ;
@@ -356,14 +356,13 @@ test("outerHeight()", function() {
356356 expect ( 11 ) ;
357357
358358 var $div , div ,
359- winHeight = jQuery ( window ) . height ( ) ,
360- docHeight = jQuery ( document ) . height ( ) ;
359+ $win = jQuery ( window ) ,
360+ $doc = jQuery ( document ) ;
361361
362-
363- equal ( jQuery ( window ) . outerHeight ( ) , winHeight , "Test on window without margin option" ) ;
364- equal ( jQuery ( window ) . outerHeight ( true ) , winHeight , "Test on window with margin option" ) ;
365- equal ( jQuery ( document ) . outerHeight ( ) , docHeight , "Test on document without margin option" ) ;
366- equal ( jQuery ( document ) . outerHeight ( true ) , docHeight , "Test on document with margin option" ) ;
362+ equal ( jQuery ( window ) . outerHeight ( ) , $win . height ( ) , "Test on window without margin option" ) ;
363+ equal ( jQuery ( window ) . outerHeight ( true ) , $win . height ( ) , "Test on window with margin option" ) ;
364+ equal ( jQuery ( document ) . outerHeight ( ) , $doc . height ( ) , "Test on document without margin option" ) ;
365+ equal ( jQuery ( document ) . outerHeight ( true ) , $doc . height ( ) , "Test on document with margin option" ) ;
367366
368367 $div = jQuery ( "#nothiddendiv" ) ;
369368 $div . css ( "height" , 30 ) ;
0 commit comments