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

Comparing this.window with strict equality fails in IE8
This commit is contained in:
Alexander Schmitz 2014-08-27 19:33:38 -04:00
parent 392d402d6f
commit 304c00d0e8

View File

@ -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 {