Logo
Explore Help
Sign In
fluencelabs/wasm-bindgen
1
0
Fork 0
You've already forked wasm-bindgen
mirror of https://github.com/fluencelabs/wasm-bindgen synced 2025-06-17 06:51:24 +00:00
Code Issues Projects Releases Wiki Activity
Files
ae6f4a9c8726c0a3c69b8597a1c4f667fc9f4d25
wasm-bindgen/crates/webidl-tests/enums.js

30 lines
390 B
JavaScript
Raw Normal View History

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!
2018-07-30 11:06:29 -07:00
global.Shape = class Shape {
constructor(kind) {
this.kind = kind;
}
static triangle() {
return new Shape('triangle');
}
isSquare() {
return this.kind === 'square';
}
isCircle() {
return this.kind === 'circle';
}
getShape() {
return this.kind;
}
add read_optional_enum_attribute to webidl-tests/enums
2019-03-15 14:27:18 -06:00
get shapeTypeNone() {
return null;
}
get shapeTypeSome() {
return this.kind;
}
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!
2018-07-30 11:06:29 -07:00
};
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.0 Page: 533ms Template: 54ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API