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

Unified Diff: third_party/WebKit/LayoutTests/inspector-protocol/dom/dom-childNodeCount.html

Issue 2955943002: DevTools: migrate inspector-protocol/dom tests to a new test runner (Closed)
Patch Set: rebaseline 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/dom/dom-childNodeCount.html
diff --git a/third_party/WebKit/LayoutTests/inspector-protocol/dom/dom-childNodeCount.html b/third_party/WebKit/LayoutTests/inspector-protocol/dom/dom-childNodeCount.html
deleted file mode 100644
index 1318d1acc8b23ecc080e4d8c657b7d0acf047c01..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/inspector-protocol/dom/dom-childNodeCount.html
+++ /dev/null
@@ -1,69 +0,0 @@
-<html>
-<head>
-<script type="text/javascript" src="../../http/tests/inspector-protocol/resources/inspector-protocol-test.js"></script>
-<script>
-
-function addNode()
-{
- var container = document.getElementById("container");
- container.appendChild(document.createElement("div"));
-}
-
-function removeNode()
-{
- var container = document.getElementById("container");
- container.firstChild.remove();
-}
-
-function test()
-{
- var nodeInfo = {};
- var containerNodeId;
- InspectorTest.eventHandler["DOM.setChildNodes"] = setChildNodes;
- InspectorTest.eventHandler["DOM.childNodeCountUpdated"] = childNodeCountUpdated;
-
- InspectorTest.sendCommand("DOM.getDocument", {}, onGotDocument);
-
- function onGotDocument(msg)
- {
- if (InspectorTest.completeTestIfError(msg))
- return;
- InspectorTest.sendCommand("DOM.querySelector", { nodeId: msg.result.root.nodeId, selector: "#container" }, onQuerySelector);
- }
-
- function onQuerySelector(msg)
- {
- if (InspectorTest.completeTestIfError(msg))
- return;
- containerNodeId = msg.result.nodeId;
- InspectorTest.log("Node arrived with childNodeCount: " + nodeInfo[containerNodeId].childNodeCount);
-
- InspectorTest.sendCommand("Runtime.evaluate", { expression: "addNode()"});
- InspectorTest.sendCommand("Runtime.evaluate", { expression: "removeNode()"});
- InspectorTest.sendCommand("Runtime.evaluate", { expression: "removeNode()"});
- InspectorTest.sendCommand("Runtime.evaluate", { expression: "removeNode()"},
- InspectorTest.completeTest.bind(InspectorTest));
- }
-
- 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 childNodeCountUpdated(message)
- {
- if (message.params.nodeId === containerNodeId)
- InspectorTest.log("childCountUpdated: " + message.params.childNodeCount);
- }
-}
-
-</script>
-</head>
-<body onload="runTest()">
-<div id="container" style="display:none"><div>child1</div><div>child2</div></div>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698