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

Unified Diff: third_party/WebKit/LayoutTests/fast/forms/listbox-clear-restore.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-clear-restore.html
diff --git a/third_party/WebKit/LayoutTests/fast/forms/listbox-clear-restore.html b/third_party/WebKit/LayoutTests/fast/forms/listbox-clear-restore.html
deleted file mode 100644
index 885da5442842da9604d75b1d50344ac2c67cb6be..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/forms/listbox-clear-restore.html
+++ /dev/null
@@ -1,46 +0,0 @@
-<!DOCTYPE>
-<html>
-<body onload="test()">
-<select id="myList" size="10" multiple></select>
-<script>
-function populateList()
-{
- var myList = document.getElementById("myList");
- var item;
-
- for (var ii = 0; ii < 20; ii++) {
- item = document.createElement("option");
- item.value = ii;
- item.appendChild(document.createTextNode("Item #" + ii));
- myList.appendChild(item);
- }
-}
-
-function clearList()
-{
- var myList = document.getElementById("myList");
- var items = myList.getElementsByTagName("option");
-
- for (var ii = items.length-1; ii >= 0; ii--) {
- myList.removeChild(items[ii]);
- }
-}
-
-function test()
-{
- if (window.testRunner)
- testRunner.waitUntilDone();
-
- populateList();
- document.getElementById("myList").selectedIndex = 19;
- document.body.offsetWidth; // Force a layout.
- clearList();
- document.body.offsetWidth; // Force a layout.
- populateList();
-
- if (window.testRunner)
- testRunner.notifyDone();
-}
-</script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698