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

Side by Side Diff: LayoutTests/inspector/timeline/timeline-network-received-data.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="../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../http/tests/inspector/timeline-test.js"></script>
5 <script>
6
7 function performActions(callback)
8 {
9 function onImageLoad()
10 {
11 window._imageLoaded = true;
12 if (window._scriptEvaluated)
13 callback();
14 }
15
16 function scriptEvaluated()
17 {
18 window._scriptEvaluated = true;
19 if (window._imageLoaded)
20 callback();
21 }
22
23 var image = new Image();
24 image.onload = onImageLoad;
25 image.src = "resources/anImage.png";
26 var script = document.createElement("script");
27 script.src = "timeline-network-resource.js";
28 document.body.appendChild(script);
29
30 window.timelineNetworkResourceEvaluated = scriptEvaluated;
31 }
32
33 function test()
34 {
35 InspectorTest.invokeAsyncWithTimeline("performActions", done);
36
37 function done()
38 {
39 InspectorTest.addResult("Script evaluated.");
40 var record = InspectorTest.findFirstTimelineRecord("ResourceReceivedData ");
41 if (record) {
42 if (record.data() && typeof record.data().encodedDataLength === "num ber")
43 InspectorTest.addResult("Resource received data has length, test passed.");
44 }
45 InspectorTest.completeTest();
46 }
47 }
48
49 </script>
50 </head>
51
52 <body onload="runTest()">
53 <p>
54 Tests the Timeline API instrumentation of a network resource received data
55 </p>
56 </body>
57 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698