Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(277)

Side by Side Diff: LayoutTests/inspector/console-document-write-from-external-script-logging.html

Issue 110183005: DevTools: added console warning when call to document.write() from async script is ignored (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed tests Created 6 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698