Move final js-sys test to a headless suite

Hopefully this doesn't need to get too large over time!
This commit is contained in:
Alex Crichton 2018-07-21 20:09:45 -07:00
parent 59c04e26d4
commit 6679ddfefc
2 changed files with 13 additions and 15 deletions

View File

@ -1,13 +0,0 @@
#![cfg(not(target_arch = "wasm32"))]
extern crate wasm_bindgen_test_project_builder as project_builder;
fn project() -> project_builder::Project {
let mut p = project_builder::project();
p.add_local_dependency("js-sys", env!("CARGO_MANIFEST_DIR"));
return p
}
// Keep these tests in alphabetical order, just like the imports in `src/js.rs`.
mod ArrayIterator;

View File

@ -1,9 +1,20 @@
#![cfg(not(target_arch = "wasm32"))]
#![allow(non_snake_case)]
use super::project;
extern crate wasm_bindgen_test_project_builder as project_builder;
fn project() -> project_builder::Project {
let mut p = project_builder::project();
p.add_local_dependency("js-sys", env!("CARGO_MANIFEST_DIR"));
return p
}
// NB: currently this older test suite is only used for tests which require
// headless browser support, otherwise all new tests should go in the `wasm`
// test suite next to this one.
#[test]
fn values() {
fn ArrayIterator_values() {
let mut project = project();
project.file(
"src/lib.rs",