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 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
237 | 237 |
238 function printTimelineAndTimestampEvents() { | 238 function printTimelineAndTimestampEvents() { |
239 panel._tracingModel.sortedProcesses().forEach(function(process) | 239 panel._tracingModel.sortedProcesses().forEach(function(process) |
240 { | 240 { |
241 process.sortedThreads().forEach(function(thread) | 241 process.sortedThreads().forEach(function(thread) |
242 { | 242 { |
243 thread.events().forEach(function(event) | 243 thread.events().forEach(function(event) |
244 { | 244 { |
245 if (event.category === WebInspector.TracingModel.ConsoleEvent
Category) | 245 if (event.category === WebInspector.TracingModel.ConsoleEvent
Category) |
246 InspectorTest.addResult(event.name); | 246 InspectorTest.addResult(event.name); |
247 else if (event.name === WebInspector.TracingTimelineModel.Rec
ordType.TimeStamp) | 247 else if (event.name === WebInspector.TimelineModel.RecordType
.TimeStamp) |
248 InspectorTest.addResult(event.args["data"]["message"]); | 248 InspectorTest.addResult(event.args["data"]["message"]); |
249 }); | 249 }); |
250 }); | 250 }); |
251 }); | 251 }); |
252 } | 252 } |
253 } | 253 } |
254 | 254 |
255 </script> | 255 </script> |
256 </head> | 256 </head> |
257 | 257 |
258 <body onload="runTest()"> | 258 <body onload="runTest()"> |
259 <p> | 259 <p> |
260 Tests console.timeline and timelineEnd commands. | 260 Tests console.timeline and timelineEnd commands. |
261 </p> | 261 </p> |
262 | 262 |
263 </body> | 263 </body> |
264 </html> | 264 </html> |
OLD | NEW |