X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=auto_tests%2Ftests%2FUtil.js;h=7c1eaa6aa6a2b22aee351fa7d2e5371a767a90a8;hb=2ef8997fe939afdfd7c2c09c393a3073897633bd;hp=3436c152ac4998d2168cf2e6c3109f7d2c21be63;hpb=89fdcedbda6906d90e15d84285c4f6c0b8d96d28;p=dygraphs.git diff --git a/auto_tests/tests/Util.js b/auto_tests/tests/Util.js index 3436c15..7c1eaa6 100644 --- a/auto_tests/tests/Util.js +++ b/auto_tests/tests/Util.js @@ -63,9 +63,10 @@ Util.getLegend = function(parent) { */ Util.assertStyleOfChildren = function(selector, property, expectedValue) { assert.isTrue(selector.length > 0); - $.each(selector, function(idx, child) { - assert.isEqual(expectedValue, $(child).css(property)); - }); + for (var idx = 0; idx < selector.length; idx++) { + var child = selector[idx]; + assert.equal(expectedValue, window.getComputedStyle(child)[property]); + } };