Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / forms / HTMLOptionElement_selected2.html
blobe3b638c2cfbb894601fcb289edad95434336a835
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <p>This test checks that the selected property of an option is initialized correctly. 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('theSelect').selectedIndex;
17 document.getElementById('logThree').textContent = o.selected;
18 </script>
19 </body>
20 </html>