1 use wasm_bindgen::prelude::*;
2 use wasm_bindgen_test::*;
3 use web_sys::HtmlDivElement;
4 
5 #[wasm_bindgen(module = "/tests/wasm/element.js")]
6 extern "C" {
new_div() -> HtmlDivElement7     fn new_div() -> HtmlDivElement;
8 }
9 
10 #[wasm_bindgen_test]
test_div_element()11 fn test_div_element() {
12     let element = new_div();
13     assert_eq!(element.align(), "", "Shouldn't have a align");
14     element.set_align("right");
15     assert_eq!(element.align(), "right", "Should have a align");
16 }
17