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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/forms/select-index-setter.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 <head>
3 <script>
4 function test()
5 {
6 if (window.testRunner)
7 testRunner.dumpAsText();
8
9 var sl = document.getElementById('sl');
10 var no = new Option();
11 no.text = "Test Passed";
12 if (sl[0].text == "Test Failed")
13 sl[0] = no;
14 document.getElementById('res').innerHTML = sl[0].text;
15 }
16 </script>
17 </head>
18 <body onload="test()">
19 This tests that you can index into a select element to get and set an op tion element.<br>
20 <select id="sl" multiple>
21 <option>Test Failed</option>
22 </select>
23 <div id="res"></div>
24 </body>
25 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698