MCPcopy Create free account
hub / github.com/d0iasm/saba / test_empty

Function test_empty

core/src/renderer/css/cssom.rs:439–446  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

437
438 #[test]
439 fn test_empty() {
440 let browser = Browser::new();
441 let style = "".to_string();
442 let t = CssTokenizer::new(style);
443 let cssom = CssParser::new(Rc::downgrade(&browser), t).parse_stylesheet();
444
445 assert_eq!(cssom.rules.len(), 0);
446 }
447
448 #[test]
449 fn test_one_rule() {

Callers

nothing calls this directly

Calls 2

to_stringMethod · 0.80
parse_stylesheetMethod · 0.80

Tested by

no test coverage detected