()
| 1479 | |
| 1480 | #[test] |
| 1481 | fn remove_inlined_selectors_basic() { |
| 1482 | let inliner = CSSInliner::options().remove_inlined_selectors(true).build(); |
| 1483 | let html = |
| 1484 | r#"<html><head><style>h1 { color: blue; }</style></head><body><h1>Test</h1></body></html>"#; |
| 1485 | let result = inliner.inline(html).unwrap(); |
| 1486 | assert_eq!( |
| 1487 | result, |
| 1488 | r#"<html><head></head><body><h1 style="color: blue;">Test</h1></body></html>"# |
| 1489 | ); |
| 1490 | } |
| 1491 | |
| 1492 | #[test] |
| 1493 | fn remove_inlined_selectors_partial() { |
nothing calls this directly
no test coverage detected