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

Side by Side Diff: LayoutTests/inspector/tracing-test.js

Issue 705063004: DevTools: Promisify WebInspector.TempFile (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: comments addressed 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 function initialize_TracingTest() 1 function initialize_TracingTest()
2 { 2 {
3 3
4 InspectorTest.preloadPanel("timeline"); 4 InspectorTest.preloadPanel("timeline");
5 WebInspector.TempFile = InspectorTest.TempFileMock;
5 6
6 InspectorTest.tracingManager = function() 7 InspectorTest.tracingManager = function()
7 { 8 {
8 if (WebInspector.panels.timeline._tracingManager) 9 if (WebInspector.panels.timeline._tracingManager)
9 return WebInspector.panels.timeline._tracingManager; 10 return WebInspector.panels.timeline._tracingManager;
10 if (!InspectorTest._tracingManager) 11 if (!InspectorTest._tracingManager)
11 InspectorTest._tracingManager = new WebInspector.TracingManager(); 12 InspectorTest._tracingManager = new WebInspector.TracingManager();
12 return InspectorTest._tracingManager; 13 return InspectorTest._tracingManager;
13 } 14 }
14 15
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 } 48 }
48 49
49 function onTracingComplete(event) 50 function onTracingComplete(event)
50 { 51 {
51 InspectorTest.tracingTimelineModel().removeEventListener(WebInspector.Ti melineModel.Events.RecordingStopped, onTracingComplete, this); 52 InspectorTest.tracingTimelineModel().removeEventListener(WebInspector.Ti melineModel.Events.RecordingStopped, onTracingComplete, this);
52 callback(); 53 callback();
53 } 54 }
54 } 55 }
55 56
56 } 57 }
OLDNEW
« no previous file with comments | « LayoutTests/inspector/profiler/temp-storage-cleaner.html ('k') | Source/devtools/front_end/bindings/TempFile.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698