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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/tracing/timeline-network-received-data.html

Issue 1410153009: DevTools: Make network events continuous on Timeline (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: simplify the patch Created 5 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
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 performActions(callback) 7 function performActions(callback)
8 { 8 {
9 function onImageLoad() 9 function onImageLoad()
10 { 10 {
(...skipping 22 matching lines...) Expand all
33 function test() 33 function test()
34 { 34 {
35 InspectorTest.invokeAsyncWithTimeline("performActions", done); 35 InspectorTest.invokeAsyncWithTimeline("performActions", done);
36 36
37 function done() 37 function done()
38 { 38 {
39 InspectorTest.addResult("Script evaluated."); 39 InspectorTest.addResult("Script evaluated.");
40 var record = InspectorTest.findFirstTimelineRecord("ResourceReceivedData "); 40 var record = InspectorTest.findFirstTimelineRecord("ResourceReceivedData ");
41 if (record) { 41 if (record) {
42 var data = record.traceEvent().args["data"]; 42 var data = record.traceEvent().args["data"];
43 if (data && typeof data.encodedDataLength === "number") 43 if (data && typeof data["encodedDataLength"] === "number")
44 InspectorTest.addResult("Resource received data has length, test passed."); 44 InspectorTest.addResult("Resource received data has length, test passed.");
45 } 45 }
46 InspectorTest.completeTest(); 46 InspectorTest.completeTest();
47 } 47 }
48 } 48 }
49 49
50 </script> 50 </script>
51 </head> 51 </head>
52 52
53 <body onload="runTest()"> 53 <body onload="runTest()">
54 <p> 54 <p>
55 Tests the Timeline API instrumentation of a network resource received data 55 Tests the Timeline API instrumentation of a network resource received data
56 </p> 56 </p>
57 </body> 57 </body>
58 </html> 58 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698