Skip to content

Commit ab9e200

Browse files
committed
Update web-sys test to only test compilation
1 parent 8ba467e commit ab9e200

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

crates/web-sys/tests/wasm/main.rs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ extern crate wasm_bindgen_futures;
77
extern crate wasm_bindgen_test;
88
extern crate web_sys;
99

10-
use wasm_bindgen::{JsValue, JsCast};
1110
use wasm_bindgen_test::*;
1211

1312
wasm_bindgen_test_configure!(run_in_browser);
@@ -60,8 +59,10 @@ pub mod indexeddb;
6059

6160
#[wasm_bindgen_test]
6261
fn deref_works() {
63-
let x = JsValue::from(3);
64-
let x = x.unchecked_into::<web_sys::XmlHttpRequestUpload>();
65-
let y: &web_sys::XmlHttpRequestEventTarget = &x;
66-
drop(y);
62+
fn _check(a: &web_sys::XmlHttpRequestUpload) {
63+
let _x: &web_sys::XmlHttpRequestEventTarget = a;
64+
let _x: &web_sys::EventTarget = a;
65+
let _x: &js_sys::Object = a;
66+
let _x: &wasm_bindgen::JsValue = a;
67+
}
6768
}

0 commit comments

Comments
 (0)