Migrate webidl tests to wasm_bindgen_test (#590)

This commit moves the `webidl/tests` folder to a new `crates/webidl-tests` crate
(to have a test-only build script) and ports them to the `#[wasm_bindgen_test]`
attribute, which should hopefully make testing much speedier for execution!
This commit is contained in:
Alex Crichton
2018-07-30 11:06:29 -07:00
committed by GitHub
parent d876475ce3
commit 7e16690f10
29 changed files with 687 additions and 1107 deletions

16
crates/webidl-tests/array.webidl vendored Normal file
View File

@ -0,0 +1,16 @@
[Constructor()]
interface TestArrays {
DOMString strings(DOMString arg1);
ByteString byteStrings(ByteString arg1);
USVString usvStrings(USVString arg1);
Float32Array f32(Float32Array a);
Float64Array f64(Float64Array a);
Int8Array i8(Int8Array a);
Int16Array i16(Int16Array a);
Int32Array i32(Int32Array a);
Uint8Array u8(Uint8Array a);
Uint8ClampedArray u8Clamped(Uint8ClampedArray a);
Uint16Array u16(Uint16Array a);
Uint32Array u32(Uint32Array a);
};