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

Unified Diff: third_party/WebKit/LayoutTests/fast/forms/listbox-select-all.html

Issue 1509853008: Move select/option/optgroup-related tests in fast/forms to fast/forms/select. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
Index: third_party/WebKit/LayoutTests/fast/forms/listbox-select-all.html
diff --git a/third_party/WebKit/LayoutTests/fast/forms/listbox-select-all.html b/third_party/WebKit/LayoutTests/fast/forms/listbox-select-all.html
deleted file mode 100644
index 87fdb1e57c3f4084665a61422eb812396c16c427..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/forms/listbox-select-all.html
+++ /dev/null
@@ -1,41 +0,0 @@
-<html>
- <head>
- <script>
- function test() {
- var sl = document.getElementById('sl');
- sl.focus();
- document.execCommand("SelectAll");
- if (!document.getElementById('o1').selected && !document.getElementById('o2').selected && !document.getElementById('o3').selected)
- log("Test 1 Passed");
- else
- log("Test 1 Failed. SelectAll should not change a single-select list box.");
-
- sl.multiple = true;
- document.execCommand("SelectAll");
- if (document.getElementById('o1').selected && document.getElementById('o2').selected && document.getElementById('o3').selected)
- log("Test 2 Passed");
- else
- log("Test 2 Failed. SelectAll should select all items in a multi-select list box.");
-
- sl.multiple = false;
-
- if (window.testRunner)
- testRunner.dumpAsText();
- }
-
- function log(msg) {
- var res = document.getElementById('res');
- res.innerHTML = res.innerHTML + msg + "<br>";
- }
- </script>
- </head>
- <body onload="test()">
- This tests that select all works on options in a list box.<br>
- <select id="sl" size=5>
- <option id="o1">1
- <option id="o2">2
- <option id="o3">3
- </select>
- <div id="res"></div>
- </body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698