| 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 <style> | 3 <style> |
| 4 div.box { | 4 div.box { |
| 5 margin: 5px; | 5 margin: 5px; |
| 6 padding: 20px; | 6 padding: 20px; |
| 7 float: left; | 7 float: left; |
| 8 } | 8 } |
| 9 #grey { | 9 #grey { |
| 10 width: 50px; | 10 width: 50px; |
| (...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 } | 165 } |
| 166 | 166 |
| 167 debug(" **** Move to (0,0) ***** "); | 167 debug(" **** Move to (0,0) ***** "); |
| 168 eventSender.mouseMoveTo(0, 0); | 168 eventSender.mouseMoveTo(0, 0); |
| 169 eventSender.mouseDown(0); | 169 eventSender.mouseDown(0); |
| 170 eventSender.mouseUp(0); | 170 eventSender.mouseUp(0); |
| 171 eventSender.leapForward(500); | 171 eventSender.leapForward(500); |
| 172 } | 172 } |
| 173 | 173 |
| 174 function runTests() { | 174 function runTests() { |
| 175 // TODO(mustaq): Merge with mouse-pointer-haspointercapture.html for a single
w3c test? |
| 176 |
| 175 debug(" ======= Set pointer capture and release implicitly ======="); | 177 debug(" ======= Set pointer capture and release implicitly ======="); |
| 176 testScenario(); | 178 testScenario(); |
| 177 | 179 |
| 178 implicitReleaseOutside = true; | 180 implicitReleaseOutside = true; |
| 179 debug(""); | 181 debug(""); |
| 180 debug(" ======= Set pointer capture and release implicitly outside of the page
======="); | 182 debug(" ======= Set pointer capture and release implicitly outside of the page
======="); |
| 181 testScenario(); | 183 testScenario(); |
| 182 implicitReleaseOutside = false; | 184 implicitReleaseOutside = false; |
| 183 | 185 |
| 184 explicitRelease = true; | 186 explicitRelease = true; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 196 removeElement = false; | 198 removeElement = false; |
| 197 } | 199 } |
| 198 | 200 |
| 199 init(); | 201 init(); |
| 200 if (window.eventSender) | 202 if (window.eventSender) |
| 201 runTests(); | 203 runTests(); |
| 202 else | 204 else |
| 203 debug("This test requires eventSender"); | 205 debug("This test requires eventSender"); |
| 204 | 206 |
| 205 </script> | 207 </script> |
| OLD | NEW |