Bug 1293000 - Replace Iterator() with Object.entries() in layout/. r=bz

--HG--
extra : rebase_source : c0c04c2fcb0ddb8b6e36e12c993da4003c0e0f50
This commit is contained in:
Andrew Magdy 2016-08-09 16:40:28 +02:00
parent ed272011eb
commit ea762cae5a

View File

@ -33,8 +33,8 @@ function run(test_window)
let height_val = 182;
iframe_style.width = width_val + "px";
iframe_style.height = height_val + "px";
for (let [feature, value] in
Iterator({ "width": width_val, "height": height_val })) {
for (let [feature, value] of
Object.entries({ "width": width_val, "height": height_val })) {
should_apply("all and (" + feature + ": " + value + "px)");
should_not_apply("all and (" + feature + ": " + (value + 1) + "px)");
should_not_apply("all and (" + feature + ": " + (value - 1) + "px)");