From 0c938b3d7563a95f52f9a9adbe98be56f6c8e24c Mon Sep 17 00:00:00 2001 From: CYBAI Date: Mon, 22 Jun 2020 23:29:40 +0900 Subject: [PATCH] Test imports under more than 3 levels in different modules --- tests/wpt/metadata/MANIFEST.json | 39 +++++++++++++++++++ .../module/nested-imports-a.js | 1 + .../module/nested-imports-b.js | 2 + .../module/nested-imports-c.js | 2 + .../module/nested-imports-d.js | 3 ++ .../module/nested-imports-e.js | 2 + .../module/nested-imports-f.js | 2 + .../module/nested-imports-g.js | 2 + .../module/nested-imports-h.js | 2 + .../module/nested-imports.html | 29 ++++++++++++++ 10 files changed, 84 insertions(+) create mode 100644 tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/module/nested-imports-a.js create mode 100644 tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/module/nested-imports-b.js create mode 100644 tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/module/nested-imports-c.js create mode 100644 tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/module/nested-imports-d.js create mode 100644 tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/module/nested-imports-e.js create mode 100644 tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/module/nested-imports-f.js create mode 100644 tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/module/nested-imports-g.js create mode 100644 tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/module/nested-imports-h.js create mode 100644 tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/module/nested-imports.html diff --git a/tests/wpt/metadata/MANIFEST.json b/tests/wpt/metadata/MANIFEST.json index 5d2c1f32822..81ced0c7694 100644 --- a/tests/wpt/metadata/MANIFEST.json +++ b/tests/wpt/metadata/MANIFEST.json @@ -334491,6 +334491,38 @@ "e6f5746eb743a338ad6fbd401715fed368e4cf74", [] ], + "nested-imports-a.js": [ + "a127aeb559a0a4d6eedccae19905088fa9fce4b9", + [] + ], + "nested-imports-b.js": [ + "18a5af40cc0ec3a3c10de50f3cd3bffe22c6ec4d", + [] + ], + "nested-imports-c.js": [ + "ec44596aeae7482656b29f1d6aebf6d2ab6a9d54", + [] + ], + "nested-imports-d.js": [ + "cee87849c6258182d6c0085ab504867c197fb8d4", + [] + ], + "nested-imports-e.js": [ + "ec6f0360a608429f774e430a2658f3235d72ed43", + [] + ], + "nested-imports-f.js": [ + "0591e0b3166907bdf94cff3677c2460f9824e082", + [] + ], + "nested-imports-g.js": [ + "86cbe7d3f8e0c29fd7848d9b2626166a0f6f3d30", + [] + ], + "nested-imports-h.js": [ + "a1612912599a4c79307cffe79b43133ceb7f99b0", + [] + ], "nested-missing-export.js": [ "3801ae847afca704cfac9d99428c96851296b8cb", [] @@ -465114,6 +465146,13 @@ {} ] ], + "nested-imports.html": [ + "23bb595d0ebce1fbe14a3b72ce34fc1efa2720fe", + [ + null, + {} + ] + ], "nomodule-attribute.html": [ "656c99b292ac03f401eead1c4798666de61ca91a", [ diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/module/nested-imports-a.js b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/module/nested-imports-a.js new file mode 100644 index 00000000000..a127aeb559a --- /dev/null +++ b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/module/nested-imports-a.js @@ -0,0 +1 @@ +import { b } from "./nested-imports-b.js"; diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/module/nested-imports-b.js b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/module/nested-imports-b.js new file mode 100644 index 00000000000..18a5af40cc0 --- /dev/null +++ b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/module/nested-imports-b.js @@ -0,0 +1,2 @@ +import { c } from "./nested-imports-c.js"; +export const b = "b"; diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/module/nested-imports-c.js b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/module/nested-imports-c.js new file mode 100644 index 00000000000..ec44596aeae --- /dev/null +++ b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/module/nested-imports-c.js @@ -0,0 +1,2 @@ +import { d } from "./nested-imports-d.js"; +export const c = "c"; diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/module/nested-imports-d.js b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/module/nested-imports-d.js new file mode 100644 index 00000000000..cee87849c62 --- /dev/null +++ b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/module/nested-imports-d.js @@ -0,0 +1,3 @@ +import { e } from "./nested-imports-e.js"; +import "./resources/delayed-modulescript.py"; +export const d = "d"; diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/module/nested-imports-e.js b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/module/nested-imports-e.js new file mode 100644 index 00000000000..ec6f0360a60 --- /dev/null +++ b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/module/nested-imports-e.js @@ -0,0 +1,2 @@ +import { f } from "./nested-imports-f.js"; +export const e = "e"; diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/module/nested-imports-f.js b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/module/nested-imports-f.js new file mode 100644 index 00000000000..0591e0b3166 --- /dev/null +++ b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/module/nested-imports-f.js @@ -0,0 +1,2 @@ +import { g } from "./nested-imports-g.js"; +export const f = "f"; diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/module/nested-imports-g.js b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/module/nested-imports-g.js new file mode 100644 index 00000000000..86cbe7d3f8e --- /dev/null +++ b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/module/nested-imports-g.js @@ -0,0 +1,2 @@ +import { h } from "./nested-imports-h.js"; +export const g = "g"; diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/module/nested-imports-h.js b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/module/nested-imports-h.js new file mode 100644 index 00000000000..a1612912599 --- /dev/null +++ b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/module/nested-imports-h.js @@ -0,0 +1,2 @@ +import { c } from "./nested-imports-c.js"; +export const h = "h"; diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/module/nested-imports.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/module/nested-imports.html new file mode 100644 index 00000000000..23bb595d0eb --- /dev/null +++ b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/module/nested-imports.html @@ -0,0 +1,29 @@ + +Test imports under more than 3 levels in different modules + + + + + +