| 1255 | #[test] |
| 1256 | #[cfg(feature = "stylesheet-cache")] |
| 1257 | fn test_disable_cache() { |
| 1258 | use std::num::NonZeroUsize; |
| 1259 | |
| 1260 | let inliner = CSSInliner::options() |
| 1261 | .cache(css_inline::StylesheetCache::new( |
| 1262 | NonZeroUsize::new(3).unwrap(), |
| 1263 | )) |
| 1264 | .cache(None) |
| 1265 | .build(); |
| 1266 | let debug = format!("{inliner:?}"); |
| 1267 | assert_eq!(debug, "CSSInliner { options: InlineOptions { inline_style_tags: true, keep_style_tags: false, keep_link_tags: false, base_url: None, load_remote_stylesheets: true, cache: None, extra_css: None, preallocate_node_capacity: 32, remove_inlined_selectors: false, apply_width_attributes: false, apply_height_attributes: false, .. } }"); |
| 1268 | } |
| 1269 | |
| 1270 | #[test] |
| 1271 | fn test_resolver_without_implementation() { |