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

Side by Side Diff: LayoutTests/inspector/tracing/decode-resize.html

Issue 715803002: DevTools: merge TracingTimelineModel into TimelineModel (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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
1 <html> 1 <html>
2 <head> 2 <head>
3 <style> 3 <style>
4 div#img-container { 4 div#img-container {
5 position: relative; 5 position: relative;
6 width: 99px; 6 width: 99px;
7 height: 99px; 7 height: 99px;
8 overflow: clip; 8 overflow: clip;
9 } 9 }
10 </style> 10 </style>
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 function test() 56 function test()
57 { 57 {
58 var imageCount = 0; 58 var imageCount = 0;
59 59
60 InspectorTest.invokeWithTracing("showImages", onTracingComplete); 60 InspectorTest.invokeWithTracing("showImages", onTracingComplete);
61 function onTracingComplete() 61 function onTracingComplete()
62 { 62 {
63 var events = InspectorTest.tracingTimelineModel().inspectedTargetEvents( ); 63 var events = InspectorTest.tracingTimelineModel().inspectedTargetEvents( );
64 for (var i = 0; i < events.length; ++i) { 64 for (var i = 0; i < events.length; ++i) {
65 var event = events[i]; 65 var event = events[i];
66 if (events[i].name !== WebInspector.TracingTimelineModel.RecordType. DecodeImage) 66 if (events[i].name !== WebInspector.TimelineModel.RecordType.DecodeI mage)
67 continue; 67 continue;
68 InspectorTest.addResult("event: " + event.name); 68 InspectorTest.addResult("event: " + event.name);
69 InspectorTest.addResult("imageURL: " + InspectorTest.formatters.form atAsURL(event.imageURL)); 69 InspectorTest.addResult("imageURL: " + InspectorTest.formatters.form atAsURL(event.imageURL));
70 InspectorTest.addResult("backendNodeId: " + (event.backendNodeId > 0 ? "present" : "absent")); 70 InspectorTest.addResult("backendNodeId: " + (event.backendNodeId > 0 ? "present" : "absent"));
71 } 71 }
72 InspectorTest.completeTest(); 72 InspectorTest.completeTest();
73 } 73 }
74 } 74 }
75 75
76 </script> 76 </script>
77 </head> 77 </head>
78 78
79 <body onload="runTest()"> 79 <body onload="runTest()">
80 <p> 80 <p>
81 Tests the instrumentation of a DecodeImage and ResizeImage events 81 Tests the instrumentation of a DecodeImage and ResizeImage events
82 </p> 82 </p>
83 <div id="img-container"><img></div> 83 <div id="img-container"><img></div>
84 </body> 84 </body>
85 </html> 85 </html>
OLDNEW
« no previous file with comments | « LayoutTests/inspector/tracing/console-timeline.html ('k') | LayoutTests/inspector/tracing/timeline-enum-stability.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698