mirror of
https://github.com/servo/servo.git
synced 2025-08-11 00:15:32 +01:00
Fix up unit tests
This commit is contained in:
parent
627c823d0a
commit
71f9a0c848
3 changed files with 11 additions and 8 deletions
|
@ -7,6 +7,7 @@ use servo_atoms::Atom;
|
|||
use style::parser::Parse;
|
||||
use style::properties::longhands::animation_iteration_count::single_value::computed_value::T as AnimationIterationCount;
|
||||
use style::properties::longhands::animation_name;
|
||||
use style::values::CustomIdent;
|
||||
use style_traits::ToCss;
|
||||
|
||||
#[test]
|
||||
|
@ -14,13 +15,13 @@ fn test_animation_name() {
|
|||
use self::animation_name::single_value::SpecifiedValue as SingleValue;
|
||||
let other_name = Atom::from("other-name");
|
||||
assert_eq!(parse_longhand!(animation_name, "none"),
|
||||
animation_name::SpecifiedValue(vec![SingleValue(atom!(""))]));
|
||||
animation_name::SpecifiedValue(vec![SingleValue(CustomIdent(atom!("")))]));
|
||||
assert_eq!(parse_longhand!(animation_name, "other-name, none, 'other-name', \"other-name\""),
|
||||
animation_name::SpecifiedValue(
|
||||
vec![SingleValue(other_name.clone()),
|
||||
SingleValue(atom!("")),
|
||||
SingleValue(other_name.clone()),
|
||||
SingleValue(other_name.clone())]));
|
||||
vec![SingleValue(CustomIdent(other_name.clone())),
|
||||
SingleValue(CustomIdent(atom!(""))),
|
||||
SingleValue(CustomIdent(other_name.clone())),
|
||||
SingleValue(CustomIdent(other_name.clone()))]));
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue