Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(53)

Side by Side Diff: LayoutTests/inspector/timeline/tracing/buffer-usage.html

Issue 477153005: DevTools: adopt existing Timeline tests for tracing based Timeline (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698