mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-24 21:23:07 +00:00
f0d814fede
* Chore: remove random old test fixture from CLI * nuke oidc * remove weird useless desktop example * remove lua globals vscode setting for cli * remove cli testcase * hoist deps in core-macro * we dont need prettyplease * add hoisted dependencies * hoist more despt * rename rsx_rosetta to dioxus_rsx_rosetta * drop cache thrashing when listening for features * drop flag from mobile dep * drop cli-config warning * hoist more deps * clippy... * we dont use the tools module... * bump lock
23 lines
495 B
Rust
23 lines
495 B
Rust
use html_parser::Dom;
|
|
|
|
#[test]
|
|
fn raw_attribute() {
|
|
let html = r#"
|
|
<div>
|
|
<div unrecognizedattribute="asd">hello world!</div>
|
|
</div>
|
|
"#
|
|
.trim();
|
|
|
|
let dom = Dom::parse(html).unwrap();
|
|
|
|
let body = dioxus_rsx_rosetta::rsx_from_html(&dom);
|
|
|
|
let out = dioxus_autofmt::write_block_out(&body).unwrap();
|
|
|
|
let expected = r#"
|
|
div {
|
|
div { "unrecognizedattribute": "asd", "hello world!" }
|
|
}"#;
|
|
pretty_assertions::assert_eq!(&out, &expected);
|
|
}
|