1 #![cfg(target_arch = "wasm32")] 2 3 use wasm_bindgen_test::*; 4 5 wasm_bindgen_test_configure!(run_in_browser); 6 7 pub mod anchor_element; 8 pub mod blob; 9 pub mod body_element; 10 pub mod br_element; 11 pub mod button_element; 12 pub mod console; 13 pub mod div_element; 14 pub mod element; 15 pub mod event; 16 pub mod head_element; 17 pub mod headers; 18 pub mod heading_element; 19 pub mod history; 20 pub mod hr_element; 21 pub mod html_element; 22 pub mod html_html_element; 23 pub mod image_data; 24 pub mod input_element; 25 //TODO: Both menu-related tests completely break in Chrome, but run fine in Firefox. 26 //pub mod menu_element; 27 //pub mod menu_item_element; 28 pub mod dom_point; 29 pub mod indexeddb; 30 pub mod location; 31 pub mod meta_element; 32 pub mod meter_element; 33 pub mod mod_elements; 34 pub mod olist_element; 35 pub mod optgroup_element; 36 pub mod option_element; 37 pub mod options_collection; 38 pub mod output_element; 39 pub mod paragraph_element; 40 pub mod param_element; 41 pub mod performance; 42 pub mod pre_element; 43 pub mod progress_element; 44 pub mod quote_element; 45 pub mod response; 46 pub mod rtc_rtp_transceiver_direction; 47 pub mod script_element; 48 pub mod select_element; 49 pub mod slot_element; 50 pub mod span_element; 51 pub mod style_element; 52 pub mod table_element; 53 pub mod title_element; 54 pub mod whitelisted_immutable_slices; 55 pub mod xpath_result; 56 57 #[wasm_bindgen_test] deref_works()58fn deref_works() { 59 fn _check(a: &web_sys::XmlHttpRequestUpload) { 60 let _x: &web_sys::XmlHttpRequestEventTarget = a; 61 let _x: &web_sys::EventTarget = a; 62 let _x: &js_sys::Object = a; 63 let _x: &wasm_bindgen::JsValue = a; 64 } 65 } 66