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

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

Issue 14373016: DevTools: [HeapProfiler] Provide API for heap objects tracking info. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: reupload Created 7 years, 8 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
index ba0906717120a553260fac9db51a70619ce97a30..29ef133c21531b4d6f8213b99ae861508d937c47 100644
--- 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
@@ -32,7 +32,7 @@ function test()
if (node)
InspectorTest.log("SUCCESS: found " + node.name());
else
- return fail("cannot find detached DOM trees root");
+ return InspectorTest.fail("cannot find detached DOM trees root");
var detachedDOMTreeRE = /^Detached DOM tree/;
var detachedDomTreeFound = false;
@@ -41,12 +41,12 @@ function test()
if (detachedDOMTreeRE.test(node.className())) {
if ("Detached DOM tree / 4 entries" === node.name()) {
if (detachedDomTreeFound)
- return fail("second " + node.name());
+ return InspectorTest.fail("second " + node.name());
detachedDomTreeFound = true;
InspectorTest.log("SUCCESS: found " + node.name());
checkDetachedDOMTreeNodes(node);
} else
- return fail("unexpected detached DOM tree: " + node.name());
+ return InspectorTest.fail("unexpected detached DOM tree: " + node.name());
}
}
}
@@ -59,20 +59,15 @@ function test()
if (node.name() === "HTMLDivElement")
++divCount;
else
- return fail("unexpected DOM wrapper: " + node.name());
+ return InspectorTest.fail("unexpected DOM wrapper: " + node.name());
}
if (divCount === 3)
InspectorTest.log("SUCCESS: found " + divCount + " DIVs in " + treeNode.name());
else
- return fail("unexpected DIV count: " + divCount);
+ return InspectorTest.fail("unexpected DIV count: " + divCount);
}
- function fail(message) {
- InspectorTest.log("FAIL: " + message);
- InspectorTest.completeTest();
- }
-
InspectorTest.takeHeapSnapshot(checkHeapSnapshot);
}
</script>

Powered by Google App Engine
This is Rietveld 408576698