Skip to content

Commit 6679ddf

Browse files
committed
Move final js-sys test to a headless suite
Hopefully this doesn't need to get too large over time!
1 parent 59c04e2 commit 6679ddf

File tree

2 files changed

+13
-15
lines changed

2 files changed

+13
-15
lines changed

crates/js-sys/tests/all/main.rs

Lines changed: 0 additions & 13 deletions
This file was deleted.

crates/js-sys/tests/all/ArrayIterator.rs renamed to crates/js-sys/tests/headless.rs

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,20 @@
1+
#![cfg(not(target_arch = "wasm32"))]
12
#![allow(non_snake_case)]
23

3-
use super::project;
4+
extern crate wasm_bindgen_test_project_builder as project_builder;
5+
6+
fn project() -> project_builder::Project {
7+
let mut p = project_builder::project();
8+
p.add_local_dependency("js-sys", env!("CARGO_MANIFEST_DIR"));
9+
return p
10+
}
11+
12+
// NB: currently this older test suite is only used for tests which require
13+
// headless browser support, otherwise all new tests should go in the `wasm`
14+
// test suite next to this one.
415

516
#[test]
6-
fn values() {
17+
fn ArrayIterator_values() {
718
let mut project = project();
819
project.file(
920
"src/lib.rs",

0 commit comments

Comments
 (0)