Skip to content

Commit

Permalink
Adjust option
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Mar 27, 2023
1 parent 00875cc commit 1c199ed
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions crates/swc_css_parser/tests/fixture.rs
Expand Up @@ -518,6 +518,7 @@ fn stylesheet_span_visualizer(input: PathBuf, config: Option<ParserConfig>) {
let config = match config {
Some(config) => config,
_ => ParserConfig {
legacy_ie: true,
..Default::default()
},
};
Expand Down Expand Up @@ -551,8 +552,20 @@ fn stylesheet_span_visualizer(input: PathBuf, config: Option<ParserConfig>) {

#[testing::fixture("tests/fixture/**/input.css")]
fn pass(input: PathBuf) {
stylesheet_test(input.clone(), Default::default());
stylesheet_test_tokens(input, Default::default());
stylesheet_test(
input.clone(),
ParserConfig {
legacy_ie: true,
..Default::default()
},
);
stylesheet_test_tokens(
input,
ParserConfig {
legacy_ie: true,
..Default::default()
},
);
}

#[testing::fixture("tests/line-comment/**/input.css")]
Expand Down

0 comments on commit 1c199ed

Please sign in to comment.