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

Side by Side Diff: LayoutTests/inspector/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
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698