4 <script src=
"../../../resources/js-test.js"></script>
7 <p id=
"description"></p>
8 <div id=
"console"></div>
9 <select name=
"switcher" id=
"switcher">
10 <option value=
"one">One
</option>
11 <option value=
"two">Two
</option>
13 <input id=
"text"></input>
18 if (!window
.testRunner
|| !window
.internals
)
21 testRunner
.dumpAsText();
23 description('Test for <i><a href="http://bugs.webkit.org/show_bug.cgi?id=113220">http://bugs.webkit.org/show_bug.cgi?id=113220</a>: ensures select popup closes when focus changes</i>.');
25 popup
= document
.getElementById("switcher");
28 eventSender
.keyDown(" ", null);
30 shouldBeTrue("internals.isSelectPopupVisible(popup)");
32 var text
= document
.getElementById("text");
35 shouldBeFalse("internals.isSelectPopupVisible(popup)");