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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/forms/option-change-single-selected.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 <body>
2 <p>Test for <a href="http://bugs.webkit.org/show_bug.cgi?id=13278">bug 13278</a> : REGRESSION: cannot change SELECT option.</p>
3 <form>
4 <select size="1">
5 <option>FAILURE: script didn't run</option>
6 <option>FAILURE</option>
7 <option>SUCCESS</option>
8 </select>
9 <select size="3">
10 <option>FAILURE: script didn't run</option>
11 <option>FAILURE</option>
12 <option>SUCCESS</option>
13 </select>
14 </form>
15 <div id=result></div>
16 <script>
17
18 if (window.testRunner)
19 testRunner.dumpAsText();
20
21 document.forms[0].elements[0].options[1].selected = true;
22 document.forms[0].elements[1].options[1].selected = true;
23
24 document.forms[0].elements[0].options[2].selected = true;
25 document.forms[0].elements[1].options[2].selected = true;
26 if (document.forms[0].elements[0].value != "SUCCESS" || document.forms[0].elemen ts[1].options[1].selected)
27 document.getElementById("result").innerHTML = "FAILURE";
28 else
29 document.getElementById("result").innerHTML = "SUCCESS";
30 </script>
31 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698