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

Side by Side Diff: LayoutTests/inspector/tracing/timeline-auto-record.html

Issue 477153005: DevTools: adopt existing Timeline tests for tracing based Timeline (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 months 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 <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 var panel = WebInspector.inspectorView.panel("timeline"); 9 var panel = WebInspector.inspectorView.panel("timeline");
10 var model = panel._model; 10 var model = panel._model;
(...skipping 12 matching lines...) Expand all
23 WebInspector.inspectorView.showPanel("timeline"); 23 WebInspector.inspectorView.showPanel("timeline");
24 InspectorTest.runWhenPageLoads(callbackBarrier.createCallback()); 24 InspectorTest.runWhenPageLoads(callbackBarrier.createCallback());
25 callbackBarrier.callWhenDone(recordingStopped); 25 callbackBarrier.callWhenDone(recordingStopped);
26 InspectorTest.addResult("Reloading page on timeline panel"); 26 InspectorTest.addResult("Reloading page on timeline panel");
27 WebInspector.resourceTreeModel.reloadPage(); 27 WebInspector.resourceTreeModel.reloadPage();
28 } 28 }
29 29
30 function recordingStarted() 30 function recordingStarted()
31 { 31 {
32 InspectorTest.addResult("Recording started"); 32 InspectorTest.addResult("Recording started");
33 InspectorTest.addResult("Initiated by user: " + model._clientInitiatedRe cording); 33 InspectorTest.addResult("Initiated by user: " + panel._userInitiatedReco rding);
34 } 34 }
35 35
36 function recordingStopped() 36 function recordingStopped()
37 { 37 {
38 InspectorTest.addResult("Recording stopped"); 38 InspectorTest.addResult("Recording stopped");
39 InspectorTest.completeTest(); 39 InspectorTest.completeTest();
40 } 40 }
41 } 41 }
42 42
43 </script> 43 </script>
44 </head> 44 </head>
45 45
46 <body onload="runTest()"> 46 <body onload="runTest()">
47 <p>Test auto-recording of Timeline.</p> 47 <p>Test auto-recording of Timeline.</p>
48 48
49 </body> 49 </body>
50 </html> 50 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698