OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <style> | 2 <style> |
3 #star { | 3 #star { |
4 cursor: pointer; | 4 cursor: pointer; |
5 font-size: 100px; | 5 font-size: 100px; |
6 color: black; | 6 color: black; |
7 margin : 40px; | 7 margin : 40px; |
8 } | 8 } |
9 #star:hover { | 9 #star:hover { |
10 color:red; | 10 color:red; |
11 } | 11 } |
12 </style> | 12 </style> |
13 <img id='star' src='' alt='★'/> | 13 <img id='star' src='' alt='★'/> |
14 <script> | 14 <script> |
15 if (window.testRunner) { | 15 if (window.testRunner) { |
16 testRunner.waitUntilDone(); | 16 testRunner.waitUntilDone(); |
17 var star = document.getElementById('star'); | 17 var star = document.getElementById('star'); |
18 eventSender.mouseMoveTo(star.offsetLeft + 2, star.offsetTop + 2); | 18 eventSender.mouseMoveTo(star.offsetLeft + 2, star.offsetTop + 2); |
19 window.requestAnimationFrame(function() { | 19 window.requestAnimationFrame(function() { |
20 testRunner.notifyDone(); | 20 testRunner.notifyDone(); |
21 }); | 21 }); |
22 } | 22 } |
23 </script> | 23 </script> |
OLD | NEW |