Fix single_value_to_css

This commit is contained in:
Manish Goregaokar 2016-11-13 22:39:38 -08:00
parent 1fff47586f
commit c387eff065
2 changed files with 9 additions and 12 deletions

View file

@ -1030,7 +1030,7 @@ mod shorthand_serialization {
let x = block.single_value_to_css("scroll-snap-type", &mut s);
assert_eq!(x.is_ok(), true);
assert_eq!(s, "scroll-snap-type: ;");
assert_eq!(s, "");
}
#[test]
@ -1052,7 +1052,7 @@ mod shorthand_serialization {
let x = block.single_value_to_css("scroll-snap-type", &mut s);
assert_eq!(x.is_ok(), true);
assert_eq!(s, "scroll-snap-type: mandatory;");
assert_eq!(s, "mandatory");
}
}
}