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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/forms/select-list-box-mouse-focus.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
(Empty)
1 <script>
2 function test()
3 {
4 if (window.testRunner)
5 testRunner.dumpAsText();
6 var select = document.getElementById("select");
7 var rect = select.getBoundingClientRect();
8 var x = rect.left + 10;
9 var y = rect.top + 10;
10
11 if (window.eventSender) {
12 eventSender.mouseMoveTo(x, y);
13 eventSender.mouseDown(0);
14 }
15 }
16 function reportFocus()
17 {
18 document.getElementById("result").innerHTML = "PASS";
19 }
20 </script>
21 <body onload="test()">
22 <p>The select below should be focused because we dispatched a mouse down event t o it.</p>
23 <p id="result">FAIL</p>
24 <select id="select" size="4" onfocus="reportFocus()">
25 <option>one</option>
26 <option>two</option>
27 <option>three</option>
28 <option>four</option>
29 </select>
30 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698