Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Side by Side Diff: LayoutTests/inspector-protocol/heap-profiler/resources/heap-snapshot-common.js

Issue 673163004: [DevTools] Extract platform module. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix inspector-protocol tests Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 InspectorTest.importScript("../../../../../Source/devtools/front_end/platform/Pr omise.js");
8 InspectorTest.importScript("../../../../../Source/devtools/front_end/platform/ut ilities.js");
7 InspectorTest.importScript("../../../../../Source/devtools/front_end/common/UISt ring.js"); 9 InspectorTest.importScript("../../../../../Source/devtools/front_end/common/UISt ring.js");
8 InspectorTest.importScript("../../../../../Source/devtools/front_end/common/util ities.js");
9 InspectorTest.importScript("../../../../../Source/devtools/front_end/profiler/He apSnapshotCommon.js"); 10 InspectorTest.importScript("../../../../../Source/devtools/front_end/profiler/He apSnapshotCommon.js");
10 InspectorTest.importScript("../../../../../Source/devtools/front_end/heap_snapsh ot_worker/HeapSnapshot.js"); 11 InspectorTest.importScript("../../../../../Source/devtools/front_end/heap_snapsh ot_worker/HeapSnapshot.js");
11 InspectorTest.importScript("../../../../../Source/devtools/front_end/heap_snapsh ot_worker/JSHeapSnapshot.js"); 12 InspectorTest.importScript("../../../../../Source/devtools/front_end/heap_snapsh ot_worker/JSHeapSnapshot.js");
12 13
13 InspectorTest.fail = function(message) 14 InspectorTest.fail = function(message)
14 { 15 {
15 InspectorTest.log("FAIL: " + message); 16 InspectorTest.log("FAIL: " + message);
16 InspectorTest.completeTest(); 17 InspectorTest.completeTest();
17 } 18 }
18 19
(...skipping 17 matching lines...) Expand all
36 var parsed = JSON.parse(serializedSnapshot); 37 var parsed = JSON.parse(serializedSnapshot);
37 parsed.nodes = new Uint32Array(parsed.nodes); 38 parsed.nodes = new Uint32Array(parsed.nodes);
38 parsed.edges = new Uint32Array(parsed.edges); 39 parsed.edges = new Uint32Array(parsed.edges);
39 var snapshot = new WebInspector.JSHeapSnapshot(parsed, new WebInspector. HeapSnapshotProgress()); 40 var snapshot = new WebInspector.JSHeapSnapshot(parsed, new WebInspector. HeapSnapshotProgress());
40 callback(snapshot); 41 callback(snapshot);
41 InspectorTest.log("SUCCESS: didGetHeapSnapshot"); 42 InspectorTest.log("SUCCESS: didGetHeapSnapshot");
42 InspectorTest.completeTest(); 43 InspectorTest.completeTest();
43 } 44 }
44 InspectorTest.sendCommand("HeapProfiler.takeHeapSnapshot", {}, didTakeHeapSn apshot); 45 InspectorTest.sendCommand("HeapProfiler.takeHeapSnapshot", {}, didTakeHeapSn apshot);
45 } 46 }
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/inspector/initial-modules-load-expected.txt » ('j') | Source/devtools/devtools.gypi » ('J')

Powered by Google App Engine
This is Rietveld 408576698