Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
45 lines (35 sloc) 976 Bytes
function log(message)
document.getElementById("result").innerHTML += message + "<br>";
function loadJSFile(){
var s = document.createElement('script')
s.setAttribute("type", "text/javascript")
s.setAttribute("src", "resources/load-deferrer-script-element.js")
jsLoaded = false;
runningModal = false;
// This line will load external script into memory.
function runModal()
jsLoaded = true;
runningModal = true;
alert("Scripts should not be running in the background!");
runningModal = false;
<p>This tests the bug
Click the button, wait 5 seconds and close it.
The test passes if no error messages show up in the page!</p>
<input id="button" type="button" value="click me" onclick="runModal()"/>
<p id="result"></p>
Jump to Line
Something went wrong with that request. Please try again.