mirror of
https://github.com/swc-project/swc.git
synced 2024-12-19 19:52:21 +03:00
12546c853a
**Description:** The `rkyv` bug is not fixed.
47 lines
981 B
Rust
47 lines
981 B
Rust
#![deny(warnings)]
|
|
#![allow(clippy::if_same_then_else)]
|
|
#![allow(clippy::needless_update)]
|
|
#![allow(clippy::redundant_clone)]
|
|
#![allow(clippy::while_let_on_iterator)]
|
|
|
|
use std::path::PathBuf;
|
|
|
|
use common::{document_dom_visualizer, document_span_visualizer};
|
|
use swc_html_parser::parser::ParserConfig;
|
|
|
|
use crate::common::document_test;
|
|
|
|
#[path = "common/mod.rs"]
|
|
mod common;
|
|
|
|
#[testing::fixture("tests/fixture/**/*.html")]
|
|
fn pass(input: PathBuf) {
|
|
document_test(
|
|
input,
|
|
ParserConfig {
|
|
..Default::default()
|
|
},
|
|
)
|
|
}
|
|
|
|
#[testing::fixture("tests/fixture/**/*.html")]
|
|
fn span_visualizer(input: PathBuf) {
|
|
document_span_visualizer(
|
|
input,
|
|
ParserConfig {
|
|
..Default::default()
|
|
},
|
|
false,
|
|
)
|
|
}
|
|
|
|
#[testing::fixture("tests/fixture/**/*.html")]
|
|
fn dom_visualizer(input: PathBuf) {
|
|
document_dom_visualizer(
|
|
input,
|
|
ParserConfig {
|
|
..Default::default()
|
|
},
|
|
)
|
|
}
|