1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-21 23:04:45 -05:00

chore: cleanup code for unstable tests (#25330)

Towards https://github.com/denoland/deno/issues/25241

Removes code for tests of unstable APIs that were stabilized with Deno
2.0.0-rc.0.
This commit is contained in:
Bartek Iwańczuk 2024-08-31 22:38:21 +01:00 committed by GitHub
parent 4e19474129
commit 42cf762cf4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
16 changed files with 1 additions and 136 deletions

View file

@ -1803,17 +1803,6 @@ itest!(top_level_for_await_ts {
output: "run/top_level_await/top_level_for_await.out",
});
// TODO(2.0): remove, `Deno.umask` is enabled by default with Deno 2.
// itest!(unstable_disabled_js {
// args: "run --reload run/unstable.js",
// output: "run/unstable_disabled_js.out",
// });
itest!(unstable_enabled_js {
args: "run --quiet --reload --unstable-fs run/unstable.ts",
output: "run/unstable_enabled_js.out",
});
itest!(unstable_worker {
args: "run --reload --quiet --allow-read run/unstable_worker.ts",
output: "run/unstable_worker.ts.out",
@ -1851,30 +1840,6 @@ itest!(unstable_cron_enabled {
output: "run/unstable_cron.enabled.out",
});
// TODO(2.0): remove, FFI is stable by default with Deno 2.
// itest!(unstable_ffi_disabled {
// args: "run --quiet --reload --allow-read run/unstable_ffi.js",
// output: "run/unstable_ffi.disabled.out",
// });
// TODO(2.0): remove, FFI is stable by default with Deno 2.
// itest!(unstable_ffi_enabled {
// args: "run --quiet --reload --allow-read --unstable-ffi run/unstable_ffi.js",
// output: "run/unstable_ffi.enabled.out",
// });
// TODO(2.0): remove, FS APIs are stable by default with Deno 2.
// itest!(unstable_fs_disabled {
// args: "run --quiet --reload --allow-read run/unstable_fs.js",
// output: "run/unstable_fs.disabled.out",
// });
// TODO(2.0): remove, FS APIs are stable by default with Deno 2.
// itest!(unstable_fs_enabled {
// args: "run --quiet --reload --allow-read --unstable-fs run/unstable_fs.js",
// output: "run/unstable_fs.enabled.out",
// });
itest!(unstable_http_disabled {
args: "run --quiet --reload --allow-read run/unstable_http.js",
output: "run/unstable_http.disabled.out",
@ -1906,19 +1871,6 @@ itest!(unstable_kv_enabled {
output: "run/unstable_kv.enabled.out",
});
// TODO(2.0): remove, WebGPU is enabled by default with Deno 2.
// itest!(unstable_webgpu_disabled {
// args: "run --quiet --reload --allow-read run/unstable_webgpu.js",
// output: "run/unstable_webgpu.disabled.out",
// });
// TODO(2.0): remove, WebGPU is enabled by default with Deno 2.
// itest!(unstable_webgpu_enabled {
// args:
// "run --quiet --reload --allow-read --unstable-webgpu run/unstable_webgpu.js",
// output: "run/unstable_webgpu.enabled.out",
// });
itest!(import_compression {
args: "run --quiet --reload --allow-net run/import_compression/main.ts",
output: "run/import_compression/main.out",

View file

@ -1 +0,0 @@
console.log(Deno.umask);

View file

@ -1 +0,0 @@
console.log(Deno.umask);

View file

@ -1 +0,0 @@
undefined

View file

@ -1 +0,0 @@
[Function: umask]

View file

@ -1 +0,0 @@
[Function: umask]

View file

@ -1,10 +0,0 @@
main undefined
main undefined
main undefined
main undefined
main undefined
worker undefined
worker undefined
worker undefined
worker undefined
worker undefined

View file

@ -1,10 +0,0 @@
main [class UnsafeCallback]
main [class UnsafeFnPointer]
main [class UnsafePointer]
main [class UnsafePointerView]
main [Function: dlopen]
worker [class UnsafeCallback]
worker [class UnsafeFnPointer]
worker [class UnsafePointer]
worker [class UnsafePointerView]
worker [Function: dlopen]

View file

@ -1,14 +0,0 @@
const scope = import.meta.url.slice(-7) === "#worker" ? "worker" : "main";
console.log(scope, Deno.UnsafeCallback);
console.log(scope, Deno.UnsafeFnPointer);
console.log(scope, Deno.UnsafePointer);
console.log(scope, Deno.UnsafePointerView);
console.log(scope, Deno.dlopen);
if (scope === "worker") {
postMessage("done");
} else {
const worker = new Worker(`${import.meta.url}#worker`, { type: "module" });
worker.onmessage = () => Deno.exit(0);
}

View file

@ -1,10 +0,0 @@
main undefined
main undefined
main undefined
main undefined
main undefined
worker undefined
worker undefined
worker undefined
worker undefined
worker undefined

View file

@ -1,10 +0,0 @@
main [AsyncFunction: flock]
main [Function: flockSync]
main [AsyncFunction: funlock]
main [Function: funlockSync]
main [Function: umask]
worker [AsyncFunction: flock]
worker [Function: flockSync]
worker [AsyncFunction: funlock]
worker [Function: funlockSync]
worker [Function: umask]

View file

@ -1,14 +0,0 @@
const scope = import.meta.url.slice(-7) === "#worker" ? "worker" : "main";
console.log(scope, Deno.flock);
console.log(scope, Deno.flockSync);
console.log(scope, Deno.funlock);
console.log(scope, Deno.funlockSync);
console.log(scope, Deno.umask);
if (scope === "worker") {
postMessage("done");
} else {
const worker = new Worker(`${import.meta.url}#worker`, { type: "module" });
worker.onmessage = () => Deno.exit(0);
}

View file

@ -1,2 +0,0 @@
main undefined
worker undefined

View file

@ -1,2 +0,0 @@
main [class GPU]
worker [class GPU]

View file

@ -1,10 +0,0 @@
const scope = import.meta.url.slice(-7) === "#worker" ? "worker" : "main";
console.log(scope, globalThis.GPU);
if (scope === "worker") {
postMessage("done");
} else {
const worker = new Worker(`${import.meta.url}#worker`, { type: "module" });
worker.onmessage = () => Deno.exit(0);
}

View file

@ -222,7 +222,7 @@ async function ensureNoNewITests() {
"pm_tests.rs": 0,
"publish_tests.rs": 0,
"repl_tests.rs": 0,
"run_tests.rs": 360,
"run_tests.rs": 352,
"shared_library_tests.rs": 0,
"task_tests.rs": 30,
"test_tests.rs": 77,