| 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>
|
|
|