Fix webidl-tests fallout

This commit is contained in:
Alex Crichton
2018-09-17 14:51:25 -07:00
parent f24828a16b
commit fe31615ca1
4 changed files with 32 additions and 10 deletions

View File

@ -72,9 +72,16 @@ fn nullable_method() {
assert!(f.opt(None) == None);
}
#[wasm_bindgen]
extern {
fn get_global_method() -> GlobalMethod;
}
#[wasm_bindgen_test]
fn global_method() {
assert_eq!(GlobalMethod::m(), 123);
let x = get_global_method();
assert_eq!(x.m(), 123);
}
#[wasm_bindgen_test]