]> source.dussan.org Git - jquery.git/commitdiff
Core: simplify "each" stylesheet iteration test
authorOleg Gaidarenko <markelog@gmail.com>
Fri, 13 Feb 2015 18:50:24 +0000 (21:50 +0300)
committerOleg Gaidarenko <markelog@gmail.com>
Sat, 14 Feb 2015 22:16:52 +0000 (01:16 +0300)
(cherry-picked from fcb6c4d1d6552c7e54df16a36b171858bdf0553f)
Closes gh-2089

test/unit/core.js

index cbf5f7f2ef0854479b6c28e61303eb20aab9c9d5..2c40139d38617081287e51a35974678695150c82 100644 (file)
@@ -1183,7 +1183,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(){