From fcb6c4d1d6552c7e54df16a36b171858bdf0553f Mon Sep 17 00:00:00 2001 From: Oleg Gaidarenko Date: Fri, 13 Feb 2015 21:50:24 +0300 Subject: [PATCH] Core: simplify "each" stylesheet iteration test Closes gh-2089 --- test/unit/core.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit/core.js b/test/unit/core.js index 9bcd08fff..bdc822451 100644 --- a/test/unit/core.js +++ b/test/unit/core.js @@ -1199,7 +1199,7 @@ test("jQuery.each(Object,Function)", function() { jQuery.each( document.styleSheets, function() { i++; }); - equal( i, 2, "Iteration over document.styleSheets" ); + equal( i, document.styleSheets.length, "Iteration over document.styleSheets" ); }); test("jQuery.makeArray", function(){ -- 2.39.5