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

Unified Diff: LayoutTests/inspector/profiler/heap-snapshot-test.js

Issue 214713004: DevTools: Calculate user object distances from Window not from NativeContext. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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/profiler/heap-snapshot-test.js
diff --git a/LayoutTests/inspector/profiler/heap-snapshot-test.js b/LayoutTests/inspector/profiler/heap-snapshot-test.js
index e6eacd8b8012da75f69731f88053eaa1da455810..f4515d4f875b4b69f47cc9b1bc4c4a0c8db7dd2a 100644
--- a/LayoutTests/inspector/profiler/heap-snapshot-test.js
+++ b/LayoutTests/inspector/profiler/heap-snapshot-test.js
@@ -186,7 +186,8 @@ InspectorTest.HeapNode.Type = {
"closure": "closure",
"regexp": "regexp",
"number": "number",
- "native": "native"
+ "native": "native",
+ "synthetic": "synthetic"
};
InspectorTest.HeapNode.prototype = {
@@ -384,7 +385,7 @@ InspectorTest.createHeapSnapshot = function(instanceCount, firstId)
var builder = new InspectorTest.HeapSnapshotBuilder();
var rootNode = builder.rootNode;
- var gcRootsNode = new InspectorTest.HeapNode("(GC roots)");
+ var gcRootsNode = new InspectorTest.HeapNode("(GC roots)", 0, InspectorTest.HeapNode.Type.synthetic);
rootNode.linkNode(gcRootsNode, InspectorTest.HeapEdge.Type.element);
var windowNode = new InspectorTest.HeapNode("Window", 20);
« no previous file with comments | « LayoutTests/inspector/profiler/heap-snapshot-statistics.html ('k') | Source/devtools/front_end/HeapSnapshot.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698