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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/inspector-protocol/dom-protocol-test.js

Issue 2942573003: [DevTools] New harness for inspector-protocol layout tests (Closed)
Patch Set: Protocol -> dp 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/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;
-};
-
-}

Powered by Google App Engine
This is Rietveld 408576698