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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/forms/select/HTMLOptionElement_selected3.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
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <meta http-equiv="X-UA-Compatible" content="IE=edge" /> 4 <meta http-equiv="X-UA-Compatible" content="IE=edge" />
5 </head> 5 </head>
6 <body> 6 <body>
7 <p>This test checks the behavior of selected/selectedIndex properties prior to the &lt;/select&gt; being parsed. https://bugs.webkit.org/show_bug.cgi?id=326 41</p> 7 <p>This test checks the behavior of selected/selectedIndex properties prior to the &lt;/select&gt; being parsed. https://bugs.webkit.org/show_bug.cgi?id=326 41</p>
8 <p>Before querying selectedIndex, [theOption].selected = <span id="logOne">< /span></p> 8 <p>Before querying selectedIndex, [theOption].selected = <span id="logOne">< /span></p>
9 <p>[theSelect].selectedIndex = <span id="logTwo"></span></p> 9 <p>[theSelect].selectedIndex = <span id="logTwo"></span></p>
10 <p>After querying selectedIndex, [theOption].selected = <span id="logThree"> </span></p> 10 <p>After querying selectedIndex, [theOption].selected = <span id="logThree"> </span></p>
11 <select id="theSelect" style="display:none"> 11 <select id="theSelect" style="display:none">
12 <option id="theOption">lalala</option> 12 <option id="theOption">lalala</option>
13 <script> 13 <script>
14 if (window.testRunner) 14 if (window.testRunner)
15 testRunner.dumpAsText(); 15 testRunner.dumpAsText();
16 var o = document.getElementById('theOption'); 16 var o = document.getElementById('theOption');
17 document.getElementById('logOne').textContent = o.selected; 17 document.getElementById('logOne').textContent = o.selected;
18 document.getElementById('logTwo').textContent = document.getElementById('t heSelect').selectedIndex; 18 document.getElementById('logTwo').textContent = document.getElementById('t heSelect').selectedIndex;
19 document.getElementById('logThree').textContent = o.selected; 19 document.getElementById('logThree').textContent = o.selected;
20 </script> 20 </script>
21 </select> 21 </select>
22 </body> 22 </body>
23 </html> 23 </html>
24 24
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698