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

Side by Side Diff: LayoutTests/http/tests/inspector/timeline-xhr-event.html

Issue 399043002: DevTools: switch Timeline frontend into buffered mode and remove the corresponding experiment. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: timeline-websocket-event rebaselined 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="inspector-test.js"></script> 3 <script src="inspector-test.js"></script>
4 <script src="timeline-test.js"></script> 4 <script src="timeline-test.js"></script>
5 <script src="network-test.js"></script> 5 <script src="network-test.js"></script>
6 <script> 6 <script>
7 7
8 function performActions() 8 function performActions(callback)
9 { 9 {
10 var xhr = new XMLHttpRequest(); 10 var xhr = new XMLHttpRequest();
11 xhr.open("GET", "network/resources/resource.php", true); 11 xhr.open("GET", "network/resources/resource.php", true);
12 xhr.onload = function () { }; // This is necessary for XHRLoad event. 12 xhr.onload = callback; // This is necessary for XHRLoad event.
13 xhr.onreadystatechange = function () { }; // This is necessary for XHRReady StateChange event. 13 xhr.onreadystatechange = function () { }; // This is necessary for XHRReady StateChange event.
14 xhr.send(null); 14 xhr.send(null);
15 } 15 }
16 16
17 function test() 17 function test()
18 { 18 {
19 InspectorTest.resetInspectorResourcesData(step1); 19 InspectorTest.resetInspectorResourcesData(step1);
20 function step1() 20 function step1()
21 { 21 {
22 InspectorTest.startTimeline(function() { 22 InspectorTest.invokeAsyncWithTimeline("performActions", finish);
23 InspectorTest.evaluateInPage("performActions()");
24 });
25
26 InspectorTest.waitForRecordType("XHRLoad", finish);
27 23
28 function finish() 24 function finish()
29 { 25 {
30 InspectorTest.printTimelineRecords("XHRReadyStateChange"); 26 InspectorTest.printTimelineRecords("XHRReadyStateChange");
31 InspectorTest.printTimelineRecords("XHRLoad"); 27 InspectorTest.printTimelineRecords("XHRLoad");
32 InspectorTest.completeTest(); 28 InspectorTest.completeTest();
33 } 29 }
34 } 30 }
35 } 31 }
36 32
37 </script> 33 </script>
38 </head> 34 </head>
39 35
40 <body onload="runTest()"> 36 <body onload="runTest()">
41 <p> 37 <p>
42 Tests the Timeline events for XMLHttpReqeust 38 Tests the Timeline events for XMLHttpReqeust
43 </p> 39 </p>
44 40
45 </body> 41 </body>
46 </html> 42 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698