Skip to content
Permalink
Browse files

Widget: modify this.window test to support IE8 window equality quirk

Comparing this.window with strict equality fails in IE8
  • Loading branch information
arschmitz committed Aug 27, 2014
1 parent 392d402 commit 304c00d0e82d992d17b137f1a9044f1521938a87
Showing with 4 additions and 1 deletion.
  1. +4 −1 tests/unit/widget/widget_core.js
@@ -268,7 +268,10 @@ test( "._getCreateOptions()", function() {
option3: "value3"
},
_getCreateOptions: function() {
strictEqual( this.window[ 0 ], window, "this.window is properly defined" );

// Support: IE8
// Strict equality fails when comparing this.window in ie8
equal( this.window[ 0 ], window, "this.window is properly defined" );
strictEqual( this.document[ 0 ], document, "this.document is properly defined" );

return {

0 comments on commit 304c00d

Please sign in to comment.
You can’t perform that action at this time.