OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <script> | 3 <script> |
4 if (window.layoutTestController) { | 4 if (window.layoutTestController) { |
5 layoutTestController.dumpAsText(); | 5 layoutTestController.dumpAsText(); |
6 layoutTestController.waitUntilDone(); | 6 layoutTestController.waitUntilDone(); |
7 } | 7 } |
8 | 8 |
9 function onMouseMove() | 9 function onMouseMove() |
10 { | 10 { |
11 document.body.innerHTML = "PASS"; | 11 document.body.innerHTML = "PASS"; |
12 | 12 |
13 if (window.layoutTestController) | 13 if (window.layoutTestController) |
14 layoutTestController.notifyDone(); | 14 layoutTestController.notifyDone(); |
15 } | 15 } |
16 | 16 |
17 function runTest() | 17 function runTest() |
18 { | 18 { |
19 root = document.getElementById('root').contentDocument; | 19 root = document.getElementById('root').contentDocument; |
20 root.addEventListener('mousemove', onMouseMove, 0); | 20 root.addEventListener('mousemove', onMouseMove, 0); |
21 eventSender.mouseMoveTo(1, 1); | 21 eventSender.mouseMoveTo(1, 1); |
22 eventSender.mouseMoveTo(0, 0); | 22 eventSender.mouseMoveTo(0, 0); |
23 } | 23 } |
24 </script> | 24 </script> |
25 <style>body { margin: 0px; }</style> | 25 <style>body { margin: 0px; }</style> |
26 <object data="resources/mouse-move.html" id="root" onload="runTest()"></object> | 26 <object data="resources/mouse-move.html" id="root" onload="runTest()"></object> |
27 </html> | 27 </html> |
OLD | NEW |