mirror of
https://github.com/servo/servo.git
synced 2025-08-11 16:35:33 +01:00
fixed the wrong behavior of border-spacing
This commit is contained in:
parent
11396b4dd3
commit
06650f8428
3 changed files with 22 additions and 6 deletions
|
@ -58,6 +58,17 @@ macro_rules! assert_roundtrip {
|
|||
}
|
||||
}
|
||||
|
||||
macro_rules! assert_parser_exhausted {
|
||||
($name:ident, $string:expr, $should_exhausted:expr) => {{
|
||||
let url = ::servo_url::ServoUrl::parse("http://localhost").unwrap();
|
||||
let context = ParserContext::new(Origin::Author, &url, Box::new(CSSErrorReporterTest));
|
||||
let mut parser = Parser::new($string);
|
||||
let parsed = $name::parse(&context, &mut parser);
|
||||
assert_eq!(parsed.is_ok(), true);
|
||||
assert_eq!(parser.is_exhausted(), $should_exhausted);
|
||||
}}
|
||||
}
|
||||
|
||||
macro_rules! parse_longhand {
|
||||
($name:ident, $s:expr) => {{
|
||||
let url = ::servo_url::ServoUrl::parse("http://localhost").unwrap();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue