mirror of
https://github.com/denoland/deno.git
synced 2025-03-03 17:34:47 -05:00
tests: fix broken tests on main (#10663)
This commit is contained in:
parent
75d547809f
commit
30b2779bb6
9 changed files with 21 additions and 17 deletions
|
@ -1,4 +1,6 @@
|
||||||
// This file doesn't really exist, but it doesn't matter, a "PermissionsDenied" error should be thrown.
|
// This file doesn't really exist, but it doesn't matter, a "PermissionsDenied" error should be thrown.
|
||||||
const code = `import "file:///local_file.ts";`;
|
const code = `import "file:///${
|
||||||
|
Deno.build.os == "windows" ? "C:/" : ""
|
||||||
|
}local_file.ts";`;
|
||||||
const blob = new Blob([code]);
|
const blob = new Blob([code]);
|
||||||
await import(URL.createObjectURL(blob));
|
await import(URL.createObjectURL(blob));
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
error: Uncaught (in promise) TypeError: Requires read access to "/local_file.ts", run again with the --allow-read flag
|
error: Uncaught (in promise) TypeError: Requires read access to "[WILDCARD]local_file.ts", run again with the --allow-read flag
|
||||||
at blob:null/[WILDCARD]:1:0
|
at blob:null/[WILDCARD]:1:0
|
||||||
await import(URL.createObjectURL(blob));
|
await import(URL.createObjectURL(blob));
|
||||||
^
|
^
|
||||||
at async file:///[WILDCARD]/cli/tests/dynamic_import/permissions_blob_local.ts:4:1
|
at async file:///[WILDCARD]/cli/tests/dynamic_import/permissions_blob_local.ts:6:1
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
// This file doesn't really exist, but it doesn't matter, a "PermissionsDenied" error should be thrown.
|
// This file doesn't really exist, but it doesn't matter, a "PermissionsDenied" error should be thrown.
|
||||||
const code = `import "file:///local_file.ts";`;
|
const code = `import "file:///${
|
||||||
|
Deno.build.os == "windows" ? "C:/" : ""
|
||||||
|
}local_file.ts";`;
|
||||||
await import(`data:application/javascript;base64,${btoa(code)}`);
|
await import(`data:application/javascript;base64,${btoa(code)}`);
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
error: Uncaught (in promise) TypeError: Requires read access to "/local_file.ts", run again with the --allow-read flag
|
error: Uncaught (in promise) TypeError: Requires read access to "[WILDCARD]local_file.ts", run again with the --allow-read flag
|
||||||
at data:application/javascript;base64,aW1wb3J0ICJmaWxlOi8vL2xvY2FsX2ZpbGUudHMiOw==:1:0
|
at data:application/javascript;base64,[WILDCARD]:1:0
|
||||||
await import(`data:application/javascript;base64,${btoa(code)}`);
|
await import(`data:application/javascript;base64,${btoa(code)}`);
|
||||||
^
|
^
|
||||||
at async file:///[WILDCARD]/cli/tests/dynamic_import/permissions_data_local.ts:3:1
|
at async file:///[WILDCARD]/cli/tests/dynamic_import/permissions_data_local.ts:5:1
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
// This file doesn't really exist, but it doesn't matter, a "PermissionsDenied" error should be thrown.
|
// This file doesn't really exist, but it doesn't matter, a "PermissionsDenied" error should be thrown.
|
||||||
const code = `import "file:///local_file.ts";`;
|
const code = `import "file:///${
|
||||||
|
Deno.build.os == "windows" ? "C:/" : ""
|
||||||
|
}local_file.ts";`;
|
||||||
const blob = new Blob([code]);
|
const blob = new Blob([code]);
|
||||||
new Worker(URL.createObjectURL(blob), { type: "module" });
|
new Worker(URL.createObjectURL(blob), { type: "module" });
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
error: Uncaught (in worker "") Requires read access to "/local_file.ts", run again with the --allow-read flag
|
error: Uncaught (in worker "") Requires read access to "[WILDCARD]local_file.ts", run again with the --allow-read flag
|
||||||
at blob:null/[WILDCARD]:1:0
|
at blob:null/[WILDCARD]:1:0
|
||||||
error: Uncaught (in promise) Error: Unhandled error event reached main worker.
|
error: Uncaught (in promise) Error: Unhandled error event reached main worker.
|
||||||
at Worker.#poll (deno:runtime/js/11_workers.js:246:23)
|
at Worker.#poll (deno:runtime/js/11_workers.js:246:23)
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
// This file doesn't really exist, but it doesn't matter, a "PermissionsDenied" error should be thrown.
|
// This file doesn't really exist, but it doesn't matter, a "PermissionsDenied" error should be thrown.
|
||||||
const code = `import "file:///local_file.ts";`;
|
const code = `import "file:///${
|
||||||
|
Deno.build.os == "windows" ? "C:/" : ""
|
||||||
|
}local_file.ts";`;
|
||||||
new Worker(`data:application/javascript;base64,${btoa(code)}`, {
|
new Worker(`data:application/javascript;base64,${btoa(code)}`, {
|
||||||
type: "module",
|
type: "module",
|
||||||
});
|
});
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
error: Uncaught (in worker "") Requires read access to "/local_file.ts", run again with the --allow-read flag
|
error: Uncaught (in worker "") Requires read access to "[WILDCARD]local_file.ts", run again with the --allow-read flag
|
||||||
at data:application/javascript;base64,aW1wb3J0ICJmaWxlOi8vL2xvY2FsX2ZpbGUudHMiOw==:1:0
|
at data:application/javascript;base64,[WILDCARD]:1:0
|
||||||
error: Uncaught (in promise) Error: Unhandled error event reached main worker.
|
error: Uncaught (in promise) Error: Unhandled error event reached main worker.
|
||||||
at Worker.#poll (deno:runtime/js/11_workers.js:246:23)
|
at Worker.#poll (deno:runtime/js/11_workers.js:246:23)
|
||||||
|
|
|
@ -2,9 +2,5 @@ error: Uncaught (in worker "") (in promise) TypeError: Requires net access to "e
|
||||||
await import("https://example.com/some/file.ts");
|
await import("https://example.com/some/file.ts");
|
||||||
^
|
^
|
||||||
at async http://localhost:4545/cli/tests/workers/dynamic_remote.ts:2:1
|
at async http://localhost:4545/cli/tests/workers/dynamic_remote.ts:2:1
|
||||||
error: Uncaught (in worker "") TypeError: Requires net access to "example.com", run again with the --allow-net flag
|
[WILDCARD]error: Uncaught (in promise) Error: Unhandled error event reached main worker.
|
||||||
await import("https://example.com/some/file.ts");
|
|
||||||
^
|
|
||||||
at async http://localhost:4545/cli/tests/workers/dynamic_remote.ts:2:1
|
|
||||||
error: Uncaught (in promise) Error: Unhandled error event reached main worker.
|
|
||||||
at Worker.#poll (deno:runtime/js/11_workers.js:246:23)
|
at Worker.#poll (deno:runtime/js/11_workers.js:246:23)
|
||||||
|
|
Loading…
Add table
Reference in a new issue