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

Unified Diff: third_party/WebKit/LayoutTests/imported/web-platform-tests/touch-events/create-touch-touchlist.html

Issue 1985353002: Move the touch-events directory from web-platform-tests/ to wpt/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/imported/web-platform-tests/touch-events/create-touch-touchlist.html
diff --git a/third_party/WebKit/LayoutTests/imported/web-platform-tests/touch-events/create-touch-touchlist.html b/third_party/WebKit/LayoutTests/imported/web-platform-tests/touch-events/create-touch-touchlist.html
deleted file mode 100644
index b25d9c267bbcfb35aab6f58fafcfdd0f2d1bc073..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/imported/web-platform-tests/touch-events/create-touch-touchlist.html
+++ /dev/null
@@ -1,50 +0,0 @@
-<!DOCTYPE HTML>
-<html>
-<head>
-<title>document.createTouch and document.createTouchList Tests</title>
-<script src="../../../resources/testharness.js"></script>
-<script src="../../../resources/testharnessreport.js"></script>
-<script src="touch-support.js"></script>
-<body>
-<div id="target0"></div>
-<script>
-test(function() {
- var testTarget = document.getElementById('target0');
- var touch1 = document.createTouch(window, testTarget, 42, 15, 20, 35, 40);
- assert_equals(touch1.target, testTarget, "touch.target is target0");
- assert_equals(touch1.identifier, 42, "touch.identifier is requested value");
- assert_equals(touch1.pageX, 15, "touch.pageX is requested value");
- assert_equals(touch1.pageY, 20, "touch.pageY is requested value");
- assert_equals(touch1.screenX, 35, "touch.screenX is requested value");
- assert_equals(touch1.screenY, 40, "touch.screenY is requested value");
-}, "document.createTouch exists and creates a Touch object with requested properties");
-
-test(function() {
- var touchList = document.createTouchList();
- assert_equals(touchList.length, 0, "touchList.length is 0");
- check_TouchList_object(touchList);
-}, "document.createTouchList exists and correctly creates a TouchList from zero Touch objects");
-
-test(function() {
- var testTarget = document.getElementById('target0');
- var touch1 = document.createTouch(window, testTarget, 42, 15, 20, 35, 40);
- var touchList = document.createTouchList(touch1);
- assert_equals(touchList.length, 1, "touchList.length is 1");
- assert_equals(touchList.item(0), touch1, "touchList.item(0) is touch1");
- check_TouchList_object(touchList);
-}, "document.createTouchList exists and correctly creates a TouchList from a single Touch");
-
-test(function() {
- var testTarget = document.getElementById('target0');
- var touch1 = document.createTouch(window, testTarget, 42, 15, 20, 35, 40);
- var touch2 = document.createTouch(window, target0, 44, 25, 30, 45, 50);
- var touchList = document.createTouchList(touch1, touch2);
- assert_equals(touchList.length, 2, "touchList.length is 2");
- assert_equals(touchList.item(0), touch1, "touchList.item(0) is touch1");
- assert_equals(touchList.item(1), touch2, "touchList.item(1) is touch2");
- check_TouchList_object(touchList);
-}, "document.createTouchList exists and correctly creates a TouchList from two Touch objects");
-</script>
-</head>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698