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

Unified Diff: LayoutTests/inspector-protocol/heap-profiler/resources/heap-snapshot-common.js

Issue 14373016: DevTools: [HeapProfiler] Provide API for heap objects tracking info. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: jank -> junk 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/resources/heap-snapshot-common.js
diff --git a/LayoutTests/inspector-protocol/heap-profiler/resources/heap-snapshot-common.js b/LayoutTests/inspector-protocol/heap-profiler/resources/heap-snapshot-common.js
index acff44521d0b7696c8c9f5a4b6b020bf0680ce94..7c66897e547040a2a6deb117b210e18efc1eb8a0 100644
--- a/LayoutTests/inspector-protocol/heap-profiler/resources/heap-snapshot-common.js
+++ b/LayoutTests/inspector-protocol/heap-profiler/resources/heap-snapshot-common.js
@@ -7,6 +7,18 @@ if (!window.WebInspector)
InspectorTest.importScript("../../../../../Source/devtools/front_end/HeapSnapshot.js");
InspectorTest.importScript("../../../../../Source/devtools/front_end/JSHeapSnapshot.js");
+InspectorTest.fail = function(message)
+{
+ InspectorTest.log("FAIL: " + message);
+ InspectorTest.completeTest();
+}
+
+InspectorTest.assert = function(result, message)
+{
+ if (!result)
+ InspectorTest.fail(message);
+}
+
InspectorTest.takeHeapSnapshot = function(callback)
{
InspectorTest.eventHandler["HeapProfiler.addProfileHeader"] = function(messageObject)

Powered by Google App Engine
This is Rietveld 408576698