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/timeline-test.js"></script> | 4 <script src="../../http/tests/inspector/timeline-test.js"></script> |
5 <script src="../../tracing-test.js"></script> | 5 <script src="../tracing-test.js"></script> |
6 <script> | 6 <script> |
7 | 7 |
8 function test() | 8 function test() |
9 { | 9 { |
10 InspectorTest.tracingModel.addEventListener(WebInspector.TracingModel.Events
.BufferUsage, onBufferUsage, this); | 10 InspectorTest.tracingModel.addEventListener(WebInspector.TracingModel.Events
.BufferUsage, onBufferUsage, this); |
11 InspectorTest.tracingTimelineModel.startRecording(); | 11 InspectorTest.tracingTimelineModel.startRecording(); |
12 function onBufferUsage(event) | 12 function onBufferUsage(event) |
13 { | 13 { |
14 InspectorTest.tracingModel.removeEventListener(WebInspector.TracingModel
.Events.BufferUsage, onBufferUsage, this); | 14 InspectorTest.tracingModel.removeEventListener(WebInspector.TracingModel
.Events.BufferUsage, onBufferUsage, this); |
15 InspectorTest.tracingTimelineModel.stopRecording(); | 15 InspectorTest.tracingTimelineModel.stopRecording(); |
16 InspectorTest.addResult("SUCCESS: Received buffer usage update."); | 16 InspectorTest.addResult("SUCCESS: Received buffer usage update."); |
17 InspectorTest.completeTest(); | 17 InspectorTest.completeTest(); |
18 } | 18 } |
19 } | 19 } |
20 | 20 |
21 </script> | 21 </script> |
22 </head> | 22 </head> |
23 | 23 |
24 <body onload="runTest()"> | 24 <body onload="runTest()"> |
25 <p> | 25 <p> |
26 Tests that buffer usage update are sent when recording trace events. | 26 Tests that buffer usage update are sent when recording trace events. |
27 </p> | 27 </p> |
28 </body> | 28 </body> |
29 </html> | 29 </html> |
OLD | NEW |