OLD | NEW |
(Empty) | |
| 1 <html> |
| 2 <head> |
| 3 <script src="../http/tests/inspector/inspector-test.js"></script> |
| 4 <script src="../http/tests/inspector/console-test.js"></script> |
| 5 <script> |
| 6 function loadExternalScript() |
| 7 { |
| 8 var scriptElement = document.createElement("script"); |
| 9 scriptElement.src = "resources/external-script-with-document-write.js"; |
| 10 document.body.appendChild(scriptElement); |
| 11 } |
| 12 |
| 13 function test() |
| 14 { |
| 15 InspectorTest.addConsoleSniffer(step1); |
| 16 InspectorTest.evaluateInPage("loadExternalScript()", function(){}); |
| 17 |
| 18 function step1() |
| 19 { |
| 20 InspectorTest.dumpConsoleMessages(); |
| 21 InspectorTest.completeTest(); |
| 22 } |
| 23 } |
| 24 </script> |
| 25 </head> |
| 26 <body onload="runTest()"> |
| 27 <p>Tests that ignored document.write() called from an external asynchronously lo
aded script is reported to console as a warning</p> |
| 28 </body> |
| 29 </html> |
OLD | NEW |