From 304c00d0e82d992d17b137f1a9044f1521938a87 Mon Sep 17 00:00:00 2001 From: Alexander Schmitz Date: Wed, 27 Aug 2014 19:33:38 -0400 Subject: [PATCH] Widget: modify this.window test to support IE8 window equality quirk Comparing this.window with strict equality fails in IE8 --- tests/unit/widget/widget_core.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 { -- 2.39.5