use html_sys::forms::Button; #[test] fn smoke() { let mut button = Button::default(); let s = button.to_string(); assert_eq!(s, ""); button.inert = true; let s = button.to_string(); assert_eq!(s, ""); button.name = Some("testbutton".into()); let s = button.to_string(); assert_eq!(s, r#""#); button.data_map.insert("nori".into(), "cat".into()); let s = button.to_string(); assert_eq!( s, r#""# ); }