| 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 var source = InspectorTest.createHeapSnapshotMockRaw(); | 10 var source = InspectorTest.createHeapSnapshotMockRaw(); |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 } | 30 } |
| 31 | 31 |
| 32 function tempFileReady() | 32 function tempFileReady() |
| 33 { | 33 { |
| 34 callback(this); | 34 callback(this); |
| 35 } | 35 } |
| 36 InspectorTest.addSniffer(WebInspector.HeapProfileHeader.prototype, "_did
WriteToTempFile", tempFileReady); | 36 InspectorTest.addSniffer(WebInspector.HeapProfileHeader.prototype, "_did
WriteToTempFile", tempFileReady); |
| 37 profileType._takeHeapSnapshot(function() {}); | 37 profileType._takeHeapSnapshot(function() {}); |
| 38 } | 38 } |
| 39 | 39 |
| 40 WebInspector.consoleModel.log = function(message) { | 40 WebInspector.console.log = function(message) { |
| 41 InspectorTest.addResult("WebInspector.consoleModel.log: " + message); | 41 InspectorTest.addResult("WebInspector.consoleModel.log: " + message); |
| 42 } | 42 } |
| 43 | 43 |
| 44 InspectorTest.runTestSuite([ | 44 InspectorTest.runTestSuite([ |
| 45 function heapSnapshotSaveToFileTest(next) | 45 function heapSnapshotSaveToFileTest(next) |
| 46 { | 46 { |
| 47 function snapshotLoaded(profileHeader) | 47 function snapshotLoaded(profileHeader) |
| 48 { | 48 { |
| 49 var savedSnapshotData; | 49 var savedSnapshotData; |
| 50 function saveMock(url, data) | 50 function saveMock(url, data) |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 </script> | 135 </script> |
| 136 </head> | 136 </head> |
| 137 | 137 |
| 138 <body onload="runTest()"> | 138 <body onload="runTest()"> |
| 139 <p> | 139 <p> |
| 140 This test checks HeapSnapshots loader. | 140 This test checks HeapSnapshots loader. |
| 141 </p> | 141 </p> |
| 142 | 142 |
| 143 </body> | 143 </body> |
| 144 </html> | 144 </html> |
| OLD | NEW |