| Index: third_party/WebKit/LayoutTests/external/wpt/html/semantics/scripting-1/the-script-element/module/late-namespace-request.html
|
| diff --git a/third_party/WebKit/LayoutTests/external/wpt/html/semantics/scripting-1/the-script-element/module/late-namespace-request.html b/third_party/WebKit/LayoutTests/external/wpt/html/semantics/scripting-1/the-script-element/module/late-namespace-request.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..00269efdf93731ad3503b7c9a824c78f9ae08370
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/external/wpt/html/semantics/scripting-1/the-script-element/module/late-namespace-request.html
|
| @@ -0,0 +1,20 @@
|
| +<!DOCTYPE html>
|
| +<title>Late namespace request</title>
|
| +
|
| +<script src="/resources/testharness.js"></script>
|
| +<script src="/resources/testharnessreport.js"></script>
|
| +<script>
|
| + window.log = [];
|
| +
|
| + const test_load = async_test(
|
| + "Test the situation where a module is instantiated without the " +
|
| + "need for a namespace object, but later on a different module " +
|
| + "requests the namespace.");
|
| + window.addEventListener("load", test_load.step_func_done(ev => {
|
| + assert_array_equals(log,
|
| + ["export-something",
|
| + "import-something-namespace", 42, 43]);
|
| + }));
|
| +</script>
|
| +<script type="module" src="export-something.js"></script>
|
| +<script type="module" src="import-something-namespace.js"></script>
|
|
|