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>
10 InspectorTest
.tracingTimelineModel().addEventListener(WebInspector
.TimelineModel
.Events
.BufferUsage
, onBufferUsage
, this);
11 InspectorTest
.tracingTimelineModel().startRecording();
12 function onBufferUsage(event
)
14 InspectorTest
.tracingTimelineModel().removeEventListener(WebInspector
.TimelineModel
.Events
.BufferUsage
, onBufferUsage
, this);
15 InspectorTest
.tracingTimelineModel().stopRecording();
16 InspectorTest
.addResult("SUCCESS: Received buffer usage update.");
17 InspectorTest
.completeTest();
24 <body onload=
"runTest()">
26 Tests that buffer usage update are sent when recording trace events.