blob: 384b54c6f7741a18c105e70ef629712e9b13fc69 [file] [log] [blame]
<!DOCTYPE HTML>
<html>
<head>
<script src="../../../resources/js-test-pre.js"></script>
</head>
<body>
<script>
description('Test script.onload will be fired when the module tag with src loads and executes.');
// Module will be executed asynchronously.
window.jsTestIsAsync = true;
debug('Module is not executed yet.');
function onLoad()
{
shouldBeTrue(`moduleExecuted`);
finishJSTest();
}
</script>
<script src="../../../resources/js-test-post.js"></script>
<script type="module" onload="onLoad()" src="resources/module-load-event-with-src.js"></script>
</body>
</html>