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

Side by Side Diff: LayoutTests/fast/events/touch/document-create-touch.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
« no previous file with comments | « no previous file | LayoutTests/fast/events/touch/document-create-touch-expected.txt » ('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 PUBLIC "-//IETF//DTD HTML//EN"> 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
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 <!-- 5 <!--
6 Touch tests that involve the ontouchstart, ontouchmove, ontouchend or ontouchc ancel callbacks 6 Touch tests that involve the ontouchstart, ontouchmove, ontouchend or ontouchc ancel callbacks
7 should be written in an asynchronous fashion so they can be run on mobile plat forms like Android. 7 should be written in an asynchronous fashion so they can be run on mobile plat forms like Android.
8 You will need to invoke isSuccessfullyParsed() in your test script when the te st completes. 8 You will need to invoke isSuccessfullyParsed() in your test script when the te st completes.
9 --> 9 -->
10 </head> 10 </head>
(...skipping 17 matching lines...) Expand all
28 shouldBe("touch.target", "box"); 28 shouldBe("touch.target", "box");
29 shouldBe("touch.identifier", "1"); 29 shouldBe("touch.identifier", "1");
30 shouldBe("touch.pageX", "100"); 30 shouldBe("touch.pageX", "100");
31 shouldBe("touch.pageY", "101"); 31 shouldBe("touch.pageY", "101");
32 shouldBe("touch.screenX", "102"); 32 shouldBe("touch.screenX", "102");
33 shouldBe("touch.screenY", "103"); 33 shouldBe("touch.screenY", "103");
34 shouldBe("touch.radiusX", "5"); 34 shouldBe("touch.radiusX", "5");
35 shouldBe("touch.radiusY", "3"); 35 shouldBe("touch.radiusY", "3");
36 shouldBe("touch.rotationAngle", "10"); 36 shouldBe("touch.rotationAngle", "10");
37 shouldBe("touch.force", "10"); 37 shouldBe("touch.force", "10");
38 shouldBe("touch.webkitRadiusX", "5");
philipj_slow 2015/06/02 20:09:18 Please leave the prefixed usage in at least one te
mustaq 2015/06/02 20:18:03 Done.
39 shouldBe("touch.webkitRadiusY", "3");
40 shouldBe("touch.webkitRotationAngle", "10");
41 shouldBe("touch.webkitForce", "10");
42 38
43 var emptyTouch = document.createTouch(); 39 var emptyTouch = document.createTouch();
44 shouldBeNonNull("emptyTouch"); 40 shouldBeNonNull("emptyTouch");
45 shouldBeNull("emptyTouch.target"); 41 shouldBeNull("emptyTouch.target");
46 shouldBe("emptyTouch.identifier", "0"); 42 shouldBe("emptyTouch.identifier", "0");
47 shouldBe("emptyTouch.pageX", "0"); 43 shouldBe("emptyTouch.pageX", "0");
48 shouldBe("emptyTouch.pageY", "0"); 44 shouldBe("emptyTouch.pageY", "0");
49 shouldBe("emptyTouch.screenX", "0"); 45 shouldBe("emptyTouch.screenX", "0");
50 shouldBe("emptyTouch.screenY", "0"); 46 shouldBe("emptyTouch.screenY", "0");
51 shouldBe("emptyTouch.radiusX", "0"); 47 shouldBe("emptyTouch.radiusX", "0");
52 shouldBe("emptyTouch.radiusY", "0"); 48 shouldBe("emptyTouch.radiusY", "0");
53 shouldBe("emptyTouch.rotationAngle", "0"); 49 shouldBe("emptyTouch.rotationAngle", "0");
54 shouldBe("emptyTouch.force", "0"); 50 shouldBe("emptyTouch.force", "0");
55 shouldBe("emptyTouch.webkitRadiusX", "0");
56 shouldBe("emptyTouch.webkitRadiusY", "0");
57 shouldBe("emptyTouch.webkitRotationAngle", "0");
58 shouldBe("emptyTouch.webkitForce", "0");
59 51
60 // Try invoking with incorrect parameter types. 52 // Try invoking with incorrect parameter types.
61 var badParamsTouch = document.createTouch(function(x) { return x; }, 12, 'a', 'b ', 'c', function(x) { return x; }, 104, 'a', 'b', 'c', 'd'); 53 var badParamsTouch = document.createTouch(function(x) { return x; }, 12, 'a', 'b ', 'c', function(x) { return x; }, 104, 'a', 'b', 'c', 'd');
62 shouldBeNonNull("badParamsTouch"); 54 shouldBeNonNull("badParamsTouch");
63 shouldBeNull("badParamsTouch.target"); 55 shouldBeNull("badParamsTouch.target");
64 shouldBe("badParamsTouch.identifier", "0"); 56 shouldBe("badParamsTouch.identifier", "0");
65 shouldBe("badParamsTouch.pageX", "0"); 57 shouldBe("badParamsTouch.pageX", "0");
66 shouldBe("badParamsTouch.pageY", "0"); 58 shouldBe("badParamsTouch.pageY", "0");
67 shouldBe("badParamsTouch.screenX", "0"); 59 shouldBe("badParamsTouch.screenX", "0");
68 shouldBe("badParamsTouch.screenY", "104"); 60 shouldBe("badParamsTouch.screenY", "104");
69 shouldBe("badParamsTouch.radiusX", "0"); 61 shouldBe("badParamsTouch.radiusX", "0");
70 shouldBe("badParamsTouch.radiusY", "0"); 62 shouldBe("badParamsTouch.radiusY", "0");
71 shouldBe("badParamsTouch.rotationAngle", "0"); 63 shouldBe("badParamsTouch.rotationAngle", "0");
72 shouldBe("badParamsTouch.force", "0"); 64 shouldBe("badParamsTouch.force", "0");
73 shouldBe("badParamsTouch.webkitRadiusX", "0");
74 shouldBe("badParamsTouch.webkitRadiusY", "0");
75 shouldBe("badParamsTouch.webkitRotationAngle", "0");
76 shouldBe("badParamsTouch.webkitForce", "0");
77 65
78 // Should not crash when invoked on a detached Document. 66 // Should not crash when invoked on a detached Document.
79 var detachedTouch; 67 var detachedTouch;
80 shouldBeNonNull("detachedTouch = document.implementation.createDocument('a', 'b' ).createTouch()"); 68 shouldBeNonNull("detachedTouch = document.implementation.createDocument('a', 'b' ).createTouch()");
81 shouldBeNull("detachedTouch.target"); 69 shouldBeNull("detachedTouch.target");
82 shouldBe("detachedTouch.identifier", "0"); 70 shouldBe("detachedTouch.identifier", "0");
83 shouldBe("detachedTouch.pageX", "0"); 71 shouldBe("detachedTouch.pageX", "0");
84 shouldBe("detachedTouch.pageY", "0"); 72 shouldBe("detachedTouch.pageY", "0");
85 shouldBe("detachedTouch.screenX", "0"); 73 shouldBe("detachedTouch.screenX", "0");
86 shouldBe("detachedTouch.screenY", "0"); 74 shouldBe("detachedTouch.screenY", "0");
87 shouldBe("detachedTouch.radiusX", "0"); 75 shouldBe("detachedTouch.radiusX", "0");
88 shouldBe("detachedTouch.radiusY", "0"); 76 shouldBe("detachedTouch.radiusY", "0");
89 shouldBe("detachedTouch.rotationAngle", "0"); 77 shouldBe("detachedTouch.rotationAngle", "0");
90 shouldBe("detachedTouch.force", "0"); 78 shouldBe("detachedTouch.force", "0");
91 shouldBe("detachedTouch.webkitRadiusX", "0");
92 shouldBe("detachedTouch.webkitRadiusY", "0");
93 shouldBe("detachedTouch.webkitRotationAngle", "0");
94 shouldBe("detachedTouch.webkitForce", "0");
95 79
96 isSuccessfullyParsed(); 80 isSuccessfullyParsed();
97 </script> 81 </script>
98 </body> 82 </body>
99 </html> 83 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/events/touch/document-create-touch-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698