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 | 4 |
5 <script> | 5 <script> |
6 function test() | 6 function test() |
7 { | 7 { |
| 8 WebInspector.inspectorView.showPanel("timeline"); |
8 var tracingModel = new WebInspector.TracingModel(); | 9 var tracingModel = new WebInspector.TracingModel(); |
9 tracingModel.start(WebInspector.TracingModel.DevToolsMetadataEventCategory +
",-*", "", onTracingStarted); | 10 tracingModel.start(WebInspector.TracingModel.DevToolsMetadataEventCategory +
",-*", "", onTracingStarted); |
10 | 11 |
11 function onTracingStarted(error) | 12 function onTracingStarted(error) |
12 { | 13 { |
13 tracingModel.stop(processTracingEvents) | 14 tracingModel.stop(processTracingEvents) |
14 } | 15 } |
15 | 16 |
16 function processTracingEvents() | 17 function processTracingEvents() |
17 { | 18 { |
(...skipping 16 matching lines...) Expand all Loading... |
34 } | 35 } |
35 } | 36 } |
36 </script> | 37 </script> |
37 | 38 |
38 <body onload="runTestAfterDisplay()"> | 39 <body onload="runTestAfterDisplay()"> |
39 <p style="-webkit-transform: translateZ(10px)"> <!-- Force compositing so we hav
e SetLayerTreeHostId event as well --> | 40 <p style="-webkit-transform: translateZ(10px)"> <!-- Force compositing so we hav
e SetLayerTreeHostId event as well --> |
40 Tests that Tracing agent returns a session id upon a start that is matching one
issued in trace events. | 41 Tests that Tracing agent returns a session id upon a start that is matching one
issued in trace events. |
41 </p> | 42 </p> |
42 </body> | 43 </body> |
43 </html> | 44 </html> |
OLD | NEW |