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

Side by Side Diff: LayoutTests/inspector-protocol/input/dispatchTouchEvent.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 9
10 function logEvent(event) 10 function logEvent(event)
11 { 11 {
12 log("-----Event-----"); 12 log("-----Event-----");
13 log("type: " + event.type); 13 log("type: " + event.type);
14 if (event.shiftKey) 14 if (event.shiftKey)
15 log("shiftKey"); 15 log("shiftKey");
16 log("----Touches----"); 16 log("----Touches----");
17 for (var i = 0; i < event.touches.length; i++) { 17 for (var i = 0; i < event.touches.length; i++) {
18 var touch = event.touches[i]; 18 var touch = event.touches[i];
19 log("id: " + i); 19 log("id: " + i);
20 log("pageX: " + touch.pageX); 20 log("pageX: " + touch.pageX);
21 log("pageY: " + touch.pageY); 21 log("pageY: " + touch.pageY);
22 log("webkitRadiusX: " + touch.webkitRadiusX); 22 log("radiusX: " + touch.radiusX);
23 log("webkitRadiusY: " + touch.webkitRadiusY); 23 log("radiusY: " + touch.radiusY);
24 log("webkitRotationAngle: " + touch.webkitRotationAngle); 24 log("rotationAngle: " + touch.rotationAngle);
25 log("webkitForce: " + touch.webkitForce); 25 log("force: " + touch.force);
26 } 26 }
27 } 27 }
28 28
29 function test() 29 function test()
30 { 30 {
31 var events = [ 31 var events = [
32 { 32 {
33 "type": "touchStart", 33 "type": "touchStart",
34 "touchPoints": [ 34 "touchPoints": [
35 { 35 {
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 if (isLastCommand) 110 if (isLastCommand)
111 InspectorTest.completeTest(); 111 InspectorTest.completeTest();
112 } 112 }
113 } 113 }
114 114
115 </script> 115 </script>
116 </head> 116 </head>
117 <body onload="runTest()"> 117 <body onload="runTest()">
118 </body> 118 </body>
119 </html> 119 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698