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