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

Unified Diff: LayoutTests/fast/forms/select-max-length-expected.txt

Issue 1291263003: Index setter of HTMLSelectElement and HTMLOptionsCollection should do nothing if the requested size… (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Update warning messages 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
« no previous file with comments | « LayoutTests/fast/forms/select-max-length.html ('k') | Source/core/html/HTMLSelectElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/forms/select-max-length-expected.txt
diff --git a/LayoutTests/fast/forms/select-max-length-expected.txt b/LayoutTests/fast/forms/select-max-length-expected.txt
index d07b53ba96fc819362212b6cba132df526c7cdb7..0a8b40e8495cf2a77ddc54b8881cb438bd4821cd 100644
--- a/LayoutTests/fast/forms/select-max-length-expected.txt
+++ b/LayoutTests/fast/forms/select-max-length-expected.txt
@@ -1,10 +1,19 @@
+CONSOLE WARNING: Blocked to expand the option list to 20000 items. The maximum list length is 10000.
+CONSOLE WARNING: Blocked to expand the option list and set an option at index=20000. The maximum list length is 10000.
+CONSOLE WARNING: Blocked to expand the option list and set an option at index=20000. The maximum list length is 10000.
This test that setting HTMLSelectElement.length is capped to 10,000, but that you can add additional Option elements by calling add.
-Select length is 0
+PASS sel.length is 0
Trying: - sel.length = 20000;
-Select length is 0
+PASS sel.length is 0
Trying: - sel.add(new Option, 0);
-Select length is 1
+PASS sel.length is 1
Trying: - sel.length = 0;
-Select length is 0
+PASS sel.length is 0
+Index setter:
+PASS sel[20000] = new Option(); sel.length is 0
+PASS sel.options[20000] = new Option(); sel.length is 0
+PASS successfullyParsed is true
+
+TEST COMPLETE
« no previous file with comments | « LayoutTests/fast/forms/select-max-length.html ('k') | Source/core/html/HTMLSelectElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698