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

Unified Diff: LayoutTests/inspector-protocol/heap-profiler/heap-snapshot-with-detached-dom-tree.html

Issue 40513003: Delete/move the remaining stale tests in TestExpectations. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: delete plugins/reentrant-update-widget-positions.html as well Created 7 years, 2 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: LayoutTests/inspector-protocol/heap-profiler/heap-snapshot-with-detached-dom-tree.html
diff --git a/LayoutTests/inspector-protocol/heap-profiler/heap-snapshot-with-detached-dom-tree.html b/LayoutTests/inspector-protocol/heap-profiler/heap-snapshot-with-detached-dom-tree.html
deleted file mode 100644
index 554df4b7720df92b5977ec4305df36d99d300724..0000000000000000000000000000000000000000
--- a/LayoutTests/inspector-protocol/heap-profiler/heap-snapshot-with-detached-dom-tree.html
+++ /dev/null
@@ -1,79 +0,0 @@
-<html>
-<head>
-<script type="text/javascript" src="../../http/tests/inspector-protocol/resources/protocol-test.js"></script>
-<script>
-if (window.testRunner) {
- testRunner.dumpAsText();
- testRunner.waitUntilDone();
-}
-
-function createDetachedDomTreeAndRunTest()
-{
- window.retaining_wrapper = document.createElement("div");
- var t = document.createElement("div");
- retaining_wrapper.appendChild(t);
- t.appendChild(document.createElement("div"));
-
- runTest();
-}
-
-function test()
-{
- InspectorTest.importScript("../../../../inspector-protocol/heap-profiler/resources/heap-snapshot-common.js");
-
- function checkHeapSnapshot(snapshot) {
- var node;
- for (var it = snapshot._allNodes(); it.hasNext(); it.next()) {
- if (it.node.name() === "(Detached DOM trees)") {
- node = it.node;
- break;
- }
- }
- if (node)
- InspectorTest.log("SUCCESS: found " + node.name());
- else
- return InspectorTest.fail("cannot find detached DOM trees root");
-
- var detachedDOMTreeRE = /^Detached DOM tree/;
- var detachedDomTreeFound = false;
- for (var iter = node.edges(); iter.hasNext(); iter.next()) {
- var node = iter.edge.node();
- if (detachedDOMTreeRE.test(node.className())) {
- if ("Detached DOM tree / 4 entries" === node.name()) {
- if (detachedDomTreeFound)
- return InspectorTest.fail("second " + node.name());
- detachedDomTreeFound = true;
- InspectorTest.log("SUCCESS: found " + node.name());
- checkDetachedDOMTreeNodes(node);
- } else
- return InspectorTest.fail("unexpected detached DOM tree: " + node.name());
- }
- }
- InspectorTest.sendCommand("HeapProfiler.clearProfiles", {});
- }
-
- function checkDetachedDOMTreeNodes(treeNode)
- {
- var divCount = 0;
- for (var iter = treeNode.edges(); iter.hasNext(); iter.next()) {
- var node = iter.edge.node();
- if (node.name() === "HTMLDivElement")
- ++divCount;
- else
- return InspectorTest.fail("unexpected DOM wrapper: " + node.name());
- }
- if (divCount === 3)
- InspectorTest.log("SUCCESS: found " + divCount + " DIVs in " + treeNode.name());
- else
- return InspectorTest.fail("unexpected DIV count: " + divCount);
-
- }
-
- InspectorTest.takeHeapSnapshot(checkHeapSnapshot);
-}
-</script>
-</head>
-<body onload="createDetachedDomTreeAndRunTest()">
-<p>Test that all nodes from the detached DOM tree will get into one group in the heap snapshot. <a href="https://bugs.webkit.org/show_bug.cgi?id=107819">Bug 107819.</p>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698