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

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

Issue 396993003: DevTools: get rid of WebInspector.cssModel, use target models instead (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 months 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 InspectorTest.addResult("Event sanity test done"); 59 InspectorTest.addResult("Event sanity test done");
60 } 60 }
61 61
62 function onTracingComplete() 62 function onTracingComplete()
63 { 63 {
64 InspectorTest.addResult("Tracing complete"); 64 InspectorTest.addResult("Tracing complete");
65 runEventsSanityCheck(); 65 runEventsSanityCheck();
66 InspectorTest.completeTest(); 66 InspectorTest.completeTest();
67 } 67 }
68 68
69 var tracingModel = new WebInspector.TracingModel(WebInspector.targetManager. activeTarget()); 69 var tracingModel = new WebInspector.TracingModel(WebInspector.targetManager. mainTarget());
70 tracingModel.start("", "", onTracingStarted); 70 tracingModel.start("", "", onTracingStarted);
71 function onTracingStarted(error) 71 function onTracingStarted(error)
72 { 72 {
73 InspectorTest.addResult("Tracing started (error: " + JSON.stringify(erro r) + ")"); 73 InspectorTest.addResult("Tracing started (error: " + JSON.stringify(erro r) + ")");
74 InspectorTest.evaluateInPage("doWork()", function() { 74 InspectorTest.evaluateInPage("doWork()", function() {
75 tracingModel.stop(onTracingComplete); 75 tracingModel.stop(onTracingComplete);
76 }); 76 });
77 } 77 }
78 } 78 }
79 79
80 </script> 80 </script>
81 </head> 81 </head>
82 <body onload="runTest()"> 82 <body onload="runTest()">
83 <div id="test"> 83 <div id="test">
84 </div> 84 </div>
85 </body> 85 </body>
86 </html> 86 </html>
OLDNEW
« no previous file with comments | « LayoutTests/inspector/timeline/tracing/frame-model.html ('k') | LayoutTests/inspector/tracing-test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698