Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!DOCTYPE html> | |
| 2 <script src="../../resources/testharness.js"></script> | |
| 3 <script src="../../resources/testharnessreport.js"></script> | |
| 4 <iframe id=iframe srcdoc=" | |
| 5 <style> | |
| 6 .c:hover { display: block; } | |
| 7 .c { content: attr(class); width: 400px; height: 400px; } | |
| 8 </style> | |
| 9 <body id=body> | |
| 10 <select id=target autofocus=autofocus size=2 class=c></select> | |
| 11 </body>"></iframe> | |
| 12 <script> | |
| 13 var testObj; | |
| 14 function moveGesture() { | |
| 15 eventSender.mouseMoveTo(200, 51); | |
| 16 eventSender.mouseUp(); | |
| 17 testObj.done(); | |
| 18 } | |
| 19 function reloadIframe() { | |
| 20 iframe.contentWindow.location.reload(); | |
| 21 setTimeout(moveGesture, 50); | |
|
mstensho (USE GERRIT)
2017/04/28 20:15:28
Looks like this timeout is slightly too low for my
| |
| 22 } | |
| 23 function go(test) { | |
| 24 testObj = test; | |
| 25 if (window.eventSender) { | |
| 26 eventSender.mouseMoveTo(200, 50); | |
| 27 eventSender.mouseDown(); | |
| 28 setTimeout(reloadIframe, 0); | |
| 29 } else { | |
| 30 test.done(); | |
| 31 } | |
| 32 } | |
| 33 | |
| 34 async_test(go); | |
| 35 </script> | |
| OLD | NEW |