Index: third_party/WebKit/LayoutTests/http/tests/inspector-protocol/dom-protocol-test.js |
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector-protocol/dom-protocol-test.js b/third_party/WebKit/LayoutTests/http/tests/inspector-protocol/dom-protocol-test.js |
deleted file mode 100644 |
index 1be873c6c466a6db8ea2335e6353c64aa36763a3..0000000000000000000000000000000000000000 |
--- a/third_party/WebKit/LayoutTests/http/tests/inspector-protocol/dom-protocol-test.js |
+++ /dev/null |
@@ -1,46 +0,0 @@ |
-function initialize_domTest() |
-{ |
- |
-InspectorTest.trackGetChildNodesEvents = function(nodeInfo, callback) |
-{ |
- InspectorTest.eventHandler["DOM.setChildNodes"] = setChildNodes; |
- |
- function setChildNodes(message) |
- { |
- var nodes = message.params.nodes; |
- for (var i = 0; i < nodes.length; ++i) |
- InspectorTest.addNode(nodeInfo, nodes[i]); |
- if (callback) |
- callback(); |
- } |
-} |
- |
-InspectorTest.addNode = function(nodeInfo, node) |
-{ |
- nodeInfo[node.nodeId] = node; |
- delete node.nodeId; |
- var children = node.children || []; |
- for (var i = 0; i < children.length; ++i) |
- InspectorTest.addNode(nodeInfo, children[i]); |
- var shadowRoots = node.shadowRoots || []; |
- for (var i = 0; i < shadowRoots.length; ++i) |
- InspectorTest.addNode(nodeInfo, shadowRoots[i]); |
-} |
- |
-InspectorTest.requestDocumentNodeId = async function(callback) |
-{ |
- var result = await InspectorTest.sendCommandOrDie("DOM.getDocument", {}); |
- if (callback) |
- callback(result.root.nodeId); |
- return result.root.nodeId; |
-}; |
- |
-InspectorTest.requestNodeId = async function(documentNodeId, selector, callback) |
-{ |
- var result = await InspectorTest.sendCommandOrDie("DOM.querySelector", { "nodeId": documentNodeId , "selector": selector }); |
- if (callback) |
- callback(result.nodeId); |
- return result.nodeId; |
-}; |
- |
-} |