diff --git a/tests/unit/style/parsing/mask.rs b/tests/unit/style/parsing/mask.rs index 827de66277e..bb4729cdf9b 100644 --- a/tests/unit/style/parsing/mask.rs +++ b/tests/unit/style/parsing/mask.rs @@ -11,14 +11,6 @@ use style::properties::shorthands::mask; use style::stylesheets::Origin; use url::Url; -macro_rules! parse_longhand { - ($name:ident, $s:expr) => {{ - let url = Url::parse("http://localhost").unwrap(); - let context = ParserContext::new(Origin::Author, &url, Box::new(CSSErrorReporterTest)); - $name::parse(&context, &mut Parser::new($s)).unwrap() - }}; -} - #[test] fn mask_shorthand_should_parse_all_available_properties_when_specified() { let url = Url::parse("http://localhost").unwrap(); diff --git a/tests/unit/style/parsing/mod.rs b/tests/unit/style/parsing/mod.rs index 85429ef0ffa..89beed71a79 100644 --- a/tests/unit/style/parsing/mod.rs +++ b/tests/unit/style/parsing/mod.rs @@ -32,6 +32,14 @@ macro_rules! assert_roundtrip { } +macro_rules! parse_longhand { + ($name:ident, $s:expr) => {{ + let url = Url::parse("http://localhost").unwrap(); + let context = ParserContext::new(Origin::Author, &url, Box::new(CSSErrorReporterTest)); + $name::parse(&context, &mut Parser::new($s)).unwrap() + }}; +} + mod basic_shape; mod mask; mod position;