| OLD | NEW |
| (Empty) |
| 1 <html> | |
| 2 <head> | |
| 3 <script src="resources/profiler-test-JS-resources.js"></script> | |
| 4 <script> | |
| 5 if (window.testRunner) | |
| 6 testRunner.dumpAsText(); | |
| 7 if (window.internals) | |
| 8 internals.setJavaScriptProfilingEnabled(true); | |
| 9 | |
| 10 function startTest() | |
| 11 { | |
| 12 console.profile("A simple profile test where an event happens."); | |
| 13 // FIXME: this is not testing what it says it is. | |
| 14 endTest(); | |
| 15 } | |
| 16 </script> | |
| 17 </head> | |
| 18 | |
| 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> | |
| OLD | NEW |