From ce8238cdd82d287122a3fc967c44e4ad2fadf543 Mon Sep 17 00:00:00 2001 From: Nick Fitzgerald Date: Thu, 31 May 2018 18:13:57 -0700 Subject: [PATCH] webidl: Compile and test the bindings emitted from WebIDL compilation --- crates/webidl/Cargo.toml | 5 +++++ crates/webidl/tests/expected/lib.rs | 6 ++++++ 2 files changed, 11 insertions(+) create mode 100755 crates/webidl/tests/expected/lib.rs diff --git a/crates/webidl/Cargo.toml b/crates/webidl/Cargo.toml index fb23661c..51544224 100644 --- a/crates/webidl/Cargo.toml +++ b/crates/webidl/Cargo.toml @@ -7,7 +7,12 @@ authors = ["Nick Fitzgerald "] name = "webidl-all" path = "tests/all/lib.rs" +[[test]] +name = "webidl-expected" +path = "tests/expected/lib.rs" + [dev-dependencies] +wasm-bindgen = { version = "=0.2.11", path = "../..", default-features = false } wasm-bindgen-backend = { version = "=0.2.11", path = "../backend", features = ["extra-traits"] } diff = "0.1.11" diff --git a/crates/webidl/tests/expected/lib.rs b/crates/webidl/tests/expected/lib.rs new file mode 100755 index 00000000..521c2cad --- /dev/null +++ b/crates/webidl/tests/expected/lib.rs @@ -0,0 +1,6 @@ +#![feature(wasm_custom_section)] +#![allow(bad_style)] + +extern crate wasm_bindgen; + +mod Event;