| Index: third_party/WebKit/LayoutTests/inspector-protocol/dom/dom-setInspectModeEnabled.html
|
| diff --git a/third_party/WebKit/LayoutTests/inspector-protocol/dom/dom-setInspectModeEnabled.html b/third_party/WebKit/LayoutTests/inspector-protocol/dom/dom-setInspectModeEnabled.html
|
| deleted file mode 100644
|
| index a4d7a8889c9eab9a85e964b2e14952c04e647f9a..0000000000000000000000000000000000000000
|
| --- a/third_party/WebKit/LayoutTests/inspector-protocol/dom/dom-setInspectModeEnabled.html
|
| +++ /dev/null
|
| @@ -1,54 +0,0 @@
|
| -<html>
|
| -<head>
|
| -<script type="text/javascript" src="../../http/tests/inspector-protocol/resources/inspector-protocol-test.js"></script>
|
| -<script>
|
| -
|
| -function test()
|
| -{
|
| - var nodeInfo = {};
|
| - InspectorTest.eventHandler["DOM.setChildNodes"] = setChildNodes;
|
| - InspectorTest.eventHandler["Overlay.inspectNodeRequested"] = inspectNodeRequested;
|
| - InspectorTest.sendCommand("DOM.enable", {});
|
| - InspectorTest.sendCommand("Overlay.enable", {});
|
| - InspectorTest.sendCommand("Overlay.setInspectMode", { "mode": "searchForNode", highlightConfig: {} }, onSetModeEnabled);
|
| -
|
| - function onSetModeEnabled(message)
|
| - {
|
| - if (message.error) {
|
| - InspectorTest.log(message.error.message);
|
| - InspectorTest.completeTest();
|
| - return;
|
| - }
|
| -
|
| - InspectorTest.sendCommand("Input.dispatchMouseEvent", { "type": "mouseMoved", "button": "left", "clickCount": 1, "x": 150, "y": 150 });
|
| - InspectorTest.sendCommand("Input.dispatchMouseEvent", { "type": "mousePressed", "button": "left", "clickCount": 1, "x": 150, "y": 150 });
|
| - InspectorTest.sendCommand("Input.dispatchMouseEvent", { "type": "mouseReleased", "button": "left", "clickCount": 1, "x": 150, "y": 150 });
|
| - }
|
| -
|
| - function setChildNodes(message)
|
| - {
|
| - var nodes = message.params.nodes;
|
| - for (var i = 0; i < nodes.length; ++i) {
|
| - nodeInfo[nodes[i].nodeId] = nodes[i];
|
| - delete nodes[i].nodeId;
|
| - }
|
| - }
|
| -
|
| - function inspectNodeRequested(message)
|
| - {
|
| - InspectorTest.sendCommand("DOM.pushNodesByBackendIdsToFrontend", { "backendNodeIds": [ message.params.backendNodeId ] }, onNodeResolved);
|
| - }
|
| -
|
| - function onNodeResolved(message)
|
| - {
|
| - InspectorTest.log("DOM.inspectNodeRequested: " + nodeInfo[message.result.nodeIds[0]].localName);
|
| - InspectorTest.completeTest();
|
| - }
|
| -}
|
| -
|
| -</script>
|
| -</head>
|
| -<body onload="runTest()">
|
| -<div style="position:absolute;top:100;left:100;width:100;height:100;background:black"></div>
|
| -</body>
|
| -</html>
|
|
|