| OLD | NEW |
| 1 // This script is supposed to be evaluated in dummy inspector front-end which is
loaded from | 1 // This script is supposed to be evaluated in dummy inspector front-end which is
loaded from |
| 2 // ../../../http/tests/inspector-protocol/resources/protocol-test.html and the r
elative paths | 2 // ../../../http/tests/inspector-protocol/resources/protocol-test.html and the r
elative paths |
| 3 // below are relative to that location. | 3 // below are relative to that location. |
| 4 | 4 |
| 5 if (!window.WebInspector) | 5 if (!window.WebInspector) |
| 6 window.WebInspector = {}; | 6 window.WebInspector = {}; |
| 7 | 7 |
| 8 self['Common'] = {}; | 8 self['Common'] = {}; |
| 9 self['Profiler'] = {}; | 9 self['Profiler'] = {}; |
| 10 self['HeapSnapshotWorker'] = {}; | 10 self['HeapSnapshotWorker'] = {}; |
| 11 | 11 |
| 12 InspectorTest.importScript("../../../../../Source/devtools/front_end/platform/ut
ilities.js"); | 12 InspectorTest.importScript("../../../../../Source/devtools/front_end/platform/ut
ilities.js"); |
| 13 InspectorTest.importScript("../../../../../Source/devtools/front_end/common/UISt
ring.js"); | 13 InspectorTest.importScript("../../../../../Source/devtools/front_end/common/UISt
ring.js"); |
| 14 InspectorTest.importScript("../../../../../Source/devtools/front_end/profiler/He
apSnapshotCommon.js"); | 14 InspectorTest.importScript("../../../../../Source/devtools/front_end/profiler/He
apSnapshotCommon.js"); |
| 15 InspectorTest.importScript("../../../../../Source/devtools/front_end/heap_snapsh
ot_worker/HeapSnapshot.js"); | 15 InspectorTest.importScript("../../../../../Source/devtools/front_end/heap_snapsh
ot_worker/HeapSnapshot.js"); |
| 16 InspectorTest.importScript("../../../../../Source/devtools/front_end/heap_snapsh
ot_worker/JSHeapSnapshot.js"); | |
| 17 InspectorTest.importScript("../../../../../Source/devtools/front_end/common/Text
Utils.js"); | 16 InspectorTest.importScript("../../../../../Source/devtools/front_end/common/Text
Utils.js"); |
| 18 InspectorTest.importScript("../../../../../Source/devtools/front_end/heap_snapsh
ot_worker/HeapSnapshotLoader.js"); | 17 InspectorTest.importScript("../../../../../Source/devtools/front_end/heap_snapsh
ot_worker/HeapSnapshotLoader.js"); |
| 19 | 18 |
| 20 InspectorTest.fail = function(message) | 19 InspectorTest.fail = function(message) |
| 21 { | 20 { |
| 22 InspectorTest.log("FAIL: " + message); | 21 InspectorTest.log("FAIL: " + message); |
| 23 InspectorTest.completeTest(); | 22 InspectorTest.completeTest(); |
| 24 } | 23 } |
| 25 | 24 |
| 26 InspectorTest._takeHeapSnapshotInternal = function(command, callback) | 25 InspectorTest._takeHeapSnapshotInternal = function(command, callback) |
| (...skipping 17 matching lines...) Expand all Loading... |
| 44 | 43 |
| 45 InspectorTest.takeHeapSnapshot = function(callback) | 44 InspectorTest.takeHeapSnapshot = function(callback) |
| 46 { | 45 { |
| 47 InspectorTest._takeHeapSnapshotInternal("HeapProfiler.takeHeapSnapshot", cal
lback); | 46 InspectorTest._takeHeapSnapshotInternal("HeapProfiler.takeHeapSnapshot", cal
lback); |
| 48 } | 47 } |
| 49 | 48 |
| 50 InspectorTest.stopRecordingHeapTimeline = function(callback) | 49 InspectorTest.stopRecordingHeapTimeline = function(callback) |
| 51 { | 50 { |
| 52 InspectorTest._takeHeapSnapshotInternal("HeapProfiler.stopTrackingHeapObject
s", callback); | 51 InspectorTest._takeHeapSnapshotInternal("HeapProfiler.stopTrackingHeapObject
s", callback); |
| 53 } | 52 } |
| OLD | NEW |