| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <script src="../../resources/js-test.js"></script> | 2 <script src="../../resources/js-test.js"></script> |
| 3 <script src="resources/expect-cursor-update.js"></script> | 3 <script src="resources/expect-cursor-update.js"></script> |
| 4 <style type="text/css"> | 4 <style type="text/css"> |
| 5 #test-container { | 5 #test-container { |
| 6 position: relative; | 6 position: relative; |
| 7 padding: 10px; | 7 padding: 10px; |
| 8 } | 8 } |
| 9 #target { | 9 #target { |
| 10 cursor: text; | 10 cursor: text; |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 // Can't do anything useful here without eventSender | 52 // Can't do anything useful here without eventSender |
| 53 if (window.eventSender) { | 53 if (window.eventSender) { |
| 54 var target = document.getElementById('target'); | 54 var target = document.getElementById('target'); |
| 55 eventSender.dragMode = false; | 55 eventSender.dragMode = false; |
| 56 debug('Mouse move'); | 56 debug('Mouse move'); |
| 57 var rect = target.getBoundingClientRect(); | 57 var rect = target.getBoundingClientRect(); |
| 58 eventSender.mouseMoveTo(rect.left + 3, rect.top + 3); | 58 eventSender.mouseMoveTo(rect.left + 3, rect.top + 3); |
| 59 shouldBeEqualToString('window.internals.getCurrentCursorInfo()', 'type=I
Beam hotSpot=0,0'); | 59 shouldBeEqualToString('window.internals.getCurrentCursorInfo()', 'type=I
Beam hotSpot=0,0'); |
| 60 debug('Adding overlay element'); | 60 debug('Adding overlay element'); |
| 61 addOverlay(); | 61 addOverlay(); |
| 62 expectCursorUpdate('type=Wait hotSpot=0,0', function() { | 62 expectSendFakeMouseMove('type=Wait hotSpot=0,0', function() { |
| 63 debug('Moving overlay element'); | 63 debug('Moving overlay element'); |
| 64 overlay.style.top = "100px"; | 64 overlay.style.top = "100px"; |
| 65 expectCursorUpdate('type=IBeam hotSpot=0,0', function() { | 65 expectSendFakeMouseMove('type=IBeam hotSpot=0,0', function() { |
| 66 finishJSTest(); | 66 finishJSTest(); |
| 67 }); | 67 }); |
| 68 }); | 68 }); |
| 69 } else { | 69 } else { |
| 70 testFailed('This test requires DumpRenderTree. Click to manually update
layout.'); | 70 testFailed('This test requires DumpRenderTree. Click to manually update
layout.'); |
| 71 document.addEventListener('click', addOverlay); | 71 document.addEventListener('click', addOverlay); |
| 72 } | 72 } |
| 73 | 73 |
| 74 </script> | 74 </script> |
| OLD | NEW |