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

Side by Side Diff: LayoutTests/inspector/timeline/timeline-network-resource.html

Issue 268293003: DevTools: Get rid of WebInspector.panels (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 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 var scriptUrl = "timeline-network-resource.js"; 7 var scriptUrl = "timeline-network-resource.js";
8 8
9 function performActions() 9 function performActions()
10 { 10 {
11 var script = document.createElement("script"); 11 var script = document.createElement("script");
12 script.src = scriptUrl; 12 script.src = scriptUrl;
13 document.body.appendChild(script); 13 document.body.appendChild(script);
14 } 14 }
15 15
16 function test() 16 function test()
17 { 17 {
18 var requestId; 18 var requestId;
19 var scriptUrl = "timeline-network-resource.js"; 19 var scriptUrl = "timeline-network-resource.js";
20 20
21 var model = WebInspector.panels.timeline._model; 21 var model = WebInspector.inspectorView.panel("timeline")._model;
22 var presentationModel = InspectorTest.timelinePresentationModel(); 22 var presentationModel = InspectorTest.timelinePresentationModel();
23 23
24 InspectorTest.startTimeline(step1); 24 InspectorTest.startTimeline(step1);
25 25
26 function step1() 26 function step1()
27 { 27 {
28 InspectorTest.evaluateInPage("performActions()"); 28 InspectorTest.evaluateInPage("performActions()");
29 InspectorTest.addConsoleSniffer(step2); 29 InspectorTest.addConsoleSniffer(step2);
30 } 30 }
31 31
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 93
94 </script> 94 </script>
95 </head> 95 </head>
96 96
97 <body onload="runTest()"> 97 <body onload="runTest()">
98 <p> 98 <p>
99 Tests the Timeline API instrumentation of a network resource load 99 Tests the Timeline API instrumentation of a network resource load
100 </p> 100 </p>
101 </body> 101 </body>
102 </html> 102 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698