Skip to content

Commit 92dd8e8

Browse files
fitzgenalexcrichton
authored andcommitted
Move webidl tests to the webidl crate's test suite (#451)
* webidl: Remove exact-output tests These have not been as effective, nor as easy to write and maintain, as the project()-based integration tests. * tests: Move webidl tests into the webidl crate's test suite
1 parent 4293879 commit 92dd8e8

File tree

12 files changed

+6
-855
lines changed

12 files changed

+6
-855
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ matrix:
8383
# WebIDL tests pass on nightly
8484
- rust: nightly
8585
env: JOB=test-webidl
86-
before_install: rustup component add rustfmt-preview --toolchain nightly
86+
before_install: *INSTALL_NODE_VIA_NVM
87+
install: npm install
8788
script: cargo test --manifest-path crates/webidl/Cargo.toml
8889

8990
# Dist linux binary

crates/webidl/Cargo.toml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,7 @@ version = "0.2.11"
44
authors = ["Nick Fitzgerald <[email protected]>"]
55

66
[dev-dependencies]
7-
diff = "0.1.11"
8-
env_logger = "0.5.10"
9-
wasm-bindgen = { path = "../..", default-features = false }
10-
wasm-bindgen-backend = { version = "=0.2.11", path = "../backend", features = ["extra-traits"] }
7+
wasm-bindgen-test-project-builder = { path = "../test-project-builder", version = '=0.2.11' }
118

129
[dependencies]
1310
failure = "0.1"

crates/webidl/tests/all/main.rs

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,4 @@
1-
extern crate diff;
2-
extern crate env_logger;
3-
extern crate proc_macro2;
4-
extern crate syn;
5-
extern crate wasm_bindgen_backend as backend;
6-
extern crate wasm_bindgen_webidl as wb_webidl;
1+
extern crate wasm_bindgen_test_project_builder as project_builder;
2+
use project_builder::project;
73

8-
#[macro_use]
9-
mod util;
10-
use util::*;
11-
12-
assert_compile!(Event);
4+
mod simple;
File renamed without changes.

crates/webidl/tests/all/util.rs

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

0 commit comments

Comments
 (0)