| 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("Start the profiler but don't stop it."); | |
| 13 anonymousFunction(); | |
| 14 printProfilesDataWithoutTime(); | |
| 15 } | |
| 16 </script> | |
| 17 </head> | |
| 18 | |
| 19 <body onload="startTest()"> | |
| 20 This page's JavaScript calls console.profile() but not console.profileEnd(). | |
| 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. You should see the profile running (when that feature is implement
ed 6060556). | |
| 25 Then navigate to another page and check the WebInspector again. Safari should no
t | |
| 26 have crashed and the Inspector should not show a profile (unless we allow cross-
load | |
| 27 profiling in the future 5951478 & 5954912). | |
| 28 <div id="output"></div> | |
| 29 </body> | |
| 30 </html> | |
| OLD | NEW |