We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
headless
1 parent 59c04e2 commit 6679ddfCopy full SHA for 6679ddf
crates/js-sys/tests/all/main.rs
crates/js-sys/tests/all/ArrayIterator.rs renamed to crates/js-sys/tests/headless.rs
@@ -1,9 +1,20 @@
1
+#![cfg(not(target_arch = "wasm32"))]
2
#![allow(non_snake_case)]
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.
15
16
#[test]
-fn values() {
17
+fn ArrayIterator_values() {
18
let mut project = project();
19
project.file(
20
"src/lib.rs",
0 commit comments