Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

SVG Preview (Scaled)

Preview of https://hg.mozilla.org/mozilla-central/raw-file/tip/testing/web-platform/tests/svg/interact/scripted/async-01.svg
<?xml version="1.0" encoding="UTF-8"?>
<title>async on script</title>
<metadata>
</metadata>
<h:meta name="timeout" content="long"/>
<h:script src="/resources/testharness.js"/>
<h:script src="/resources/testharnessreport.js"/>
<script>
let t = async_test("An async script does not block the parser while downloading");
let results = [];
t.step_timeout(function() {
assert_equals(JSON.stringify(results), '["2","1"]')
t.done();
}, 4000);
function log(text) {
results.push(text);
}
</script>
<script href="log.py?sec=3&amp;id=1" async="true"></script>
<script>
log('2');
</script>
</svg>