b8e470968f1045b251d149cf255fb4327a0da301
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / inspector / profiler / cpu-profiler-agent-crash-on-start.html
1 <html>
2 <head>
3   <script src="../../http/tests/inspector/inspector-test.js"></script>
4 <script>
5
6 function test()
7 {
8     WebInspector.inspectorView.showPanel("profiles");
9     ProfilerAgent.start(onStart);
10
11     function onStart()
12     {
13         InspectorTest.addResult("ProfilerAgent started.");
14         ProfilerAgent.stop(onStop);
15     }
16
17     function onStop()
18     {
19         InspectorTest.addResult("ProfilerAgent stopped.");
20         InspectorTest.completeTest();
21     }
22 }
23
24 </script>
25 </head>
26
27 <body onload="runTest()">
28 <p>
29 Test that ProfilerAgent start/stop doesn't crash.
30 </p>
31
32 </body>
33 </html>