servo/tests/content/test_document_readystate.html
Matt Brubeck fe123ad07c Switch to synchronous script loading
This removes the old code for asyncronously loading scripts during HTML
parsing and then executing them afterward.

Fixes #3356.
2014-10-29 14:31:47 -07:00

14 lines
339 B
HTML

<html>
<head>
<script src="harness.js"></script>
</head>
<body onload="is(document.readyState, 'complete'); is(gNumChanges, 2); finish()">
<script>
gNumChanges = 0;
document.addEventListener('readystatechange', function() {
gNumChanges++;
}, true);
is(document.readyState, "loading");
</script>
</body>
</html>