wasm-bindgen/crates/web-sys/tests/wasm/head_element.rs
Alex Crichton 7ecf4aae87 cargo +nightly fmt --all
Rustfmt all the things!
2018-09-26 08:26:00 -07:00

15 lines
325 B
Rust

use wasm_bindgen::prelude::*;
use wasm_bindgen_test::*;
use web_sys::HtmlHeadElement;
#[wasm_bindgen(module = "./tests/wasm/element.js")]
extern "C" {
fn new_head() -> HtmlHeadElement;
}
#[wasm_bindgen_test]
fn test_head_element() {
let _element = new_head();
assert!(true, "Head doesn't have an interface");
}