From: Oleg Gaidarenko Date: Fri, 13 Feb 2015 18:50:24 +0000 (+0300) Subject: Core: simplify "each" stylesheet iteration test X-Git-Tag: 3.0.0-alpha1~117 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=fcb6c4d1d6552c7e54df16a36b171858bdf0553f;p=jquery.git Core: simplify "each" stylesheet iteration test Closes gh-2089 --- 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(){