@@ -103,7 +103,7 @@ test("height() with function args", function() {
103103} ) ;
104104
105105test ( "innerWidth()" , function ( ) {
106- expect ( 3 ) ;
106+ expect ( 4 ) ;
107107
108108 var $div = jQuery ( "#nothiddendiv" ) ;
109109 // set styles
@@ -121,10 +121,15 @@ test("innerWidth()", function() {
121121
122122 // reset styles
123123 $div . css ( { display : "" , border : "" , padding : "" , width : "" , height : "" } ) ;
124+
125+ var div = jQuery ( "<div>" ) ;
126+
127+ // Temporarily require 0 for backwards compat - should be auto
128+ equals ( div . innerWidth ( ) , 0 , "Make sure that disconnected nodes are handled." ) ;
124129} ) ;
125130
126131test ( "innerHeight()" , function ( ) {
127- expect ( 3 ) ;
132+ expect ( 4 ) ;
128133
129134 var $div = jQuery ( "#nothiddendiv" ) ;
130135 // set styles
@@ -142,10 +147,15 @@ test("innerHeight()", function() {
142147
143148 // reset styles
144149 $div . css ( { display : "" , border : "" , padding : "" , width : "" , height : "" } ) ;
150+
151+ var div = jQuery ( "<div>" ) ;
152+
153+ // Temporarily require 0 for backwards compat - should be auto
154+ equals ( div . innerHeight ( ) , 0 , "Make sure that disconnected nodes are handled." ) ;
145155} ) ;
146156
147157test ( "outerWidth()" , function ( ) {
148- expect ( 6 ) ;
158+ expect ( 7 ) ;
149159
150160 var $div = jQuery ( "#nothiddendiv" ) ;
151161 $div . css ( "width" , 30 ) ;
@@ -164,10 +174,15 @@ test("outerWidth()", function() {
164174
165175 // reset styles
166176 $div . css ( { position : "" , display : "" , border : "" , padding : "" , width : "" , height : "" } ) ;
177+
178+ var div = jQuery ( "<div>" ) ;
179+
180+ // Temporarily require 0 for backwards compat - should be auto
181+ equals ( div . outerWidth ( ) , 0 , "Make sure that disconnected nodes are handled." ) ;
167182} ) ;
168183
169184test ( "outerHeight()" , function ( ) {
170- expect ( 6 ) ;
185+ expect ( 7 ) ;
171186
172187 var $div = jQuery ( "#nothiddendiv" ) ;
173188 $div . css ( "height" , 30 ) ;
@@ -185,4 +200,9 @@ test("outerHeight()", function() {
185200
186201 // reset styles
187202 $div . css ( { display : "" , border : "" , padding : "" , width : "" , height : "" } ) ;
203+
204+ var div = jQuery ( "<div>" ) ;
205+
206+ // Temporarily require 0 for backwards compat - should be auto
207+ equals ( div . outerHeight ( ) , 0 , "Make sure that disconnected nodes are handled." ) ;
188208} ) ;
0 commit comments