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

Side by Side 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: 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 CONSOLE WARNING: A request to update the option length to 20000 is ignored. The maximum length is 10000.
2 CONSOLE WARNING: A request to update an option at index=20000 is ignored. The m aximum length is 10000.
3 CONSOLE WARNING: A request to update an option at index=20000 is ignored. The m aximum length is 10000.
1 This test that setting HTMLSelectElement.length is capped to 10,000, but that yo u can add additional Option elements by calling add. 4 This test that setting HTMLSelectElement.length is capped to 10,000, but that yo u can add additional Option elements by calling add.
2 5
3 Select length is 0 6 PASS sel.length is 0
4 Trying: - sel.length = 20000; 7 Trying: - sel.length = 20000;
5 Select length is 0 8 PASS sel.length is 0
6 Trying: - sel.add(new Option, 0); 9 Trying: - sel.add(new Option, 0);
7 Select length is 1 10 PASS sel.length is 1
8 Trying: - sel.length = 0; 11 Trying: - sel.length = 0;
9 Select length is 0 12 PASS sel.length is 0
13 Index setter:
14 PASS sel[20000] = new Option(); sel.length is 0
15 PASS sel.options[20000] = new Option(); sel.length is 0
16 PASS successfullyParsed is true
10 17
18 TEST COMPLETE
19
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698