Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(168)

Side by Side Diff: third_party/WebKit/LayoutTests/fast/events/pointerevents/mouse-pointer-capture.html

Issue 2220043002: Added PointerEvent.hasPointerCapture API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added a missing element interface. Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/events/pointerevents/mouse-pointer-haspointercapture.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/events/pointerevents/mouse-pointer-haspointercapture.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698