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

Unified Diff: third_party/WebKit/LayoutTests/inspector-protocol/input/dispatchTouchEvent.html

Issue 2961493002: [DevTools] Migrate inspector-protocol/{input,network} tests to new harness (Closed)
Patch Set: minor fixes Created 3 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/inspector-protocol/input/dispatchTouchEvent.html
diff --git a/third_party/WebKit/LayoutTests/inspector-protocol/input/dispatchTouchEvent.html b/third_party/WebKit/LayoutTests/inspector-protocol/input/dispatchTouchEvent.html
deleted file mode 100644
index 38c16693d5410edc8fe3b46380b6cc3142591550..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/inspector-protocol/input/dispatchTouchEvent.html
+++ /dev/null
@@ -1,119 +0,0 @@
-<html>
-<head>
-<script type="text/javascript" src="../../http/tests/inspector-protocol/resources/inspector-protocol-test.js"></script>
-<script>
-
-window.addEventListener("touchstart", logEvent);
-window.addEventListener("touchend", logEvent);
-window.addEventListener("touchmove", logEvent);
-
-function logEvent(event)
-{
- log("-----Event-----");
- log("type: " + event.type);
- if (event.shiftKey)
- log("shiftKey");
- log("----Touches----");
- for (var i = 0; i < event.touches.length; i++) {
- var touch = event.touches[i];
- log("id: " + i);
- log("pageX: " + touch.pageX);
- log("pageY: " + touch.pageY);
- log("radiusX: " + touch.radiusX);
- log("radiusY: " + touch.radiusY);
- log("rotationAngle: " + touch.rotationAngle);
- log("force: " + touch.force);
- }
-}
-
-function test()
-{
- var events = [
- {
- "type": "touchStart",
- "touchPoints": [
- {
- "state": "touchPressed",
- "x": 100,
- "y": 200
- }
- ]
- },
- {
- "type": "touchMove",
- "touchPoints": [
- {
- "state": "touchMoved",
- "x": 100,
- "y": 200
- }
- ]
- },
- {
- "type": "touchEnd",
- "touchPoints": [
- {
- "state": "touchReleased",
- "x": 100,
- "y": 200
- }
- ]
- },
- {
- "type": "touchStart",
- "touchPoints": [
- {
- "state": "touchPressed",
- "x": 20,
- "y": 30,
- "id": 0
- },
- {
- "state": "touchPressed",
- "x": 100,
- "y": 200,
- "radiusX": 5,
- "radiusY": 6,
- "rotationAngle": 1.0,
- "force": 0.0,
- "id": 1
- }
- ],
- "modifiers": 8 // shift
- },
- {
- "type": "touchEnd",
- "touchPoints": [
- {
- "state": "touchReleased",
- "x": 100,
- "y": 100,
- "id": 0
- },
- {
- "state": "touchReleased",
- "x": 100,
- "y": 200,
- "id": 1
- }
- ]
- }
- ];
-
- for (var i = 0; i < events.length; i++)
- InspectorTest.sendCommand("Input.dispatchTouchEvent", events[i], checkResponse.bind(undefined, i == events.length - 1));
-
- function checkResponse(isLastCommand, msg)
- {
- if (msg.error)
- InspectorTest.log("Error: " + msg.error.message);
- if (isLastCommand)
- InspectorTest.completeTest();
- }
-}
-
-</script>
-</head>
-<body onload="runTest()">
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698