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

Side by Side Diff: LayoutTests/inspector/tracing/console-timeline.html

Issue 1211613002: Timeline: check category presence in list, not string equality (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fixed tracing-session-id.html Created 5 years, 6 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 <script src="../../http/tests/inspector/inspector-test.js"></script> 3 <script src="../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../http/tests/inspector/console-test.js"></script> 4 <script src="../../http/tests/inspector/console-test.js"></script>
5 <script src="../../http/tests/inspector/timeline-test.js"></script> 5 <script src="../../http/tests/inspector/timeline-test.js"></script>
6 <script> 6 <script>
7 7
8 function startStopTimeline() 8 function startStopTimeline()
9 { 9 {
10 console.timeStamp("timestamp 0"); 10 console.timeStamp("timestamp 0");
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 } 247 }
248 ]); 248 ]);
249 249
250 function printTimelineAndTimestampEvents() { 250 function printTimelineAndTimestampEvents() {
251 panel._tracingModel.sortedProcesses().forEach(function(process) 251 panel._tracingModel.sortedProcesses().forEach(function(process)
252 { 252 {
253 process.sortedThreads().forEach(function(thread) 253 process.sortedThreads().forEach(function(thread)
254 { 254 {
255 thread.events().forEach(function(event) 255 thread.events().forEach(function(event)
256 { 256 {
257 if (event.category === WebInspector.TracingModel.ConsoleEvent Category) 257 if (event.hasCategory(WebInspector.TracingModel.ConsoleEventC ategory))
258 InspectorTest.addResult(event.name); 258 InspectorTest.addResult(event.name);
259 else if (event.name === WebInspector.TimelineModel.RecordType .TimeStamp) 259 else if (event.name === WebInspector.TimelineModel.RecordType .TimeStamp)
260 InspectorTest.addResult(event.args["data"]["message"]); 260 InspectorTest.addResult(event.args["data"]["message"]);
261 }); 261 });
262 }); 262 });
263 }); 263 });
264 } 264 }
265 } 265 }
266 266
267 </script> 267 </script>
268 </head> 268 </head>
269 269
270 <body onload="runTest()"> 270 <body onload="runTest()">
271 <p> 271 <p>
272 Tests console.timeline and timelineEnd commands. 272 Tests console.timeline and timelineEnd commands.
273 </p> 273 </p>
274 274
275 </body> 275 </body>
276 </html> 276 </html>
OLDNEW
« no previous file with comments | « LayoutTests/inspector/tracing-session-id.html ('k') | LayoutTests/inspector/tracing/worker-events.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698