3 <script src=
"../http/tests/inspector/inspector-test.js"></script>
4 <script src=
"../http/tests/inspector/console-test.js"></script>
6 function loadExternalScript()
8 var scriptElement
= document
.createElement("script");
9 scriptElement
.src
= "resources/external-script-with-document-write.js";
10 document
.body
.appendChild(scriptElement
);
15 InspectorTest
.addConsoleSniffer(step1
);
16 InspectorTest
.evaluateInPage("loadExternalScript()", function(){});
20 InspectorTest
.dumpConsoleMessages();
21 InspectorTest
.completeTest();
26 <body onload=
"runTest()">
27 <p>Tests that ignored document.write() called from an external asynchronously loaded script is reported to console as a warning
</p>