Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / tokenizer / write-unclosed-script.html
blob2cc499ae572fdb5f157b9b8edbab359287a53e1d
1 <html>
2 <head>
3 <script type="text/javascript">
4 if (window.testRunner)
5 testRunner.dumpAsText();
7 var str = "";
9 function writeResult()
11 var res = document.getElementById("result");
12 if (str == "foobar")
13 res.innerText = "PASS";
14 else
15 res.innerText = "FAIL ("+str+")";
17 </script>
18 </head>
19 <body onload="writeResult();">
20 <script type="text/javascript">
21 <!--
22 document.write('<script type="text/javascript">');
23 document.write('str += "foo"');
24 //-->
25 </script>
26 str += "bar";
27 </script>
28 <p>
29 This is a test for <i><a href="https://bugs.webkit.org/show_bug.cgi?id=9317">https://bugs.webkit.org/show_bug.cgi?id=9317</a>
30 REGRESSION: crash in HTML tokenizer at Japanese Apple support page</i>.
31 </p>
32 <hr>
33 <p>
34 Test result: <span id="result">FAIL (did not complete)</span>
35 </p>
36 </body>
37 </html>