Skip to content

Commit 304c00d

Browse files
committed
Widget: modify this.window test to support IE8 window equality quirk
Comparing this.window with strict equality fails in IE8
1 parent 392d402 commit 304c00d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/unit/widget/widget_core.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,10 @@ test( "._getCreateOptions()", function() {
268268
option3: "value3"
269269
},
270270
_getCreateOptions: function() {
271-
strictEqual( this.window[ 0 ], window, "this.window is properly defined" );
271+
272+
// Support: IE8
273+
// Strict equality fails when comparing this.window in ie8
274+
equal( this.window[ 0 ], window, "this.window is properly defined" );
272275
strictEqual( this.document[ 0 ], document, "this.document is properly defined" );
273276

274277
return {

0 commit comments

Comments
 (0)