Test for sync script loading

This commit is contained in:
Matt Brubeck 2014-10-19 10:05:26 -07:00
parent 598150ea78
commit b2c211ef86

View file

@ -0,0 +1,20 @@
<!DOCTYPE html>
<html>
<head>
<script src="harness.js"></script>
</head>
<body>
<script>
var output = "start";
var script = document.createElement("script");
script.setAttribute('type','text/javascript');
script.textContent = "output += ' middle ';";
document.body.appendChild(script);
output += "end";
is(output, "start middle end");
finish();
</script>
</body>
</html>