blob: 77eecc18e9cfe9cc354cbedba09e0802fdf8d01f [file] [log] [blame]
<html>
<head>
<script>
if (window.layoutTestController)
layoutTestController.dumpAsText();
</script>
<!-- populate cache with this script -->
<script src=resources/empty_script.js></script>
</head>
<body>
Test that the tokenizer handles a case where: <br>
<ul>
<li>An external script is loaded to the cache.
<li>Another external script
<ul>
<li>triggers a stylesheet load by adding a link element.
<li>document.writes a script tag that references the first script.
</ul>
</ul>
This should not crash.
<script src=resources/load-stylesheet-and-document-write-script.js></script>