Skip to content

Commit d00f481

Browse files
authored
Fix import paths in negative module tests (#4973)
JerryScript-DCO-1.0-Signed-off-by: Yonggang Luo [email protected]
1 parent c5bc378 commit d00f481

24 files changed

+25
-25
lines changed

tests/jerry/fail/module-002.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
* limitations under the License.
1414
*/
1515

16-
import { , as b } from "../es.next/module-export-01.mjs";
16+
import { , as b } from "../module-export-01.mjs";

tests/jerry/fail/module-003.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
* limitations under the License.
1414
*/
1515

16-
import , as b from "../es.next/module-export-01.mjs";
16+
import , as b from "../module-export-01.mjs";

tests/jerry/fail/module-004.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
* limitations under the License.
1414
*/
1515

16-
import { b as , } from "../es.next/module-export-01.mjs";
16+
import { b as , } from "../module-export-01.mjs";

tests/jerry/fail/module-005.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@
1414
*/
1515

1616
/* Named imports must be in a NamedImports block. */
17-
import b as , from "../es.next/module-export-01.mjs";
17+
import b as , from "../module-export-01.mjs";

tests/jerry/fail/module-010.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@
1414
*/
1515

1616
/* Can't have duplicate local bindings */
17-
import { c as a, d as a } from "../es.next/module-export-01.mjs";
17+
import { c as a, d as a } from "../module-export-01.mjs";

tests/jerry/fail/module-014.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@
1515

1616
/* Import/export statements must be in the global scope. */
1717
if (true) {
18-
import { c } from "../es.next/module-export-01.mjs";
18+
import { c } from "../module-export-01.mjs";
1919
}

tests/jerry/fail/module-015.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@
1515

1616
/* Import/export statements must be in the global scope. */
1717
function someFunction() {
18-
import { c } from "../es.next/module-export-01.mjs";
18+
import { c } from "../module-export-01.mjs";
1919
}

tests/jerry/fail/module-016.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@
1414
*/
1515

1616
/* Import/export statements must be in the global scope. */
17-
eval ('import { c } from "../es.next/module-export-01.mjs";');
17+
eval ('import { c } from "../module-export-01.mjs";');

tests/jerry/fail/module-017.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@
1414
*/
1515

1616
/* NamedImports must always be followed by a FromClause. */
17-
import { b }, from "../es.next/module-export-01.mjs"
17+
import { b }, from "../module-export-01.mjs"

tests/jerry/fail/module-018.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@
1414
*/
1515

1616
/* An import statement can have either a NameSpaceImport or NamedIpmorts */
17-
import * as mod, { b } from "../es.next/module-export-01.mjs"
17+
import * as mod, { b } from "../module-export-01.mjs"

tests/jerry/fail/module-020.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@
1414
*/
1515

1616
/* '*' is not valid inside NamedImports. */
17-
import { *, d } from "../es.next/module-imported-01.mjs"
17+
import { *, d } from "../module-imported-01.mjs"

tests/jerry/fail/module-021.mjs

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@
1414
*/
1515

1616
/* Can't have duplicated local bindings. */
17-
import { b } from "../es.next/module-export-01.mjs"
18-
import { b } from "../es.next/module-export-02.mjs"
17+
import { b } from "../module-export-01.mjs"
18+
import { b } from "../module-export-02.mjs"

tests/jerry/fail/module-022.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@
1414
*/
1515

1616
/* FromClause must follow an ImportClause. */
17-
import from "../es.next/module-export-02.mjs"
17+
import from "../module-export-02.mjs"

tests/jerry/fail/module-023.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@
1414
*/
1515

1616
/* Namespace imports must have a local name. */
17-
import * from "../es.next/module-export-01.mjs"
17+
import * from "../module-export-01.mjs"

tests/jerry/fail/module-024.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@
1515

1616
export function ns() {}
1717
/* Duplicated export. */
18-
export * as ns from "../es.next/module-export-fail-test.mjs"
18+
export * as ns from "../module-export-fail-test.mjs"

tests/jerry/fail/module-025.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@
1414
*/
1515

1616
/* Indirect exports must be checked if they are resolvable. */
17-
export { l } from "../es.next/module-export-01.mjs"
17+
export { l } from "../module-export-01.mjs"

tests/jerry/fail/module-028.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@
1414
*/
1515

1616
/* Ambiguous import */
17-
import { x } from "../es.next/module-export-05.mjs"
17+
import { x } from "../module-export-05.mjs"

tests/jerry/fail/module-029.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@
1414
*/
1515

1616
/* Import/export statements must be in the global scope. */
17-
Function('','import { c } from "../es.next/module-export-01.mjs";')
17+
Function('','import { c } from "../module-export-01.mjs";')

tests/jerry/fail/module-030.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@
1414
*/
1515

1616
/* No default export found. */
17-
import def from "../es.next/module-export-06.mjs"
17+
import def from "../module-export-06.mjs"

tests/jerry/fail/module-032.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@
1414
*/
1515

1616
let a;
17-
import { a } from "../es.next/module-export-fail-test.mjs";
17+
import { a } from "../module-export-fail-test.mjs";

tests/jerry/fail/module-033.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@
1414
*/
1515

1616
var a;
17-
import { a } from "../es.next/module-export-fail-test.mjs";
17+
import { a } from "../module-export-fail-test.mjs";

tests/jerry/fail/module-034.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@
1313
* limitations under the License.
1414
*/
1515

16-
import { a } from "../es.next/module-export-fail-test.mjs";
16+
import { a } from "../module-export-fail-test.mjs";
1717
class a {};

tests/jerry/fail/module-035.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@
1313
* limitations under the License.
1414
*/
1515

16-
import { a } from "../es.next/module-export-fail-test.mjs";
16+
import { a } from "../module-export-fail-test.mjs";
1717
function a() {}

tests/jerry/fail/regression-test-issue-2896.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
// limitations under the License.
1414

1515
export {} from "dummy.mjs";
16-
export {} from "../es.next/module-export-04.mjs";
16+
export {} from "../module-export-04.mjs";

0 commit comments

Comments
 (0)