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

Unified Diff: LayoutTests/fast/dom/HTMLSelectElement/select-selectedIndex.html

Issue 98783003: Make HTMLOptionsCollection report TypeErrors. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add TextTrackCue() exception handling test Created 7 years 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/HTMLSelectElement/select-selectedIndex-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/dom/HTMLSelectElement/select-selectedIndex.html
diff --git a/LayoutTests/fast/dom/HTMLSelectElement/select-selectedIndex.html b/LayoutTests/fast/dom/HTMLSelectElement/select-selectedIndex.html
index f6de9a7affbe9fd4fc52db886ee3c8608ca5bf89..2c3dcfdf07586185ae2446440b3ac4a7703095aa 100644
--- a/LayoutTests/fast/dom/HTMLSelectElement/select-selectedIndex.html
+++ b/LayoutTests/fast/dom/HTMLSelectElement/select-selectedIndex.html
@@ -137,5 +137,10 @@ mySelect.options[1/0] = document.createElement("option");
shouldBe("mySelect.options.length", "10");
shouldBe("mySelect.selectedIndex", "-1");
+debug((++i) + ") trying to add a non-option element");
+shouldThrow("mySelect.options.add({})");
+shouldBe("mySelect.options.length", "10");
+shouldBe("mySelect.selectedIndex", "-1");
+
debug("");
</script>
« no previous file with comments | « no previous file | LayoutTests/fast/dom/HTMLSelectElement/select-selectedIndex-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698