mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-07-31 03:51:56 +00:00
Move web-sys
tests to the new test framework
Migrate most `web-sys` tests to the new `wasm_bindgen_test` framework with the new headless browser capabilities!
This commit is contained in:
14
crates/web-sys/tests/wasm/head_element.rs
Normal file
14
crates/web-sys/tests/wasm/head_element.rs
Normal file
@@ -0,0 +1,14 @@
|
||||
use wasm_bindgen_test::*;
|
||||
use wasm_bindgen::prelude::*;
|
||||
use web_sys::HtmlHeadElement;
|
||||
|
||||
#[wasm_bindgen(module = "./tests/wasm/element.js")]
|
||||
extern {
|
||||
fn new_head() -> HtmlHeadElement;
|
||||
}
|
||||
|
||||
#[wasm_bindgen_test]
|
||||
fn test_head_element() {
|
||||
let _element = new_head();
|
||||
assert!(true, "Head doesn't have an interface");
|
||||
}
|
Reference in New Issue
Block a user