Handle prefixed value of -moz-user-select properly

This commit is contained in:
Xidorn Quan 2017-06-29 14:22:16 -07:00
parent 8f37de05b2
commit 9299a0dc2c
4 changed files with 9 additions and 5 deletions

View file

@ -20,8 +20,9 @@ fn test_moz_user_select() {
assert_roundtrip_with_context!(_moz_user_select::parse, "toggle");
assert_roundtrip_with_context!(_moz_user_select::parse, "tri-state");
assert_roundtrip_with_context!(_moz_user_select::parse, "-moz-all");
assert_roundtrip_with_context!(_moz_user_select::parse, "-moz-none");
assert_roundtrip_with_context!(_moz_user_select::parse, "-moz-text");
assert_eq!(parse(_moz_user_select::parse, "-moz-none"),
Ok(_moz_user_select::SpecifiedValue::none));
assert!(parse(_moz_user_select::parse, "potato").is_err());
}