@@ -103,7 +103,7 @@ test("height() with function args", function() {
103
103
} ) ;
104
104
105
105
test ( "innerWidth()" , function ( ) {
106
- expect ( 3 ) ;
106
+ expect ( 4 ) ;
107
107
108
108
var $div = jQuery ( "#nothiddendiv" ) ;
109
109
// set styles
@@ -121,10 +121,15 @@ test("innerWidth()", function() {
121
121
122
122
// reset styles
123
123
$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." ) ;
124
129
} ) ;
125
130
126
131
test ( "innerHeight()" , function ( ) {
127
- expect ( 3 ) ;
132
+ expect ( 4 ) ;
128
133
129
134
var $div = jQuery ( "#nothiddendiv" ) ;
130
135
// set styles
@@ -142,10 +147,15 @@ test("innerHeight()", function() {
142
147
143
148
// reset styles
144
149
$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." ) ;
145
155
} ) ;
146
156
147
157
test ( "outerWidth()" , function ( ) {
148
- expect ( 6 ) ;
158
+ expect ( 7 ) ;
149
159
150
160
var $div = jQuery ( "#nothiddendiv" ) ;
151
161
$div . css ( "width" , 30 ) ;
@@ -164,10 +174,15 @@ test("outerWidth()", function() {
164
174
165
175
// reset styles
166
176
$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." ) ;
167
182
} ) ;
168
183
169
184
test ( "outerHeight()" , function ( ) {
170
- expect ( 6 ) ;
185
+ expect ( 7 ) ;
171
186
172
187
var $div = jQuery ( "#nothiddendiv" ) ;
173
188
$div . css ( "height" , 30 ) ;
@@ -185,4 +200,9 @@ test("outerHeight()", function() {
185
200
186
201
// reset styles
187
202
$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." ) ;
188
208
} ) ;
0 commit comments