4 <script type=
"text/javascript">
9 if (!window
.eventSender
)
12 testRunner
.dumpAsText();
14 var popup
= document
.getElementById("switcher");
17 eventSender
.keyDown("t", null);
18 eventSender
.keyDown("\r", null);
21 function changed(select
)
26 var result
= document
.getElementById("result");
27 result
.innerText
= onchangeCount
== 1 ? "SUCCESS" : "FAILURE: onchange count was " + onchangeCount
;
31 <body onload=
"test()">
33 Test for
<i><a href=
"http://bugs.webkit.org/show_bug.cgi?id=13857">http://bugs.webkit.org/show_bug.cgi?id=
13857</a>
34 REGRESSION: onChange function applied to select element executes twice when focus is set
</i>.
37 To test interactively, select the other option in the pop up. This text should change to SUCCESS.
39 <select name=
"switcher" id=
"switcher" onchange=
"changed(this)">
40 <option value=
"one">One
</option>
41 <option value=
"two">Two
</option>