diff options
author | Dexter Haslem <dexter.haslem@gmail.com> | 2017-01-24 01:33:29 -0700 |
---|---|---|
committer | Dexter Haslem <dexter.haslem@gmail.com> | 2017-01-24 01:33:29 -0700 |
commit | 305db366a1ad5e39a8b41ce71e652acff477a777 (patch) | |
tree | fe0133b841d31740c4b5abc8aa3fe202b505ab46 | |
parent | f3bcb0a49641239246e2f369d42517f924436b9f (diff) | |
download | servo-305db366a1ad5e39a8b41ce71e652acff477a777.tar.gz servo-305db366a1ad5e39a8b41ce71e652acff477a777.zip |
forgot to tidy unit test
-rw-r--r-- | tests/unit/style/parsing/inherited_text.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/unit/style/parsing/inherited_text.rs b/tests/unit/style/parsing/inherited_text.rs index 5585b62d4b4..faaa1cce02e 100644 --- a/tests/unit/style/parsing/inherited_text.rs +++ b/tests/unit/style/parsing/inherited_text.rs @@ -82,11 +82,12 @@ fn test_text_emphasis_position() { #[test] fn webkit_text_stroke_shorthand_should_parse_properly() { + use media_queries::CSSErrorReporterTest; + use servo_url::ServoUrl; use style::properties::longhands::_webkit_text_stroke_color; use style::properties::longhands::_webkit_text_stroke_width; use style::properties::shorthands::_webkit_text_stroke; - use media_queries::CSSErrorReporterTest; - use servo_url::ServoUrl; + let url = ServoUrl::parse("http://localhost").unwrap(); let context = ParserContext::new(Origin::Author, &url, Box::new(CSSErrorReporterTest)); @@ -100,4 +101,4 @@ fn webkit_text_stroke_shorthand_should_parse_properly() { let result = _webkit_text_stroke::parse_value(&context, &mut parser).unwrap(); assert_eq!(result._webkit_text_stroke_color.unwrap(), parse_longhand!(_webkit_text_stroke_color, "red")); assert_eq!(result._webkit_text_stroke_width.unwrap(), parse_longhand!(_webkit_text_stroke_width, "thin")); -}
\ No newline at end of file +} |