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

Side by Side Diff: LayoutTests/inspector/tracing.html

Issue 46663010: DevTools: Show GPU utilization bar on timeline (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Addressing comments. Created 7 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#test { 4 div#test {
5 display: none; 5 display: none;
6 background-color: blue; 6 background-color: blue;
7 width: 100px; 7 width: 100px;
8 height: 100px; 8 height: 100px;
9 } 9 }
10 </style> 10 </style>
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 InspectorTest.addResult("Event sanity test done"); 50 InspectorTest.addResult("Event sanity test done");
51 } 51 }
52 52
53 function onTracingComplete() 53 function onTracingComplete()
54 { 54 {
55 InspectorTest.addResult("Tracing complete"); 55 InspectorTest.addResult("Tracing complete");
56 runEventsSanityCheck(WebInspector.tracingAgent.events()); 56 runEventsSanityCheck(WebInspector.tracingAgent.events());
57 InspectorTest.completeTest(); 57 InspectorTest.completeTest();
58 } 58 }
59 59
60 WebInspector.tracingAgent.start("", onTracingStarted); 60 WebInspector.tracingAgent.start("", "", onTracingStarted);
61 setTimeout(InspectorTest.completeTest.bind(InspectorTest), 2000); 61 setTimeout(InspectorTest.completeTest.bind(InspectorTest), 2000);
62 function onTracingStarted(error) 62 function onTracingStarted(error)
63 { 63 {
64 InspectorTest.addResult("Tracing started (error: " + JSON.stringify(erro r) + ")"); 64 InspectorTest.addResult("Tracing started (error: " + JSON.stringify(erro r) + ")");
65 InspectorTest.evaluateInPage("doWork()", function() { 65 InspectorTest.evaluateInPage("doWork()", function() {
66 WebInspector.tracingAgent.stop(onTracingComplete); 66 WebInspector.tracingAgent.stop(onTracingComplete);
67 }); 67 });
68 } 68 }
69 } 69 }
70 70
71 </script> 71 </script>
72 </head> 72 </head>
73 <body onload="runTest()"> 73 <body onload="runTest()">
74 <div id="test"> 74 <div id="test">
75 </div> 75 </div>
76 </body> 76 </body>
77 </html> 77 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698