| testRunner.waitUntilDone(); |
| var cachingElement = document.getElementById("cache-script"); |
| var script = document.createElement("script"); |
| script.src = cachingElement.src; |
| document.body.appendChild(script); |
| document.getElementById("result").innerText = "FAIL: Script executed synchronously beneath appendChild()"; |
| testRunner.setCacheModel(0); // WebCacheModelDocumentViewer |
| <div id="result">FAIL: Test did not run</div> |
| <!-- loads the script into the cache, then begins the test --> |
| <script id="cache-script" onload="setTimeout(test, 0)" src="resources/nested-execution.js"></script> |