mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
forgot to tidy unit test
This commit is contained in:
parent
f3bcb0a496
commit
305db366a1
1 changed files with 4 additions and 3 deletions
|
@ -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"));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue