From d00f4810b0e8eaa6a6755e2d0ecbd1713ecfca49 Mon Sep 17 00:00:00 2001 From: Yonggang Luo Date: Thu, 3 Feb 2022 18:36:39 +0800 Subject: [PATCH] Fix import paths in negative module tests (#4973) JerryScript-DCO-1.0-Signed-off-by: Yonggang Luo luoyonggang@gmail.com --- tests/jerry/fail/module-002.mjs | 2 +- tests/jerry/fail/module-003.mjs | 2 +- tests/jerry/fail/module-004.mjs | 2 +- tests/jerry/fail/module-005.mjs | 2 +- tests/jerry/fail/module-010.mjs | 2 +- tests/jerry/fail/module-014.mjs | 2 +- tests/jerry/fail/module-015.mjs | 2 +- tests/jerry/fail/module-016.mjs | 2 +- tests/jerry/fail/module-017.mjs | 2 +- tests/jerry/fail/module-018.mjs | 2 +- tests/jerry/fail/module-020.mjs | 2 +- tests/jerry/fail/module-021.mjs | 4 ++-- tests/jerry/fail/module-022.mjs | 2 +- tests/jerry/fail/module-023.mjs | 2 +- tests/jerry/fail/module-024.mjs | 2 +- tests/jerry/fail/module-025.mjs | 2 +- tests/jerry/fail/module-028.mjs | 2 +- tests/jerry/fail/module-029.mjs | 2 +- tests/jerry/fail/module-030.mjs | 2 +- tests/jerry/fail/module-032.mjs | 2 +- tests/jerry/fail/module-033.mjs | 2 +- tests/jerry/fail/module-034.mjs | 2 +- tests/jerry/fail/module-035.mjs | 2 +- tests/jerry/fail/regression-test-issue-2896.js | 2 +- 24 files changed, 25 insertions(+), 25 deletions(-) diff --git a/tests/jerry/fail/module-002.mjs b/tests/jerry/fail/module-002.mjs index b3b3f85e1..d96d6ab45 100644 --- a/tests/jerry/fail/module-002.mjs +++ b/tests/jerry/fail/module-002.mjs @@ -13,4 +13,4 @@ * limitations under the License. */ -import { , as b } from "../es.next/module-export-01.mjs"; +import { , as b } from "../module-export-01.mjs"; diff --git a/tests/jerry/fail/module-003.mjs b/tests/jerry/fail/module-003.mjs index 9ec4d2023..70b57a31f 100644 --- a/tests/jerry/fail/module-003.mjs +++ b/tests/jerry/fail/module-003.mjs @@ -13,4 +13,4 @@ * limitations under the License. */ -import , as b from "../es.next/module-export-01.mjs"; +import , as b from "../module-export-01.mjs"; diff --git a/tests/jerry/fail/module-004.mjs b/tests/jerry/fail/module-004.mjs index 3aac57984..da198bdef 100644 --- a/tests/jerry/fail/module-004.mjs +++ b/tests/jerry/fail/module-004.mjs @@ -13,4 +13,4 @@ * limitations under the License. */ -import { b as , } from "../es.next/module-export-01.mjs"; +import { b as , } from "../module-export-01.mjs"; diff --git a/tests/jerry/fail/module-005.mjs b/tests/jerry/fail/module-005.mjs index 1c05584e2..e18f48ec7 100644 --- a/tests/jerry/fail/module-005.mjs +++ b/tests/jerry/fail/module-005.mjs @@ -14,4 +14,4 @@ */ /* Named imports must be in a NamedImports block. */ -import b as , from "../es.next/module-export-01.mjs"; +import b as , from "../module-export-01.mjs"; diff --git a/tests/jerry/fail/module-010.mjs b/tests/jerry/fail/module-010.mjs index 15af24a8c..62d70ee4f 100644 --- a/tests/jerry/fail/module-010.mjs +++ b/tests/jerry/fail/module-010.mjs @@ -14,4 +14,4 @@ */ /* Can't have duplicate local bindings */ -import { c as a, d as a } from "../es.next/module-export-01.mjs"; +import { c as a, d as a } from "../module-export-01.mjs"; diff --git a/tests/jerry/fail/module-014.mjs b/tests/jerry/fail/module-014.mjs index 51c620066..83e5b3433 100644 --- a/tests/jerry/fail/module-014.mjs +++ b/tests/jerry/fail/module-014.mjs @@ -15,5 +15,5 @@ /* Import/export statements must be in the global scope. */ if (true) { - import { c } from "../es.next/module-export-01.mjs"; + import { c } from "../module-export-01.mjs"; } diff --git a/tests/jerry/fail/module-015.mjs b/tests/jerry/fail/module-015.mjs index 63efbe35d..4d7481ac5 100644 --- a/tests/jerry/fail/module-015.mjs +++ b/tests/jerry/fail/module-015.mjs @@ -15,5 +15,5 @@ /* Import/export statements must be in the global scope. */ function someFunction() { - import { c } from "../es.next/module-export-01.mjs"; + import { c } from "../module-export-01.mjs"; } diff --git a/tests/jerry/fail/module-016.mjs b/tests/jerry/fail/module-016.mjs index 2e22cb69b..f14868879 100644 --- a/tests/jerry/fail/module-016.mjs +++ b/tests/jerry/fail/module-016.mjs @@ -14,4 +14,4 @@ */ /* Import/export statements must be in the global scope. */ -eval ('import { c } from "../es.next/module-export-01.mjs";'); +eval ('import { c } from "../module-export-01.mjs";'); diff --git a/tests/jerry/fail/module-017.mjs b/tests/jerry/fail/module-017.mjs index e038a0173..d00823c62 100644 --- a/tests/jerry/fail/module-017.mjs +++ b/tests/jerry/fail/module-017.mjs @@ -14,4 +14,4 @@ */ /* NamedImports must always be followed by a FromClause. */ -import { b }, from "../es.next/module-export-01.mjs" +import { b }, from "../module-export-01.mjs" diff --git a/tests/jerry/fail/module-018.mjs b/tests/jerry/fail/module-018.mjs index 60c9a96db..41818b898 100644 --- a/tests/jerry/fail/module-018.mjs +++ b/tests/jerry/fail/module-018.mjs @@ -14,4 +14,4 @@ */ /* An import statement can have either a NameSpaceImport or NamedIpmorts */ -import * as mod, { b } from "../es.next/module-export-01.mjs" +import * as mod, { b } from "../module-export-01.mjs" diff --git a/tests/jerry/fail/module-020.mjs b/tests/jerry/fail/module-020.mjs index 4a160d547..61c85445a 100644 --- a/tests/jerry/fail/module-020.mjs +++ b/tests/jerry/fail/module-020.mjs @@ -14,4 +14,4 @@ */ /* '*' is not valid inside NamedImports. */ -import { *, d } from "../es.next/module-imported-01.mjs" +import { *, d } from "../module-imported-01.mjs" diff --git a/tests/jerry/fail/module-021.mjs b/tests/jerry/fail/module-021.mjs index 016bb3778..a71a9d397 100644 --- a/tests/jerry/fail/module-021.mjs +++ b/tests/jerry/fail/module-021.mjs @@ -14,5 +14,5 @@ */ /* Can't have duplicated local bindings. */ -import { b } from "../es.next/module-export-01.mjs" -import { b } from "../es.next/module-export-02.mjs" +import { b } from "../module-export-01.mjs" +import { b } from "../module-export-02.mjs" diff --git a/tests/jerry/fail/module-022.mjs b/tests/jerry/fail/module-022.mjs index 4ad7d3af0..bb86012c4 100644 --- a/tests/jerry/fail/module-022.mjs +++ b/tests/jerry/fail/module-022.mjs @@ -14,4 +14,4 @@ */ /* FromClause must follow an ImportClause. */ -import from "../es.next/module-export-02.mjs" +import from "../module-export-02.mjs" diff --git a/tests/jerry/fail/module-023.mjs b/tests/jerry/fail/module-023.mjs index 568207778..1bcff959a 100644 --- a/tests/jerry/fail/module-023.mjs +++ b/tests/jerry/fail/module-023.mjs @@ -14,4 +14,4 @@ */ /* Namespace imports must have a local name. */ -import * from "../es.next/module-export-01.mjs" +import * from "../module-export-01.mjs" diff --git a/tests/jerry/fail/module-024.mjs b/tests/jerry/fail/module-024.mjs index 5b2425ee5..230b2f715 100644 --- a/tests/jerry/fail/module-024.mjs +++ b/tests/jerry/fail/module-024.mjs @@ -15,4 +15,4 @@ export function ns() {} /* Duplicated export. */ -export * as ns from "../es.next/module-export-fail-test.mjs" +export * as ns from "../module-export-fail-test.mjs" diff --git a/tests/jerry/fail/module-025.mjs b/tests/jerry/fail/module-025.mjs index cb05adc9a..9d01155a5 100644 --- a/tests/jerry/fail/module-025.mjs +++ b/tests/jerry/fail/module-025.mjs @@ -14,4 +14,4 @@ */ /* Indirect exports must be checked if they are resolvable. */ -export { l } from "../es.next/module-export-01.mjs" +export { l } from "../module-export-01.mjs" diff --git a/tests/jerry/fail/module-028.mjs b/tests/jerry/fail/module-028.mjs index 08ede2d75..feacfcd01 100644 --- a/tests/jerry/fail/module-028.mjs +++ b/tests/jerry/fail/module-028.mjs @@ -14,4 +14,4 @@ */ /* Ambiguous import */ -import { x } from "../es.next/module-export-05.mjs" +import { x } from "../module-export-05.mjs" diff --git a/tests/jerry/fail/module-029.mjs b/tests/jerry/fail/module-029.mjs index b04e2a382..d0eadc401 100644 --- a/tests/jerry/fail/module-029.mjs +++ b/tests/jerry/fail/module-029.mjs @@ -14,4 +14,4 @@ */ /* Import/export statements must be in the global scope. */ -Function('','import { c } from "../es.next/module-export-01.mjs";') +Function('','import { c } from "../module-export-01.mjs";') diff --git a/tests/jerry/fail/module-030.mjs b/tests/jerry/fail/module-030.mjs index d9dc5adc5..704be07b5 100644 --- a/tests/jerry/fail/module-030.mjs +++ b/tests/jerry/fail/module-030.mjs @@ -14,4 +14,4 @@ */ /* No default export found. */ -import def from "../es.next/module-export-06.mjs" +import def from "../module-export-06.mjs" diff --git a/tests/jerry/fail/module-032.mjs b/tests/jerry/fail/module-032.mjs index fb6898c3a..146b75853 100644 --- a/tests/jerry/fail/module-032.mjs +++ b/tests/jerry/fail/module-032.mjs @@ -14,4 +14,4 @@ */ let a; -import { a } from "../es.next/module-export-fail-test.mjs"; +import { a } from "../module-export-fail-test.mjs"; diff --git a/tests/jerry/fail/module-033.mjs b/tests/jerry/fail/module-033.mjs index 235927d9e..82cf92737 100644 --- a/tests/jerry/fail/module-033.mjs +++ b/tests/jerry/fail/module-033.mjs @@ -14,4 +14,4 @@ */ var a; -import { a } from "../es.next/module-export-fail-test.mjs"; +import { a } from "../module-export-fail-test.mjs"; diff --git a/tests/jerry/fail/module-034.mjs b/tests/jerry/fail/module-034.mjs index 7723b8c34..8bc8ab615 100644 --- a/tests/jerry/fail/module-034.mjs +++ b/tests/jerry/fail/module-034.mjs @@ -13,5 +13,5 @@ * limitations under the License. */ -import { a } from "../es.next/module-export-fail-test.mjs"; +import { a } from "../module-export-fail-test.mjs"; class a {}; diff --git a/tests/jerry/fail/module-035.mjs b/tests/jerry/fail/module-035.mjs index d19fce94b..44fea9917 100644 --- a/tests/jerry/fail/module-035.mjs +++ b/tests/jerry/fail/module-035.mjs @@ -13,5 +13,5 @@ * limitations under the License. */ -import { a } from "../es.next/module-export-fail-test.mjs"; +import { a } from "../module-export-fail-test.mjs"; function a() {} diff --git a/tests/jerry/fail/regression-test-issue-2896.js b/tests/jerry/fail/regression-test-issue-2896.js index 720264eee..6fb3ab2a4 100644 --- a/tests/jerry/fail/regression-test-issue-2896.js +++ b/tests/jerry/fail/regression-test-issue-2896.js @@ -13,4 +13,4 @@ // limitations under the License. export {} from "dummy.mjs"; -export {} from "../es.next/module-export-04.mjs"; +export {} from "../module-export-04.mjs";