mirror of
https://github.com/servo/servo.git
synced 2025-09-30 08:39:16 +01:00
Fix up unit tests
This commit is contained in:
parent
627c823d0a
commit
71f9a0c848
3 changed files with 11 additions and 8 deletions
|
@ -23,6 +23,7 @@ use style::properties::longhands::animation_play_state;
|
|||
use style::shared_lock::SharedRwLock;
|
||||
use style::stylesheets::{Origin, Namespaces};
|
||||
use style::stylesheets::{Stylesheet, NamespaceRule, CssRule, CssRules, StyleRule, KeyframesRule};
|
||||
use style::values::CustomIdent;
|
||||
use style::values::specified::{LengthOrPercentageOrAuto, Percentage};
|
||||
|
||||
pub fn block_from<I>(iterable: I) -> PropertyDeclarationBlock
|
||||
|
@ -221,7 +222,7 @@ fn test_parse_stylesheet() {
|
|||
]))),
|
||||
}))),
|
||||
CssRule::Keyframes(Arc::new(stylesheet.shared_lock.wrap(KeyframesRule {
|
||||
name: "foo".into(),
|
||||
name: CustomIdent("foo".into()),
|
||||
keyframes: vec![
|
||||
Arc::new(stylesheet.shared_lock.wrap(Keyframe {
|
||||
selector: KeyframeSelector::new_for_unit_testing(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue