mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Test for sync script loading
This commit is contained in:
parent
598150ea78
commit
b2c211ef86
1 changed files with 20 additions and 0 deletions
20
tests/content/test_createElement_script.html
Normal file
20
tests/content/test_createElement_script.html
Normal 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>
|
Loading…
Add table
Add a link
Reference in a new issue