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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/forms/option-in-optgroup-removal.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 unified diff | Download patch
OLDNEW
(Empty)
1 <html>
2 <script>
3 function test() {
4 if (window.testRunner)
5 testRunner.dumpAsText();
6 var list = document.getElementById("S1");
7 list.remove(3);
8 log(list.length == 3 ? "Passed" : "Failed");
9 }
10 function log(msg) {
11 var console = document.getElementById('console');
12 console.innerHTML = console.innerHTML + msg + "<br>";
13 }
14 </script>
15 </head>
16 <body onload="test()">
17 <br>This tests that an option in a optgroup can be removed from the containi ng select.</br>
18 <select name="S1" id="S1">
19 <optgroup label="Group 1">
20 <option value="1">Option 1</option>
21 <option value="2">Option 2</option>
22 <option value="3">Option 3</option>
23 <option value="4">Option 4</option>
24 </optgroup>
25 </select>
26 <div id="console"></div>
27 </body>
28 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698