Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(54)

Unified Diff: LayoutTests/fast/dom/script-tests/domListEnumeration.js

Issue 1220883007: [dom] support iterable<> NodeList (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/dom/script-tests/domListEnumeration.js
diff --git a/LayoutTests/fast/dom/script-tests/domListEnumeration.js b/LayoutTests/fast/dom/script-tests/domListEnumeration.js
index f89239cbb39c75cb10968087e639e26e897479a9..a776c456757352c9fbdfd225b6f50f55ac7b4b41 100644
--- a/LayoutTests/fast/dom/script-tests/domListEnumeration.js
+++ b/LayoutTests/fast/dom/script-tests/domListEnumeration.js
@@ -97,7 +97,7 @@ var resultArray = new Array();
var nodeList = document.querySelectorAll('ol');
resultArray = iterateList(nodeList);
-shouldBe("resultArray.length", "5");
+shouldBe("resultArray.length", "9");
shouldBe("resultArray[0].i", "'0'");
shouldBe("resultArray[0].item", "nodeList.item(0)");
shouldBe("resultArray[1].i", "'1'");
@@ -108,7 +108,7 @@ shouldBe("resultArray[2].item", "nodeList.item(2)");
// HTMLCollection
var htmlCollection = document.forms;
resultArray = iterateList(htmlCollection);
-shouldBe("resultArray.length", "6");
+shouldBe("resultArray.length", "10");
shouldBe("resultArray[0].i", "'0'");
shouldBe("resultArray[0].item", "htmlCollection.item(0)");
shouldBe("resultArray[1].i", "'1'");

Powered by Google App Engine
This is Rietveld 408576698