blob: 84931a627cd86102c196db87e98fe5e948da26f6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
use wasm_bindgen::prelude::*;
use wasm_bindgen_test::*;
use web_sys::Performance;
#[wasm_bindgen]
extern "C" {
#[wasm_bindgen(js_name = performance)]
static PERFORMANCE: Performance;
}
#[wasm_bindgen_test]
fn to_json() {
let perf = JsValue::from(PERFORMANCE.to_json());
assert!(perf.is_object());
}
|