Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script src="../../resources/js-test.js"></script> | 4 <script src="../../resources/js-test.js"></script> |
| 5 <style type="text/css"> | 5 <style type="text/css"> |
| 6 </style> | 6 </style> |
| 7 </head> | 7 </head> |
| 8 <body> | 8 <body> |
| 9 <p id="description"></p> | 9 <p id="description"></p> |
| 10 <p><a href="https://bugs.webkit.org/show_bug.cgi?id=53341">Bug 53341</a></p> | 10 <p><a href="https://bugs.webkit.org/show_bug.cgi?id=53341">Bug 53341</a></p> |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 55 eventSender.mouseMoveTo(target.offsetLeft + 3, target.offsetTop + 3) ; | 55 eventSender.mouseMoveTo(target.offsetLeft + 3, target.offsetTop + 3) ; |
| 56 }, function() { | 56 }, function() { |
| 57 debug('Mouse down'); | 57 debug('Mouse down'); |
| 58 eventSender.mouseDown(); | 58 eventSender.mouseDown(); |
| 59 }, function() { | 59 }, function() { |
| 60 debug('Mouse hold down, move'); | 60 debug('Mouse hold down, move'); |
| 61 eventSender.mouseMoveTo(target.offsetLeft + 13, target.offsetTop + 3 ); | 61 eventSender.mouseMoveTo(target.offsetLeft + 13, target.offsetTop + 3 ); |
| 62 }, function() { | 62 }, function() { |
| 63 debug('Mouse up'); | 63 debug('Mouse up'); |
| 64 eventSender.mouseUp(); | 64 eventSender.mouseUp(); |
| 65 }, function() { | |
| 66 // If selection is not happening, then pointer should be shown. | |
| 67 debug('Mouse move'); | |
| 68 eventSender.mouseMoveTo(target.offsetLeft+target.offsetWidth+50, tar get.offsetTop+target.offsetHeight+100); | |
|
Srirama
2017/07/04 13:04:59
nit: add space on either side of operator here and
| |
| 69 }, function() { | |
| 70 debug('Mouse down'); | |
| 71 eventSender.mouseDown(); | |
| 72 }, function() { | |
| 73 eventSender.mouseMoveTo(target.offsetLeft+target.offsetWidth+90, tar get.offsetTop+target.offsetHeight+100); | |
| 74 debug('Mouse hold down, move'); | |
| 75 eventSender.mouseMoveTo(target.offsetLeft+target.offsetWidth+160, ta rget.offsetTop+target.offsetHeight+100); | |
| 76 }, function() { | |
| 77 debug('Mouse up'); | |
| 78 eventSender.mouseUp(); | |
| 65 } | 79 } |
| 66 ]; | 80 ]; |
| 67 | 81 |
| 68 var i = 0; | 82 var i = 0; |
| 69 function nextTest() { | 83 function nextTest() { |
| 70 if (i < tests.length) { | 84 if (i < tests.length) { |
| 71 runTest(tests[i++], nextTest); | 85 runTest(tests[i++], nextTest); |
| 72 } else { | 86 } else { |
| 73 testsDone(); | 87 testsDone(); |
| 74 } | 88 } |
| 75 } | 89 } |
| 76 nextTest(); | 90 nextTest(); |
| 77 } | 91 } |
| 78 | 92 |
| 79 </script> | 93 </script> |
| 80 </body> | 94 </body> |
| 81 </html> | 95 </html> |
| OLD | NEW |