<!DOCTYPE HTML>
<html>
<head>
<script src="../../../resources/js-test-pre.js"></script>
</head>
<body>
<script>
description('Test module with "src" attribute.');

// Module will be executed asynchronously.
window.jsTestIsAsync = true;
</script>
<script src="../../../resources/js-test-post.js"></script>
<script>
debug('Module is not executed yet.');
(function () {
    var element = document.createElement('script');
    element.type = 'module';
    element.src = './resources/module-src-dynamic.js';
    document.body.appendChild(element);
}());
</script>
</body>
</html>
