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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/inspector/tracing/timeline-receive-response-event.html

Issue 2540023003: Dispatch encoded_data_length separately in content/child (Closed)
Patch Set: fix Created 4 years 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="../inspector-test.js"></script>
4 <script src="../../../http/tests/inspector/timeline-test.js"></script> 4 <script src="../timeline-test.js"></script>
5 <script> 5 <script>
6 6
7 function performActions() 7 function performActions()
8 { 8 {
9 var callback; 9 var callback;
10 var promise = new Promise((fulfill) => callback = fulfill); 10 var promise = new Promise((fulfill) => callback = fulfill);
11 var image = new Image(); 11 var image = new Image();
12 image.onload = bar; 12 image.onload = bar;
13 image.src = "../resources/anImage.png"; 13 image.src = "resources/anImage.png";
14 14
15 function bar() 15 function bar()
16 { 16 {
17 var image = new Image(); 17 var image = new Image();
18 image.onload = function(event) { callback(); } // do not pass event arg ument to the callback. 18 image.onload = function(event) { callback(); } // do not pass event arg ument to the callback.
19 image.src = "../resources/anotherImage.png"; 19 image.src = "resources/anotherImage.png";
20 } 20 }
21 return promise; 21 return promise;
22 } 22 }
23 23
24 function test() 24 function test()
25 { 25 {
26 UI.viewManager.showView("timeline"); 26 UI.viewManager.showView("timeline");
27 UI.panels.timeline._model._currentTarget = SDK.targetManager.mainTarget(); 27 UI.panels.timeline._model._currentTarget = SDK.targetManager.mainTarget();
28 UI.panels.timeline._captureJSProfileSetting.set(false); 28 UI.panels.timeline._captureJSProfileSetting.set(false);
29 InspectorTest.invokeAsyncWithTimeline("performActions", finish); 29 InspectorTest.invokeAsyncWithTimeline("performActions", finish);
(...skipping 25 matching lines...) Expand all
55 </script> 55 </script>
56 </head> 56 </head>
57 57
58 <body onload="runTest()"> 58 <body onload="runTest()">
59 <p> 59 <p>
60 Tests the Timeline API instrumentation of a SendRequest, ReceiveResponse etc. 60 Tests the Timeline API instrumentation of a SendRequest, ReceiveResponse etc.
61 </p> 61 </p>
62 62
63 </body> 63 </body>
64 </html> 64 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698