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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/forms/HTMLOptionElement_selected2.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 <!DOCTYPE html>
2 <html>
3 <body>
4 <p>This test checks that the selected property of an option is initialized c orrectly. https://bugs.webkit.org/show_bug.cgi?id=32641</p>
5 <p>Before querying selectedIndex, [theOption].selected = <span id="logOne">< /span></p>
6 <p>[theSelect].selectedIndex = <span id="logTwo"></span></p>
7 <p>After querying selectedIndex, [theOption].selected = <span id="logThree"> </span></p>
8 <select id="theSelect" style="display:none">
9 <option id="theOption">lalala</option>
10 </select>
11 <script>
12 if (window.testRunner)
13 testRunner.dumpAsText();
14 var o = document.getElementById('theOption');
15 document.getElementById('logOne').textContent = o.selected;
16 document.getElementById('logTwo').textContent = document.getElementById('t heSelect').selectedIndex;
17 document.getElementById('logThree').textContent = o.selected;
18 </script>
19 </body>
20 </html>
21
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698