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

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

Issue 709423002: DevTools: remove old Timeline front-end implementation (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated LayoutTests/inspector/layers/layer-canvas-log.html Created 6 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 <html>
2 <head>
3 <script src="inspector-test.js"></script>
4 <script src="timeline-test.js"></script>
5 <script src="network-test.js"></script>
6 <script>
7
8 function performActions(callback)
9 {
10 var xhr = new XMLHttpRequest();
11 xhr.open("GET", "network/resources/resource.php", true);
12 xhr.onload = callback; // This is necessary for XHRLoad event.
13 xhr.onreadystatechange = function () { }; // This is necessary for XHRReady StateChange event.
14 xhr.send(null);
15 }
16
17 function test()
18 {
19 InspectorTest.resetInspectorResourcesData(step1);
20 function step1()
21 {
22 InspectorTest.invokeAsyncWithTimeline("performActions", finish);
23
24 function finish()
25 {
26 InspectorTest.printTimelineRecords("XHRReadyStateChange");
27 InspectorTest.printTimelineRecords("XHRLoad");
28 InspectorTest.completeTest();
29 }
30 }
31 }
32
33 </script>
34 </head>
35
36 <body onload="runTest()">
37 <p>
38 Tests the Timeline events for XMLHttpReqeust
39 </p>
40
41 </body>
42 </html>
OLDNEW
« no previous file with comments | « LayoutTests/http/tests/inspector/timeline-test.js ('k') | LayoutTests/http/tests/inspector/timeline-xhr-event-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698