@@ -107,7 +107,13 @@ test("height() with function args", function() {
107
107
} ) ;
108
108
109
109
test ( "innerWidth()" , function ( ) {
110
- expect ( 4 ) ;
110
+ expect ( 8 ) ;
111
+
112
+ equals ( jQuery ( window ) . innerWidth ( ) , null , "Test on window without margin option" ) ;
113
+ equals ( jQuery ( window ) . innerWidth ( true ) , null , "Test on window with margin option" ) ;
114
+
115
+ equals ( jQuery ( document ) . innerWidth ( ) , null , "Test on document without margin option" ) ;
116
+ equals ( jQuery ( document ) . innerWidth ( true ) , null , "Test on document with margin option" ) ;
111
117
112
118
var $div = jQuery ( "#nothiddendiv" ) ;
113
119
// set styles
@@ -136,7 +142,13 @@ test("innerWidth()", function() {
136
142
} ) ;
137
143
138
144
test ( "innerHeight()" , function ( ) {
139
- expect ( 4 ) ;
145
+ expect ( 8 ) ;
146
+
147
+ equals ( jQuery ( window ) . innerHeight ( ) , null , "Test on window without margin option" ) ;
148
+ equals ( jQuery ( window ) . innerHeight ( true ) , null , "Test on window with margin option" ) ;
149
+
150
+ equals ( jQuery ( document ) . innerHeight ( ) , null , "Test on document without margin option" ) ;
151
+ equals ( jQuery ( document ) . innerHeight ( true ) , null , "Test on document with margin option" ) ;
140
152
141
153
var $div = jQuery ( "#nothiddendiv" ) ;
142
154
// set styles
@@ -165,7 +177,12 @@ test("innerHeight()", function() {
165
177
} ) ;
166
178
167
179
test ( "outerWidth()" , function ( ) {
168
- expect ( 7 ) ;
180
+ expect ( 11 ) ;
181
+
182
+ equal ( jQuery ( window ) . outerWidth ( ) , null , "Test on window without margin option" ) ;
183
+ equal ( jQuery ( window ) . outerWidth ( true ) , null , "Test on window with margin option" ) ;
184
+ equal ( jQuery ( document ) . outerWidth ( ) , null , "Test on document without margin option" ) ;
185
+ equal ( jQuery ( document ) . outerWidth ( true ) , null , "Test on document with margin option" ) ;
169
186
170
187
var $div = jQuery ( "#nothiddendiv" ) ;
171
188
$div . css ( "width" , 30 ) ;
@@ -195,7 +212,12 @@ test("outerWidth()", function() {
195
212
} ) ;
196
213
197
214
test ( "outerHeight()" , function ( ) {
198
- expect ( 7 ) ;
215
+ expect ( 11 ) ;
216
+
217
+ equal ( jQuery ( window ) . outerHeight ( ) , null , "Test on window without margin option" ) ;
218
+ equal ( jQuery ( window ) . outerHeight ( true ) , null , "Test on window with margin option" ) ;
219
+ equal ( jQuery ( document ) . outerHeight ( ) , null , "Test on document without margin option" ) ;
220
+ equal ( jQuery ( document ) . outerHeight ( true ) , null , "Test on document with margin option" ) ;
199
221
200
222
var $div = jQuery ( "#nothiddendiv" ) ;
201
223
$div . css ( "height" , 30 ) ;
0 commit comments