Core: simplify "each" stylesheet iteration test

(cherry-picked from fcb6c4d1d6)
Closes gh-2089
This commit is contained in:
Oleg Gaidarenko
2015-02-13 21:50:24 +03:00
parent db31206d36
commit 889bb1e3ee

View 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(){