Chromium Code Reviews| 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 70 { | 70 { |
| 71 console.timeStamp("timestamp 0"); | 71 console.timeStamp("timestamp 0"); |
| 72 console.timeline("one"); | 72 console.timeline("one"); |
| 73 console.timeStamp("timestamp 1"); | 73 console.timeStamp("timestamp 1"); |
| 74 console.timeline("two"); | 74 console.timeline("two"); |
| 75 console.timeStamp("timestamp 2"); | 75 console.timeStamp("timestamp 2"); |
| 76 } | 76 } |
| 77 | 77 |
| 78 function test() | 78 function test() |
| 79 { | 79 { |
| 80 InspectorTest.startDumpingProtocolMessages(); | |
|
yurys
2014/10/17 08:00:54
ditto.
| |
| 80 var panel = WebInspector.panels.timeline; | 81 var panel = WebInspector.panels.timeline; |
| 81 panel._model._currentTarget = WebInspector.targetManager.mainTarget(); | 82 panel._model._currentTarget = WebInspector.targetManager.mainTarget(); |
| 82 | 83 |
| 83 InspectorTest.runTestSuite([ | 84 InspectorTest.runTestSuite([ |
| 84 function testStartStopTimeline(next) | 85 function testStartStopTimeline(next) |
| 85 { | 86 { |
| 86 InspectorTest.evaluateWithTimeline("startStopTimeline()", allEventsR eceived); | 87 InspectorTest.evaluateWithTimeline("startStopTimeline()", allEventsR eceived); |
| 87 | 88 |
| 88 function allEventsReceived() | 89 function allEventsReceived() |
| 89 { | 90 { |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 255 </script> | 256 </script> |
| 256 </head> | 257 </head> |
| 257 | 258 |
| 258 <body onload="runTest()"> | 259 <body onload="runTest()"> |
| 259 <p> | 260 <p> |
| 260 Tests console.timeline and timelineEnd commands. | 261 Tests console.timeline and timelineEnd commands. |
| 261 </p> | 262 </p> |
| 262 | 263 |
| 263 </body> | 264 </body> |
| 264 </html> | 265 </html> |
| OLD | NEW |