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

Unified Diff: LayoutTests/fast/dom/html-collections-named-getter.html

Issue 692993003: Named getter of HTMLAllCollection etc should be nullable (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@union-nullable
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « no previous file | LayoutTests/fast/dom/html-collections-named-getter-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/dom/html-collections-named-getter.html
diff --git a/LayoutTests/fast/dom/html-collections-named-getter.html b/LayoutTests/fast/dom/html-collections-named-getter.html
index 7369d42d61595708100c223d6f04e2ed95b20639..0d6f27a4e20de02b7e033d3606605ce214405bba 100644
--- a/LayoutTests/fast/dom/html-collections-named-getter.html
+++ b/LayoutTests/fast/dom/html-collections-named-getter.html
@@ -37,6 +37,7 @@ shouldBe("document.all['foo'].length", "2");
shouldBe("document.all['foo'][0]", "elements[0]");
shouldBe("document.all['foo'][1]", "elements[1]");
shouldBe("elements[0].parentNode.removeChild(elements[0]); document.all['foo']", 'elements[1]');
+shouldBeUndefined("document.all['no-such-element']");
debug("");
var form = document.querySelector('form');
@@ -54,6 +55,7 @@ shouldBe("form.elements['foo'][0]", "elements[0]");
shouldBe("form.elements['foo'][1]", "elements[1]");
shouldBe("form.removeChild(elements[0]); form.elements['foo']", "elements[1]");
shouldBe("removeTestElements(); form.elements.length", "0");
+shouldBeUndefined("form.elements['no-such-element']");
debug("");
debug("select.options");
@@ -72,6 +74,7 @@ shouldBe("select.options['foo'][1]", "elements[1]");
shouldBe("select.removeChild(elements[0]); select.options['foo']", "elements[1]");
shouldBe("select.innerHTML = ''; select.options.length", "0");
shouldBe("removeTestElements(); form.elements.length", "0");
+shouldBeUndefined("select.options['no-such-element']");
debug("");
function testFirstItemReturnsFirstMatch(collection, initialLength, elementNames, attributes) {
« no previous file with comments | « no previous file | LayoutTests/fast/dom/html-collections-named-getter-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698