3 <script src=
"resources/profiler-test-JS-resources.js"></script>
5 if (window
.layoutTestController
) {
6 layoutTestController
.dumpAsText();
7 layoutTestController
.waitUntilDone();
8 layoutTestController
.setJavaScriptProfilingEnabled(true);
13 console
.profile("Stop profiling from a timeout");
14 setTimeout("endTest()", 20);
20 <body onload=
"startTest()">
21 This page's JavaScript stops profiling from a timeout.
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>