OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <script> | 2 <script> |
3 if (window.testRunner) { | 3 if (window.testRunner) { |
4 testRunner.keepWebHistory(); | 4 testRunner.keepWebHistory(); |
5 testRunner.waitUntilDone(); | 5 testRunner.waitUntilDone(); |
6 } | 6 } |
7 </script> | 7 </script> |
8 <style> | 8 <style> |
9 div { color: red; } | 9 div { color: red; } |
10 a:visited { color: inherit } | 10 a:visited { color: inherit } |
11 a, a:hover { color: green; text-decoration: none } | 11 a, a:hover { color: green; text-decoration: none } |
12 </style> | 12 </style> |
13 <div> | 13 <div> |
14 <a id="anchor" href="">Should be green when hovered</a> | 14 <a id="anchor" href="">Should be green when hovered</a> |
15 </div> | 15 </div> |
16 <script> | 16 <script> |
17 testRunner.displayAsyncThen(function(){ | 17 if (window.testRunner) { |
18 if (window.eventSender); | 18 testRunner.displayAsyncThen(function(){ |
19 eventSender.mouseMoveTo(anchor.offsetLeft + 1, anchor.offsetTop + 1); | 19 if (window.eventSender); |
20 window.testRunner.notifyDone(); | 20 eventSender.mouseMoveTo(anchor.offsetLeft + 1, anchor.offsetTop + 1)
; |
21 }); | 21 window.testRunner.notifyDone(); |
| 22 }); |
| 23 } |
22 </script> | 24 </script> |
OLD | NEW |