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

Unified Diff: LayoutTests/inspector/profiler/heap-snapshot.html

Issue 204563002: Remove WebInspector.HeapSnapshotArraySlice (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
« no previous file with comments | « no previous file | LayoutTests/inspector/profiler/heap-snapshot-test.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/inspector/profiler/heap-snapshot.html
diff --git a/LayoutTests/inspector/profiler/heap-snapshot.html b/LayoutTests/inspector/profiler/heap-snapshot.html
index f397f9e24003e808ffd1ba6b745d207cf967bf88..fb1d0e3796d53ce0a5227513883958836b233517 100644
--- a/LayoutTests/inspector/profiler/heap-snapshot.html
+++ b/LayoutTests/inspector/profiler/heap-snapshot.html
@@ -164,7 +164,7 @@ function test()
node = newNode;
}
- var snapshot = new WebInspector.JSHeapSnapshot(builder.generateSnapshot(), new WebInspector.HeapSnapshotProgress());
+ var snapshot = builder.createJSHeapSnapshot();
InspectorTest.assertEquals(
iterations * nodeSize, snapshot.rootNode().retainedSize(),
"Ensure that root node retained size supports values exceeding 2^32 bytes.");
@@ -205,7 +205,7 @@ function test()
var debuggerOwnedNode = new InspectorTest.HeapNode("debuggerOwnedNode");
debuggerNode.linkNode(debuggerOwnedNode, InspectorTest.HeapEdge.Type.element);
- var snapshot = new WebInspector.JSHeapSnapshot(builder.generateSnapshot(), new WebInspector.HeapSnapshotProgress());
+ var snapshot = builder.createJSHeapSnapshot();
snapshot._flags = new Array(snapshot.nodeCount);
for (var i = 0; i < snapshot.nodeCount; ++i)
snapshot._flags[i] = 0;
@@ -299,11 +299,11 @@ function test()
var root = snapshot.rootNode();
var rawEdges = root.rawEdges();
InspectorTest.assertEquals(6, rawEdges.length);
- InspectorTest.assertEquals(6, rawEdges.slice(0).length);
- InspectorTest.assertEquals(3, rawEdges.slice(3).length);
- InspectorTest.assertEquals(3, rawEdges.slice(3, 6).length);
- InspectorTest.assertEquals(3, rawEdges.slice(0, 3).length);
- InspectorTest.assertEquals(0, rawEdges.slice(3, 3).length);
+ InspectorTest.assertEquals(6, rawEdges.subarray(0).length);
+ InspectorTest.assertEquals(3, rawEdges.subarray(3).length);
+ InspectorTest.assertEquals(3, rawEdges.subarray(3, 6).length);
+ InspectorTest.assertEquals(3, rawEdges.subarray(0, 3).length);
+ InspectorTest.assertEquals(0, rawEdges.subarray(3, 3).length);
},
function heapSnapshotNodesProviderTest()
« no previous file with comments | « no previous file | LayoutTests/inspector/profiler/heap-snapshot-test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698