aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit
diff options
context:
space:
mode:
authorAlexander Schmitz <arschmitz@gmail.com>2014-08-27 19:33:38 -0400
committerAlexander Schmitz <arschmitz@gmail.com>2014-08-27 19:33:38 -0400
commit304c00d0e82d992d17b137f1a9044f1521938a87 (patch)
tree0b93c13046d89abec4ab6daa8e51a472e2db4292 /tests/unit
parent392d402d6f2e527c935780d68afc5107df65e406 (diff)
downloadjquery-ui-304c00d0e82d992d17b137f1a9044f1521938a87.tar.gz
jquery-ui-304c00d0e82d992d17b137f1a9044f1521938a87.zip
Widget: modify this.window test to support IE8 window equality quirk
Comparing this.window with strict equality fails in IE8
Diffstat (limited to 'tests/unit')
-rw-r--r--tests/unit/widget/widget_core.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/unit/widget/widget_core.js b/tests/unit/widget/widget_core.js
index 6b5cdeaa3..feafca942 100644
--- a/tests/unit/widget/widget_core.js
+++ b/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 {