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

Side by Side Diff: LayoutTests/inspector-protocol/input/emulateTouchFromMouseEvent.html

Issue 1159793005: Deprecated webkit-prefixed properties of the Touch interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 6 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
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script type="text/javascript" src="../../http/tests/inspector-protocol/inspecto r-protocol-test.js"></script> 3 <script type="text/javascript" src="../../http/tests/inspector-protocol/inspecto r-protocol-test.js"></script>
4 <script> 4 <script>
5 5
6 window.addEventListener("touchstart", logEvent); 6 window.addEventListener("touchstart", logEvent);
7 window.addEventListener("touchend", logEvent); 7 window.addEventListener("touchend", logEvent);
8 window.addEventListener("touchmove", logEvent); 8 window.addEventListener("touchmove", logEvent);
9 window.addEventListener("touchcancel", logEvent); 9 window.addEventListener("touchcancel", logEvent);
10 10
11 function logEvent(event) 11 function logEvent(event)
12 { 12 {
13 event.preventDefault(); 13 event.preventDefault();
14 log("-----Event-----"); 14 log("-----Event-----");
15 log("type: " + event.type); 15 log("type: " + event.type);
16 if (event.shiftKey) 16 if (event.shiftKey)
17 log("shiftKey"); 17 log("shiftKey");
18 log("----Touches----"); 18 log("----Touches----");
19 for (var i = 0; i < event.touches.length; i++) { 19 for (var i = 0; i < event.touches.length; i++) {
20 var touch = event.touches[i]; 20 var touch = event.touches[i];
21 log("id: " + i); 21 log("id: " + i);
22 log("pageX: " + touch.pageX); 22 log("pageX: " + touch.pageX);
23 log("pageY: " + touch.pageY); 23 log("pageY: " + touch.pageY);
24 log("webkitRadiusX: " + touch.webkitRadiusX); 24 log("radiusX: " + touch.radiusX);
25 log("webkitRadiusY: " + touch.webkitRadiusY); 25 log("radiusY: " + touch.radiusY);
26 log("webkitRotationAngle: " + touch.webkitRotationAngle); 26 log("rotationAngle: " + touch.rotationAngle);
27 log("webkitForce: " + touch.webkitForce); 27 log("force: " + touch.force);
28 } 28 }
29 evaluateInFrontend("onEvent();"); 29 evaluateInFrontend("onEvent();");
30 } 30 }
31 31
32 function test() 32 function test()
33 { 33 {
34 var events = [ 34 var events = [
35 { 35 {
36 "type": "mousePressed", 36 "type": "mousePressed",
37 "button": "left", 37 "button": "left",
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 InspectorTest.sendCommand("Page.enable", {}, function() { 121 InspectorTest.sendCommand("Page.enable", {}, function() {
122 InspectorTest.sendCommand("Page.startScreencast", {}, sendNextEvent); 122 InspectorTest.sendCommand("Page.startScreencast", {}, sendNextEvent);
123 }); 123 });
124 } 124 }
125 125
126 </script> 126 </script>
127 </head> 127 </head>
128 <body onload="runTest()"> 128 <body onload="runTest()">
129 </body> 129 </body>
130 </html> 130 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698