2008-11-04 Anders Carlsson <andersca@apple.com>
[webkit/qt.git] / LayoutTests / fast / profiler / document-dot-write.html
blobf3d6b001eaff090ebcee7c1348216be687300210
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("Call Document.write()");
14 document.write("<div id=\"output\"></div>");
16 endTest();
18 </script>
19 </head>
21 <body onload="startTest()">
22 This page calls document.write().
23 <br>
24 <br>
25 To run this test manually, load it in the browser then load the WebInspector and look at
26 the profile. If there is a profile it should show write().
27 </body>
28 </html>