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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/touch-events/touch-touchevent-constructor.html

Issue 2018873002: Fix testharness paths in imported/wpt/* except dom and html. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 <!DOCTYPE HTML> 1 <!DOCTYPE HTML>
2 <html> 2 <html>
3 <head> 3 <head>
4 <title>Touch and TouchEvent Constructor Tests</title> 4 <title>Touch and TouchEvent Constructor Tests</title>
5 <script src="../../../resources/testharness.js"></script> 5 <script src="/resources/testharness.js"></script>
6 <script src="../../../resources/testharnessreport.js"></script> 6 <script src="/resources/testharnessreport.js"></script>
7 <script src="touch-support.js"></script> 7 <script src="touch-support.js"></script>
8 </head> 8 </head>
9 <body> 9 <body>
10 <div id="target0"></div> 10 <div id="target0"></div>
11 <script> 11 <script>
12 test(function() { 12 test(function() {
13 assert_throws(new TypeError(), function() {new Touch();}, "Touch constructor requires initialize dictionary"); 13 assert_throws(new TypeError(), function() {new Touch();}, "Touch constructor requires initialize dictionary");
14 assert_throws(new TypeError(), function() {new Touch({});}, "Touch construct or requires identifier and target"); 14 assert_throws(new TypeError(), function() {new Touch({});}, "Touch construct or requires identifier and target");
15 }, "Create a Touch object with insufficient properties"); 15 }, "Create a Touch object with insufficient properties");
16 16
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 assert_equals(touchEvent1.targetTouches[0], touch1, "touchEvent.targetTouche s[0] is requested value"); 107 assert_equals(touchEvent1.targetTouches[0], touch1, "touchEvent.targetTouche s[0] is requested value");
108 assert_equals(touchEvent1.changedTouches.length, 0, "touchEvent.changedTouch es.length is requested value"); 108 assert_equals(touchEvent1.changedTouches.length, 0, "touchEvent.changedTouch es.length is requested value");
109 assert_equals(touchEvent1.altKey, true, "touchEvent.altKey is requested valu e"); 109 assert_equals(touchEvent1.altKey, true, "touchEvent.altKey is requested valu e");
110 assert_equals(touchEvent1.metaKey, false, "touchEvent.metaKey is requested v alue"); 110 assert_equals(touchEvent1.metaKey, false, "touchEvent.metaKey is requested v alue");
111 assert_equals(touchEvent1.ctrlKey, false, "touchEvent.ctrlKey is requested v alue"); 111 assert_equals(touchEvent1.ctrlKey, false, "touchEvent.ctrlKey is requested v alue");
112 assert_equals(touchEvent1.shiftKey, false, "touchEvent.shiftKey is requested value."); 112 assert_equals(touchEvent1.shiftKey, false, "touchEvent.shiftKey is requested value.");
113 }, "TouchEvent constructor exists and creates a TouchEvent object with requested properties"); 113 }, "TouchEvent constructor exists and creates a TouchEvent object with requested properties");
114 </script> 114 </script>
115 </body> 115 </body>
116 </html> 116 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698