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

Unified Diff: third_party/WebKit/LayoutTests/fast/forms/listbox-scroll-after-options-removed.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-scroll-after-options-removed.html
diff --git a/third_party/WebKit/LayoutTests/fast/forms/listbox-scroll-after-options-removed.html b/third_party/WebKit/LayoutTests/fast/forms/listbox-scroll-after-options-removed.html
deleted file mode 100644
index c1f6031ce9dc8cd374017a1b983d9186d76e70fd..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/forms/listbox-scroll-after-options-removed.html
+++ /dev/null
@@ -1,55 +0,0 @@
-<html>
- <head>
- <script>
- function test()
- {
- if (window.testRunner) {
- testRunner.dumpAsText();
- testRunner.waitUntilDone();
- }
-
- setTimeout(test2, 0);
- }
-
- function test2()
- {
- var select = document.getElementById("listbox");
- while (select.hasChildNodes())
- select.removeChild(select.firstChild);
-
- var option = document.createElement("option");
- option.innerText = "Test Passed";
- select.appendChild(option);
-
- var scrollTop = select.scrollTop;
- if (scrollTop == 0)
- log("Test Passed");
- else
- log("Test Failed. scrollTop = " + scrollTop + " even though there is only one option in the listbox");
-
- if (window.testRunner)
- testRunner.notifyDone();
- }
-
- function log(msg)
- {
- document.getElementById('console').appendChild(document.createTextNode(msg + '\n'));
- }
- </script>
- </head>
- <body onload="test()">
- <a href="http://bugs.webkit.org/show_bug.cgi?id=15252">Bug 15252: &lt;select multiple&gt; doesn't scroll to top when old options are removed and new ones are added, leaving listbox empty-looking</a>
-
- <p>When the test runs, all the &lt;option&gt;s in the select are removed and replaced with 1 new option. If the bug is present, the select will appear empty until you scroll up with the mousewheel.</p>
-
- <select id="listbox" size="4">
- <option>1</option>
- <option>2</option>
- <option>3</option>
- <option>4</option>
- <option>5</option>
- <option selected>6</option>
- </select>
- <pre id="console"></pre>
- </body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698