mirror of
https://github.com/rustwasm/wasm-bindgen.git
synced 2024-12-27 20:15:14 +03:00
7e16690f10
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!
16 lines
222 B
Plaintext
Vendored
16 lines
222 B
Plaintext
Vendored
enum ShapeType { "circle", "square" };
|
|
|
|
[Constructor(ShapeType kind)]
|
|
interface Shape {
|
|
static Shape triangle();
|
|
|
|
[Pure]
|
|
boolean isSquare();
|
|
|
|
[Pure]
|
|
boolean isCircle();
|
|
|
|
[Pure]
|
|
ShapeType getShape();
|
|
};
|