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['HeapSnapshotModel'] = {}; |
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/heap_snapsh
ot_model/HeapSnapshotModel.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/common/Text
Utils.js"); | 16 InspectorTest.importScript("../../../../../Source/devtools/front_end/common/Text
Utils.js"); |
17 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"); |
18 | 18 |
19 InspectorTest.fail = function(message) | 19 InspectorTest.fail = function(message) |
20 { | 20 { |
21 InspectorTest.log("FAIL: " + message); | 21 InspectorTest.log("FAIL: " + message); |
22 InspectorTest.completeTest(); | 22 InspectorTest.completeTest(); |
23 } | 23 } |
24 | 24 |
(...skipping 18 matching lines...) Expand all Loading... |
43 | 43 |
44 InspectorTest.takeHeapSnapshot = function(callback) | 44 InspectorTest.takeHeapSnapshot = function(callback) |
45 { | 45 { |
46 InspectorTest._takeHeapSnapshotInternal("HeapProfiler.takeHeapSnapshot", cal
lback); | 46 InspectorTest._takeHeapSnapshotInternal("HeapProfiler.takeHeapSnapshot", cal
lback); |
47 } | 47 } |
48 | 48 |
49 InspectorTest.stopRecordingHeapTimeline = function(callback) | 49 InspectorTest.stopRecordingHeapTimeline = function(callback) |
50 { | 50 { |
51 InspectorTest._takeHeapSnapshotInternal("HeapProfiler.stopTrackingHeapObject
s", callback); | 51 InspectorTest._takeHeapSnapshotInternal("HeapProfiler.stopTrackingHeapObject
s", callback); |
52 } | 52 } |
OLD | NEW |