2008-11-04 Anders Carlsson <andersca@apple.com>
[webkit/qt.git] / LayoutTests / fast / profiler / stop-profiling-after-setTimeout.html
blob39b93db9de47d1d48133ec4ddeb4fb10d5c9b04c
1 <html>
2 <head>
3 <script src="resources/profiler-test-JS-resources.js"></script>
4 <script>
5 if (window.layoutTestController) {
6 layoutTestController.dumpAsText();
7 layoutTestController.waitUntilDone();
8 layoutTestController.setJavaScriptProfilingEnabled(true);
11 function startTest()
13 console.profile("Stop profiling from a timeout");
14 setTimeout("endTest()", 20);
17 </script>
18 </head>
20 <body onload="startTest()">
21 This page's JavaScript stops profiling from a timeout.
22 <br>
23 <br>
24 To run this test manually, load it in the browser then load the WebInspector and look at
25 the profile. In the profile endProfile() should not be a child of (program).
26 <div id="output"></div>
27 </body>
28 </html>