swc/crates/swc_html_parser/tests/iframe_srcdoc.rs
Donny/강동윤 e445502072
build(cargo): Update rustc to nightly-2023-03-28 (#7154)
**Description:**

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

**Related issue:**

 - Closes https://github.com/swc-project/swc/issues/6807.
2023-03-29 06:24:19 +00:00

31 lines
746 B
Rust

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/iframe_srcdoc/**/*.html")]
fn pass_iframe_srcdoc(input: PathBuf) {
document_test(
input,
ParserConfig {
iframe_srcdoc: true,
..Default::default()
},
)
}
#[testing::fixture("tests/iframe_srcdoc/**/*.html")]
fn span_visualizer(input: PathBuf) {
document_span_visualizer(input, Default::default(), false)
}
#[testing::fixture("tests/iframe_srcdoc/**/*.html")]
fn dom_visualizer(input: PathBuf) {
document_dom_visualizer(input, Default::default())
}