From 889bb1e3ee56571754793ff98d9dcf4c69fa9581 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 (cherry-picked from fcb6c4d1d6552c7e54df16a36b171858bdf0553f) 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 cbf5f7f2e..2c40139d3 100644 --- a/test/unit/core.js +++ b/test/unit/core.js @@ -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(){ -- 2.39.5