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

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

Issue 1292653003: [bindings] Avoid using custom binding for HTMLOptionsCollection.length attribute (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Missed to fix the test case! Created 5 years, 4 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/HTMLSelectElement/select-selectedIndex-multiple.html
diff --git a/LayoutTests/fast/dom/HTMLSelectElement/select-selectedIndex-multiple.html b/LayoutTests/fast/dom/HTMLSelectElement/select-selectedIndex-multiple.html
index dba6a7dd6a1e317c0635887024287c2e4ac62a5d..d1430b9dcba91e46954391cb0bf7d829d77d282e 100644
--- a/LayoutTests/fast/dom/HTMLSelectElement/select-selectedIndex-multiple.html
+++ b/LayoutTests/fast/dom/HTMLSelectElement/select-selectedIndex-multiple.html
@@ -14,7 +14,7 @@ reset(mySelect);
var i = 0;
debug((++i) + ") setting length to a negative length");
-shouldThrow("mySelect.options.length = -1;");
+mySelect.options.length = -1;
shouldBe("mySelect.options.length", "2");
shouldBe("mySelect.selectedIndex", "0");
@@ -137,5 +137,10 @@ mySelect.options[1/0] = document.createElement("option");
shouldBe("mySelect.options.length", "10");
shouldBe("mySelect.selectedIndex", "0");
+debug((++i) + ") setting length to a value greater than 10000");
+mySelect.options.length = 10001;
+shouldBe("mySelect.options.length", "10");
+shouldBe("mySelect.selectedIndex", "0");
+
debug("");
</script>

Powered by Google App Engine
This is Rietveld 408576698