summaryrefslogtreecommitdiffstats
path: root/vendor/web-sys/tests/wasm/performance.rs
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/web-sys/tests/wasm/performance.rs')
-rw-r--r--vendor/web-sys/tests/wasm/performance.rs15
1 files changed, 15 insertions, 0 deletions
diff --git a/vendor/web-sys/tests/wasm/performance.rs b/vendor/web-sys/tests/wasm/performance.rs
new file mode 100644
index 000000000..84931a627
--- /dev/null
+++ b/vendor/web-sys/tests/wasm/performance.rs
@@ -0,0 +1,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());
+}