mirror of
https://github.com/rustwasm/wasm-bindgen.git
synced 2025-01-04 10:24:27 +03:00
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:
parent
59c04e26d4
commit
6679ddfefc
@ -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;
|
@ -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",
|
Loading…
Reference in New Issue
Block a user