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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/tracing/buffer-usage.html

Issue 2493373002: DevTools: rename WebInspector into modules. (Closed)
Patch Set: for bots Created 4 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
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script src="../../http/tests/inspector/inspector-test.js"></script> 3 <script src="../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../http/tests/inspector/timeline-test.js"></script> 4 <script src="../../http/tests/inspector/timeline-test.js"></script>
5 <script> 5 <script>
6 6
7 function test() 7 function test()
8 { 8 {
9 WebInspector.TestTimelineLifecycleDelegate = function() 9 TestTimelineLifecycleDelegate = function()
10 { 10 {
11 this._hadLoadingProgress = false; 11 this._hadLoadingProgress = false;
12 } 12 }
13 13
14 WebInspector.TestTimelineLifecycleDelegate.prototype = { 14 TestTimelineLifecycleDelegate.prototype = {
15 recordingStarted: function() 15 recordingStarted: function()
16 { 16 {
17 InspectorTest.addResult("TimelineLifecycleDelegate.recordingStarted" ); 17 InspectorTest.addResult("TimelineLifecycleDelegate.recordingStarted" );
18 }, 18 },
19 19
20 recordingProgress: function() 20 recordingProgress: function()
21 { 21 {
22 if (!controller) 22 if (!controller)
23 return; 23 return;
24 InspectorTest.addResult("TimelineLifecycleDelegate.recordingProgress "); 24 InspectorTest.addResult("TimelineLifecycleDelegate.recordingProgress ");
(...skipping 13 matching lines...) Expand all
38 this._hadLoadingProgress = true; 38 this._hadLoadingProgress = true;
39 InspectorTest.addResult("TimelineLifecycleDelegate.loadingProgress") ; 39 InspectorTest.addResult("TimelineLifecycleDelegate.loadingProgress") ;
40 }, 40 },
41 41
42 loadingComplete: function() 42 loadingComplete: function()
43 { 43 {
44 InspectorTest.addResult("TimelineLifecycleDelegate.loadingComplete") ; 44 InspectorTest.addResult("TimelineLifecycleDelegate.loadingComplete") ;
45 InspectorTest.completeTest(); 45 InspectorTest.completeTest();
46 }, 46 },
47 47
48 __proto__: WebInspector.TimelineLifecycleDelegate 48 __proto__: Timeline.TimelineLifecycleDelegate
49 }; 49 };
50 50
51 var controller = new WebInspector.TimelineController(WebInspector.targetMana ger.mainTarget(), new WebInspector.TestTimelineLifecycleDelegate(), InspectorTes t.createTracingModel()); 51 var controller = new Timeline.TimelineController(SDK.targetManager.mainTarge t(), new TestTimelineLifecycleDelegate(), InspectorTest.createTracingModel());
52 controller.startRecording(); 52 controller.startRecording();
53 } 53 }
54 54
55 </script> 55 </script>
56 </head> 56 </head>
57 57
58 <body onload="runTest()"> 58 <body onload="runTest()">
59 <p> 59 <p>
60 Tests that buffer usage update are sent when recording trace events and 60 Tests that buffer usage update are sent when recording trace events and
61 TimelineLifecycleDelegate methods are properly invoked in the expected order. 61 TimelineLifecycleDelegate methods are properly invoked in the expected order.
62 </p> 62 </p>
63 </body> 63 </body>
64 </html> 64 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698