| 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 function createHeapSnapshotA() | 9 function createHeapSnapshotA() |
| 10 { | 10 { |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 0, 5, 35, | 74 0, 5, 35, |
| 75 0, 6, 42], | 75 0, 6, 42], |
| 76 strings: ["", "A"] | 76 strings: ["", "A"] |
| 77 }; | 77 }; |
| 78 } | 78 } |
| 79 | 79 |
| 80 InspectorTest.runHeapSnapshotTestSuite([ | 80 InspectorTest.runHeapSnapshotTestSuite([ |
| 81 function testShowAll(next) | 81 function testShowAll(next) |
| 82 { | 82 { |
| 83 // Make sure all nodes are visible. | 83 // Make sure all nodes are visible. |
| 84 WebInspector.HeapSnapshotDiffDataGrid.prototype.defaultPopulateCount
= function() { return 100; }; | 84 Profiler.HeapSnapshotDiffDataGrid.prototype.defaultPopulateCount = f
unction() { return 100; }; |
| 85 | 85 |
| 86 InspectorTest.takeAndOpenSnapshot(createHeapSnapshotA, createSnapsho
tB); | 86 InspectorTest.takeAndOpenSnapshot(createHeapSnapshotA, createSnapsho
tB); |
| 87 function createSnapshotB() { | 87 function createSnapshotB() { |
| 88 InspectorTest.takeAndOpenSnapshot(createHeapSnapshotB, step1); | 88 InspectorTest.takeAndOpenSnapshot(createHeapSnapshotB, step1); |
| 89 } | 89 } |
| 90 | 90 |
| 91 function step1() | 91 function step1() |
| 92 { | 92 { |
| 93 InspectorTest.switchToView("Comparison", step2); | 93 InspectorTest.switchToView("Comparison", step2); |
| 94 } | 94 } |
| (...skipping 28 matching lines...) Expand all Loading... |
| 123 | 123 |
| 124 </script> | 124 </script> |
| 125 </head> | 125 </head> |
| 126 <body onload="runTest()"> | 126 <body onload="runTest()"> |
| 127 <p> | 127 <p> |
| 128 Tests that Comparison view of heap snapshots will contain added nodes even if | 128 Tests that Comparison view of heap snapshots will contain added nodes even if |
| 129 their ids are less than the maximumm JS object id in the base snapshot. | 129 their ids are less than the maximumm JS object id in the base snapshot. |
| 130 </p> | 130 </p> |
| 131 </body> | 131 </body> |
| 132 </html> | 132 </html> |
| OLD | NEW |