mirror of
https://github.com/servo/servo.git
synced 2025-09-30 00:29:14 +01:00
style: Fix unit tests build.
This commit is contained in:
parent
5d8545d2b4
commit
46b360cb75
3 changed files with 27 additions and 9 deletions
|
@ -24,9 +24,15 @@ where
|
|||
F: Fn(&ParserContext, &mut Parser<'i, 't>) -> Result<T, ParseError<'i>>,
|
||||
{
|
||||
let url = ::servo_url::ServoUrl::parse("http://localhost").unwrap();
|
||||
let context = ParserContext::new(Origin::Author, &url, Some(CssRuleType::Style),
|
||||
ParsingMode::DEFAULT,
|
||||
QuirksMode::NoQuirks, None);
|
||||
let context = ParserContext::new(
|
||||
Origin::Author,
|
||||
&url,
|
||||
Some(CssRuleType::Style),
|
||||
ParsingMode::DEFAULT,
|
||||
QuirksMode::NoQuirks,
|
||||
None,
|
||||
None,
|
||||
);
|
||||
let mut parser = Parser::new(input);
|
||||
f(&context, &mut parser)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue