| OLD | NEW |
| 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 Loading... |
| 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> |
| OLD | NEW |