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['TextUtils'] = {}; |
9 self['HeapSnapshotModel'] = {}; | 10 self['HeapSnapshotModel'] = {}; |
10 self['HeapSnapshotWorker'] = {}; | 11 self['HeapSnapshotWorker'] = {}; |
11 | 12 |
12 InspectorTest.importScript("../../../../../Source/devtools/front_end/platform/ut
ilities.js"); | 13 InspectorTest.importScript("../../../../../Source/devtools/front_end/platform/ut
ilities.js"); |
13 InspectorTest.importScript("../../../../../Source/devtools/front_end/common/UISt
ring.js"); | 14 InspectorTest.importScript("../../../../../Source/devtools/front_end/common/UISt
ring.js"); |
14 InspectorTest.importScript("../../../../../Source/devtools/front_end/heap_snapsh
ot_model/HeapSnapshotModel.js"); | 15 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"); | 16 InspectorTest.importScript("../../../../../Source/devtools/front_end/heap_snapsh
ot_worker/HeapSnapshot.js"); |
16 InspectorTest.importScript("../../../../../Source/devtools/front_end/common/Text
Utils.js"); | 17 InspectorTest.importScript("../../../../../Source/devtools/front_end/text_utils/
TextUtils.js"); |
17 InspectorTest.importScript("../../../../../Source/devtools/front_end/heap_snapsh
ot_worker/HeapSnapshotLoader.js"); | 18 InspectorTest.importScript("../../../../../Source/devtools/front_end/heap_snapsh
ot_worker/HeapSnapshotLoader.js"); |
18 | 19 |
19 InspectorTest.fail = function(message) | 20 InspectorTest.fail = function(message) |
20 { | 21 { |
21 InspectorTest.log("FAIL: " + message); | 22 InspectorTest.log("FAIL: " + message); |
22 InspectorTest.completeTest(); | 23 InspectorTest.completeTest(); |
23 } | 24 } |
24 | 25 |
25 InspectorTest._takeHeapSnapshotInternal = function(command, callback) | 26 InspectorTest._takeHeapSnapshotInternal = function(command, callback) |
26 { | 27 { |
(...skipping 16 matching lines...) Expand all Loading... |
43 | 44 |
44 InspectorTest.takeHeapSnapshot = function(callback) | 45 InspectorTest.takeHeapSnapshot = function(callback) |
45 { | 46 { |
46 InspectorTest._takeHeapSnapshotInternal("HeapProfiler.takeHeapSnapshot", cal
lback); | 47 InspectorTest._takeHeapSnapshotInternal("HeapProfiler.takeHeapSnapshot", cal
lback); |
47 } | 48 } |
48 | 49 |
49 InspectorTest.stopRecordingHeapTimeline = function(callback) | 50 InspectorTest.stopRecordingHeapTimeline = function(callback) |
50 { | 51 { |
51 InspectorTest._takeHeapSnapshotInternal("HeapProfiler.stopTrackingHeapObject
s", callback); | 52 InspectorTest._takeHeapSnapshotInternal("HeapProfiler.stopTrackingHeapObject
s", callback); |
52 } | 53 } |
OLD | NEW |