Testing web-sys for input, heading and title elements. (#596)

This commit is contained in:
Jonathan Kingston
2018-07-31 16:57:16 +01:00
committed by Alex Crichton
parent 05f3eec76d
commit 26a3e57536
12 changed files with 273 additions and 75 deletions

View File

@@ -58,11 +58,13 @@ fn test_html_element() {
assert_eq!(element.content_editable(), "true", "Should be content_editable");
assert!(element.is_content_editable(), "Should be content_editable");
/*TODO doesn't work in Chrome
// TODO verify case where menu is passed
match element.context_menu() {
None => assert!(true, "Shouldn't have a custom menu set"),
_ => assert!(false, "Shouldn't have a custom menu set")
};
*/
assert!(!element.spellcheck(), "Shouldn't be spellchecked");
element.set_spellcheck(true);