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

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

Issue 2493373002: DevTools: rename WebInspector into modules. (Closed)
Patch Set: for bots Created 4 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 <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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 }); 78 });
79 }); 79 });
80 80
81 knownEvents["MessageLoop::PostTask"] = 0; 81 knownEvents["MessageLoop::PostTask"] = 0;
82 knownEvents["v8.callFunction"] = 0; 82 knownEvents["v8.callFunction"] = 0;
83 knownEvents["UpdateLayoutTree"] = 0; 83 knownEvents["UpdateLayoutTree"] = 0;
84 knownEvents["FrameView::layout"] = 0; 84 knownEvents["FrameView::layout"] = 0;
85 85
86 for (var i = 0; i < events.length; ++i) { 86 for (var i = 0; i < events.length; ++i) {
87 var event = events[i]; 87 var event = events[i];
88 if (event.phase === WebInspector.TracingModel.Phase.Complete) 88 if (event.phase === SDK.TracingModel.Phase.Complete)
89 ++phaseComplete; 89 ++phaseComplete;
90 if (event.name in knownEvents) 90 if (event.name in knownEvents)
91 ++knownEvents[event.name]; 91 ++knownEvents[event.name];
92 } 92 }
93 InspectorTest.assertGreaterOrEqual(events.length, 100, "Too few trace ev ents recorded"); 93 InspectorTest.assertGreaterOrEqual(events.length, 100, "Too few trace ev ents recorded");
94 InspectorTest.assertGreaterOrEqual(knownEvents["UpdateLayoutTree"], 1, " Too few UpdateLayoutTree"); 94 InspectorTest.assertGreaterOrEqual(knownEvents["UpdateLayoutTree"], 1, " Too few UpdateLayoutTree");
95 InspectorTest.assertGreaterOrEqual(knownEvents["FrameView::layout"], 1, "Too few FrameView::layout"); 95 InspectorTest.assertGreaterOrEqual(knownEvents["FrameView::layout"], 1, "Too few FrameView::layout");
96 InspectorTest.assertGreaterOrEqual(phaseComplete, 50, "Too few begin eve nts"); 96 InspectorTest.assertGreaterOrEqual(phaseComplete, 50, "Too few begin eve nts");
97 InspectorTest.assertGreaterOrEqual(processes, 2, "Too few processes"); 97 InspectorTest.assertGreaterOrEqual(processes, 2, "Too few processes");
98 InspectorTest.assertGreaterOrEqual(threads, 4, "Too few threads"); 98 InspectorTest.assertGreaterOrEqual(threads, 4, "Too few threads");
99 InspectorTest.addResult("Event sanity test done"); 99 InspectorTest.addResult("Event sanity test done");
100 InspectorTest.completeTest(); 100 InspectorTest.completeTest();
101 } 101 }
102 } 102 }
103 103
104 </script> 104 </script>
105 </head> 105 </head>
106 <body onload="runTest()"> 106 <body onload="runTest()">
107 <div id="test"> 107 <div id="test">
108 </div> 108 </div>
109 </body> 109 </body>
110 </html> 110 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698