2008-11-04 Anders Carlsson <andersca@apple.com>
[webkit/qt.git] / LayoutTests / fast / profiler / simple-event-call.html
blob434f2026471435397c9524b415486e63a4a41f41
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.setJavaScriptProfilingEnabled(true);
10 function startTest()
12 console.profile("A simple profile test where an event happens.");
13 // FIXME: this is not testing what it says it is.
14 endTest();
16 </script>
17 </head>
19 <body onload="startTest()">
20 This page's JavaScript has an onload event.
21 <br>
22 <br>
23 To run this test manually, load it in the browser then load the WebInspector and look at
24 the profile. There should be only one onload node.
25 <div id="output"></div>
26 </body>
27 </html>