4 <script>console
.log("Line 4");</script>
5 <script>console
.log("Line 5");</script>
6 <script>document
.write("<scrip" + "t>console.log(\"Line 1 in document.write\");\n\n\nconsole.log(\"Line 4 in document.write\");</sc" + "ript>");</script>
7 <script>console
.log("Line 7");</script>
13 if (window
.testRunner
)
14 testRunner
.dumpAsText();
16 var script
= document
.createElement("script");
17 script
.textContent
= "console.log(\"script element\")";
18 document
.head
.appendChild(script
);
19 document
.write("<scrip" + "t>console.log(\"document.write from onload\");</sc" + "ript>");
25 <body onload=
"console.log('Line 25'); onload();">
27 Tests that console reports zero line number for scripts generated with document.write. See https://bugs.webkit.org/show_bug.cgi?id=
71099.