Skip to content

Commit

Permalink
chore: cleanup code for unstable tests (denoland#25330)
Browse files Browse the repository at this point in the history
Towards denoland#25241

Removes code for tests of unstable APIs that were stabilized with Deno
2.0.0-rc.0.
  • Loading branch information
bartlomieju authored Aug 31, 2024
1 parent 4e19474 commit 42cf762
Show file tree
Hide file tree
Showing 16 changed files with 1 addition and 136 deletions.
48 changes: 0 additions & 48 deletions tests/integration/run_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down
1 change: 0 additions & 1 deletion tests/testdata/run/unstable.js

This file was deleted.

1 change: 0 additions & 1 deletion tests/testdata/run/unstable.ts

This file was deleted.

1 change: 0 additions & 1 deletion tests/testdata/run/unstable_disabled_js.out

This file was deleted.

1 change: 0 additions & 1 deletion tests/testdata/run/unstable_enabled.out

This file was deleted.

1 change: 0 additions & 1 deletion tests/testdata/run/unstable_enabled_js.out

This file was deleted.

10 changes: 0 additions & 10 deletions tests/testdata/run/unstable_ffi.disabled.out

This file was deleted.

10 changes: 0 additions & 10 deletions tests/testdata/run/unstable_ffi.enabled.out

This file was deleted.

14 changes: 0 additions & 14 deletions tests/testdata/run/unstable_ffi.js

This file was deleted.

10 changes: 0 additions & 10 deletions tests/testdata/run/unstable_fs.disabled.out

This file was deleted.

10 changes: 0 additions & 10 deletions tests/testdata/run/unstable_fs.enabled.out

This file was deleted.

14 changes: 0 additions & 14 deletions tests/testdata/run/unstable_fs.js

This file was deleted.

2 changes: 0 additions & 2 deletions tests/testdata/run/unstable_webgpu.disabled.out

This file was deleted.

2 changes: 0 additions & 2 deletions tests/testdata/run/unstable_webgpu.enabled.out

This file was deleted.

10 changes: 0 additions & 10 deletions tests/testdata/run/unstable_webgpu.js

This file was deleted.

2 changes: 1 addition & 1 deletion tools/lint.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 42cf762

Please sign in to comment.