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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script src="../../http/tests/inspector/inspector-test.js"></script> 3 <script src="../../http/tests/inspector/inspector-test.js"></script>
4 <script src="heap-snapshot-test.js"></script> 4 <script src="heap-snapshot-test.js"></script>
5 <script> 5 <script>
6 6
7 function test() 7 function test()
8 { 8 {
9 WebInspector.inspectorView.showPanel("profiles"); 9 WebInspector.inspectorView.showPanel("profiles");
10 10
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 InspectorTest.assertEquals(expectedCanBeQueried[node.name()] , node.canBeQueried(), "canBeQueried of \"" + node.name() + "\""); 292 InspectorTest.assertEquals(expectedCanBeQueried[node.name()] , node.canBeQueried(), "canBeQueried of \"" + node.name() + "\"");
293 } 293 }
294 }, 294 },
295 295
296 function heapSnapshotArraySliceTest() 296 function heapSnapshotArraySliceTest()
297 { 297 {
298 var snapshot = new WebInspector.JSHeapSnapshot(InspectorTest.cre ateHeapSnapshotMock(), new WebInspector.HeapSnapshotProgress()); 298 var snapshot = new WebInspector.JSHeapSnapshot(InspectorTest.cre ateHeapSnapshotMock(), new WebInspector.HeapSnapshotProgress());
299 var root = snapshot.rootNode(); 299 var root = snapshot.rootNode();
300 var rawEdges = root.rawEdges(); 300 var rawEdges = root.rawEdges();
301 InspectorTest.assertEquals(6, rawEdges.length); 301 InspectorTest.assertEquals(6, rawEdges.length);
302 InspectorTest.assertEquals(6, rawEdges.slice(0).length); 302 InspectorTest.assertEquals(6, rawEdges.subarray(0).length);
303 InspectorTest.assertEquals(3, rawEdges.slice(3).length); 303 InspectorTest.assertEquals(3, rawEdges.subarray(3).length);
304 InspectorTest.assertEquals(3, rawEdges.slice(3, 6).length); 304 InspectorTest.assertEquals(3, rawEdges.subarray(3, 6).length);
305 InspectorTest.assertEquals(3, rawEdges.slice(0, 3).length); 305 InspectorTest.assertEquals(3, rawEdges.subarray(0, 3).length);
306 InspectorTest.assertEquals(0, rawEdges.slice(3, 3).length); 306 InspectorTest.assertEquals(0, rawEdges.subarray(3, 3).length);
307 }, 307 },
308 308
309 function heapSnapshotNodesProviderTest() 309 function heapSnapshotNodesProviderTest()
310 { 310 {
311 var snapshot = new WebInspector.JSHeapSnapshot(InspectorTest.cre ateHeapSnapshotMock(), new WebInspector.HeapSnapshotProgress()); 311 var snapshot = new WebInspector.JSHeapSnapshot(InspectorTest.cre ateHeapSnapshotMock(), new WebInspector.HeapSnapshotProgress());
312 312
313 function nodeFilter(node) 313 function nodeFilter(node)
314 { 314 {
315 return node.type() === "object" && node.name() !== "B" && no de.name() !== "D"; 315 return node.type() === "object" && node.name() !== "B" && no de.name() !== "D";
316 } 316 }
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
397 </script> 397 </script>
398 </head> 398 </head>
399 399
400 <body onload="runTest()"> 400 <body onload="runTest()">
401 <p> 401 <p>
402 This test checks HeapSnapshots module. 402 This test checks HeapSnapshots module.
403 </p> 403 </p>
404 404
405 </body> 405 </body>
406 </html> 406 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/inspector/profiler/heap-snapshot-test.js » ('j') | Source/devtools/front_end/HeapSnapshot.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698