swc/crates/swc_html_parser/tests/fixture.rs
Donny/강동윤 0259a7465f
build(cargo): Update rustc to nightly-2023-03-20 (#7170)
**Description:**

This PR also updates `rkyv` to `=0.7.40`.

**Related issue:**

 - Closes https://github.com/swc-project/swc/issues/6807.
2023-03-30 08:06:02 +00:00

30 lines
744 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 crate::common::document_test;
#[path = "common/mod.rs"]
mod common;
#[testing::fixture("tests/fixture/**/*.html")]
fn pass(input: PathBuf) {
document_test(input, Default::default())
}
#[testing::fixture("tests/fixture/**/*.html")]
fn span_visualizer(input: PathBuf) {
document_span_visualizer(input, Default::default(), false)
}
#[testing::fixture("tests/fixture/**/*.html")]
fn dom_visualizer(input: PathBuf) {
document_dom_visualizer(input, Default::default())
}