OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <style> | 4 <style> |
5 #red { | 5 #red { |
6 background-color: red; | 6 background-color: red; |
7 position: absolute; | 7 position: absolute; |
8 left: 50px; | 8 left: 50px; |
9 top: 50px; | 9 top: 50px; |
10 height: 100px; | 10 height: 100px; |
(...skipping 17 matching lines...) Expand all Loading... |
28 | 28 |
29 </style> | 29 </style> |
30 <script src="../../resources/js-test.js"></script> | 30 <script src="../../resources/js-test.js"></script> |
31 </head> | 31 </head> |
32 <body onload="runtest()" style="margin:0"> | 32 <body onload="runtest()" style="margin:0"> |
33 | 33 |
34 <script type="text/javascript"> | 34 <script type="text/javascript"> |
35 var redDiv; | 35 var redDiv; |
36 var blueText; | 36 var blueText; |
37 var redText; | 37 var redText; |
38 var hoveredText = "'Hovered.'"; | 38 var hoveredText = '\"Hovered.\"'; |
39 function runtest() | 39 function runtest() |
40 { | 40 { |
41 if (!window.testRunner || !window.eventSender) | 41 if (!window.testRunner || !window.eventSender) |
42 return; | 42 return; |
43 | 43 |
44 if (!window.internals || !window.internals.setIsCursorVisible) { | 44 if (!window.internals || !window.internals.setIsCursorVisible) { |
45 debug("window.internals.setIsCursorVisible is required to run this test.
"); | 45 debug("window.internals.setIsCursorVisible is required to run this test.
"); |
46 return; | 46 return; |
47 } | 47 } |
48 | 48 |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 | 85 |
86 <div id="blue"> | 86 <div id="blue"> |
87 <div id="red"></div> | 87 <div id="red"></div> |
88 </div> | 88 </div> |
89 | 89 |
90 <p>Test for <a href="http://crbug.com/240722">http://crbug.com/240722</a>. If th
e mouse cursor is not visible, existing hover effects on a parent should be pres
erved if the child is the currently hovered element and is removed from the DOM.
Press any key to delete the red div.</p> | 90 <p>Test for <a href="http://crbug.com/240722">http://crbug.com/240722</a>. If th
e mouse cursor is not visible, existing hover effects on a parent should be pres
erved if the child is the currently hovered element and is removed from the DOM.
Press any key to delete the red div.</p> |
91 | 91 |
92 <div id="console"></div> | 92 <div id="console"></div> |
93 </body> | 93 </body> |
94 </html> | 94 </html> |
OLD | NEW |