| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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> |
| OLD | NEW |