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

Unified Diff: third_party/WebKit/LayoutTests/inspector-protocol/input/dispatchMouseEvent.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/dispatchMouseEvent.html
diff --git a/third_party/WebKit/LayoutTests/inspector-protocol/input/dispatchMouseEvent.html b/third_party/WebKit/LayoutTests/inspector-protocol/input/dispatchMouseEvent.html
deleted file mode 100644
index 7b40610ab70c14e4e801dc1eb8a777cc570c8a07..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/inspector-protocol/input/dispatchMouseEvent.html
+++ /dev/null
@@ -1,83 +0,0 @@
-<html>
-<head>
-<script type="text/javascript" src="../../http/tests/inspector-protocol/resources/inspector-protocol-test.js"></script>
-<script>
-
-function addListeners()
-{
- window.addEventListener("mousedown", logEvent);
- window.addEventListener("mouseup", logEvent);
- window.addEventListener("mousemove", logEvent);
- window.addEventListener("contextmenu", logEvent);
-}
-
-function logEvent(event)
-{
- log("-----Event-----");
- log("type: " + event.type);
- log("button: " + event.button);
- if (event.shiftKey)
- log("shiftKey");
- log("x: " + event.x);
- log("y: " + event.y);
- event.preventDefault();
-}
-
-function test()
-{
- var events = [
- {
- "type": "mousePressed",
- "button": "left",
- "clickCount": 1,
- "x": 100,
- "y": 200
- },
- {
- "type": "mouseReleased",
- "button": "left",
- "clickCount": 1,
- "x": 100,
- "y": 200
- },
- {
- "type": "mouseMoved",
- "modifiers": 8, // shift
- "x": 50,
- "y": 150
- },
- {
- "type": "mousePressed",
- "button": "right",
- "clickCount": 1,
- "x": 100,
- "y": 200
- },
- {
- "type": "mouseReleased",
- "button": "right",
- "clickCount": 1,
- "x": 100,
- "y": 200
- }
- ];
-
- InspectorTest.evaluateInPage("addListeners();", function() {
- for (var i = 0; i < events.length; i++)
- InspectorTest.sendCommand("Input.dispatchMouseEvent", 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