Index: third_party/WebKit/LayoutTests/external/wpt/html/semantics/scripting-1/the-script-element/module/imports.noinline-c.js |
diff --git a/third_party/WebKit/LayoutTests/external/wpt/html/semantics/scripting-1/the-script-element/module/imports.noinline-c.js b/third_party/WebKit/LayoutTests/external/wpt/html/semantics/scripting-1/the-script-element/module/imports.noinline-c.js |
new file mode 100644 |
index 0000000000000000000000000000000000000000..b49b54ea43acb149556cfce7fdae3cdf1ae9933e |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/external/wpt/html/semantics/scripting-1/the-script-element/module/imports.noinline-c.js |
@@ -0,0 +1,14 @@ |
+ |
+ import { INC_A } from "./imports-inc-a.js"; |
+ import { INC_B } from "./imports-inc-b.js"; |
+ import { INC_AB_A, INC_AB_B } from "./imports-inc-ab.js"; |
+ |
+ test(function () { |
+ assert_equals(INC_A.from, "imports-a.js", "Unexpected INC_A"); |
+ assert_equals(INC_B.from, "imports-b.js", "Unexpected INC_A"); |
+ assert_equals(INC_AB_A.from, "imports-a.js", "Unexpected INC_A"); |
+ assert_equals(INC_AB_B.from, "imports-b.js", "Unexpected INC_A"); |
+ assert_equals(INC_A, INC_AB_A, "INC_A and INC_AB_A should be the same"); |
+ assert_equals(INC_B, INC_AB_B, "INC_B and INC_AB_B should be the same"); |
+ }, "Import the same module multiple times"); |
+ |