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

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

Issue 213773003: select.add() should support optgroup adding and before index (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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/select-add.html ('k') | Source/core/html/HTMLOptionsCollection.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/forms/select/select-add-expected.txt
diff --git a/LayoutTests/fast/forms/select/select-add-expected.txt b/LayoutTests/fast/forms/select/select-add-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..bc092608f6ef23942ff59b6c3edc9be6fc355865
--- /dev/null
+++ b/LayoutTests/fast/forms/select/select-add-expected.txt
@@ -0,0 +1,47 @@
+Test select.add() method
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+Test select
+PASS addOption(0) is "X,0,1,2"
+PASS addOption(1) is "0,X,1,2"
+PASS addOption(2) is "0,1,X,2"
+PASS addOption(3) is "0,1,2,X"
+PASS addOption(100) is "0,1,2,X"
+PASS addOption(-100) is "0,1,2,X"
+PASS getSelectOptions() is "0,1,2,X"
+PASS addOption(null) is "0,1,2,X"
+PASS addOption(NaN) is "X,0,1,2"
+PASS addOption(Infinity) is "X,0,1,2"
+PASS addOption(-Infinity) is "X,0,1,2"
+PASS addOption("foo") is "X,0,1,2"
+PASS select.add() threw exception TypeError: Failed to execute 'add' on 'HTMLSelectElement': 1 argument required, but only 0 present..
+PASS select.add("foo") threw exception TypeError: Failed to execute 'add' on 'HTMLSelectElement': No function was found that matched the signature provided..
+PASS select.add("foo", 0) threw exception TypeError: Failed to execute 'add' on 'HTMLSelectElement': No function was found that matched the signature provided..
+PASS select.add(null) threw exception TypeError: Failed to execute 'add' on 'HTMLSelectElement': No function was found that matched the signature provided..
+PASS select.add(null, 0) threw exception TypeError: Failed to execute 'add' on 'HTMLSelectElement': No function was found that matched the signature provided..
+PASS getSelectOptions() is "0,X,Y,1,2"
+Test select multiple
+PASS addOption(0) is "X,0,1,2"
+PASS addOption(1) is "0,X,1,2"
+PASS addOption(2) is "0,1,X,2"
+PASS addOption(3) is "0,1,2,X"
+PASS addOption(100) is "0,1,2,X"
+PASS addOption(-100) is "0,1,2,X"
+PASS getSelectOptions() is "0,1,2,X"
+PASS addOption(null) is "0,1,2,X"
+PASS addOption(NaN) is "X,0,1,2"
+PASS addOption(Infinity) is "X,0,1,2"
+PASS addOption(-Infinity) is "X,0,1,2"
+PASS addOption("foo") is "X,0,1,2"
+PASS select.add() threw exception TypeError: Failed to execute 'add' on 'HTMLSelectElement': 1 argument required, but only 0 present..
+PASS select.add("foo") threw exception TypeError: Failed to execute 'add' on 'HTMLSelectElement': No function was found that matched the signature provided..
+PASS select.add("foo", 0) threw exception TypeError: Failed to execute 'add' on 'HTMLSelectElement': No function was found that matched the signature provided..
+PASS select.add(null) threw exception TypeError: Failed to execute 'add' on 'HTMLSelectElement': No function was found that matched the signature provided..
+PASS select.add(null, 0) threw exception TypeError: Failed to execute 'add' on 'HTMLSelectElement': No function was found that matched the signature provided..
+PASS getSelectOptions() is "0,X,Y,1,2"
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
« no previous file with comments | « LayoutTests/fast/forms/select/select-add.html ('k') | Source/core/html/HTMLOptionsCollection.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698