]> 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:27 +0000 (01:16 +0300)
Closes gh-2089

test/unit/core.js

index 9bcd08fff48b063eb4b99ca8696d6893424bcc48..bdc82245114c2594489b77efe3c1c1542bb06ec6 100644 (file)
@@ -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(){