Chromium Code Reviews| Index: LayoutTests/inspector/profiler/heap-snapshot.html |
| diff --git a/LayoutTests/inspector/profiler/heap-snapshot.html b/LayoutTests/inspector/profiler/heap-snapshot.html |
| index 5ac0e8e17a21496488968258b57a8f484857d605..21e8355f3d71689d2461786aafb9214d74378e11 100644 |
| --- a/LayoutTests/inspector/profiler/heap-snapshot.html |
| +++ b/LayoutTests/inspector/profiler/heap-snapshot.html |
| @@ -58,12 +58,18 @@ function test() |
| { |
| var snapshot = InspectorTest.createJSHeapSnapshotMockObject(); |
| var nodeRoot = snapshot.createNode(snapshot._rootNodeIndex); |
| - var edgesRoot = nodeRoot.rawEdges(); |
| - InspectorTest.assertEquals(nodeRoot.edgesCount() * snapshot._edgeFieldsCount, edgesRoot.length, "rawEdges length"); |
| - var edge = snapshot.createEdge(edgesRoot); |
| + var edgeIterator = new WebInspector.HeapSnapshotEdgeIterator(nodeRoot); |
| + InspectorTest.assertEquals(true, edgeIterator.hasNext(), "has edges"); |
| + var edge = edgeIterator.item(); |
| InspectorTest.assertEquals("shortcut", edge.type(), "edge type"); |
| InspectorTest.assertEquals("a", edge.name(), "edge name"); |
| InspectorTest.assertEquals("A", edge.node().name(), "edge node name"); |
| + |
| + var edgesCount = 0; |
| + for (; edgeIterator.hasNext(); edgeIterator.next()) { |
|
alph
2014/03/21 08:30:39
s/[{}]//
yurys
2014/03/21 08:33:20
Done.
|
| + ++edgesCount; |
| + } |
| + InspectorTest.assertEquals(nodeRoot.edgesCount(), edgesCount, "edges count"); |
| }, |
| function heapSnapshotEdgeIteratorTest() |
| @@ -292,19 +298,6 @@ function test() |
| } |
| }, |
| - function heapSnapshotArraySliceTest() |
| - { |
| - var snapshot = new WebInspector.JSHeapSnapshot(InspectorTest.createHeapSnapshotMock(), new WebInspector.HeapSnapshotProgress()); |
| - var root = snapshot.rootNode(); |
| - var rawEdges = root.rawEdges(); |
| - InspectorTest.assertEquals(6, rawEdges.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() |
| { |
| var snapshot = new WebInspector.JSHeapSnapshot(InspectorTest.createHeapSnapshotMock(), new WebInspector.HeapSnapshotProgress()); |