1 Tests
<select
> text update when popup is visible and selectionIndex changes.
<br>
2 Needs run-layout-test.
<br>
3 <div style=
"position: absolute; top: 50px">
10 <pre id=
"output"></pre>
12 if (window
.testRunner
&& window
.eventSender
) {
13 testRunner
.dumpAsText();
14 var select
= document
.getElementById('select');
16 eventSender
.keyDown(' ', null);
17 select
.selectedIndex
= 2;
19 // We need to show in the result the title text of the select when popup is visible.
20 // Must dump renderer tree here otherwise run-layout-test will close the popup.
21 // The title text should be "C".
22 output
.textContent
= internals
.elementLayoutTreeAsText(select
.parentNode
);
23 testRunner
.notifyDone();