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

Function test_empty

core/src/renderer/html/parser.rs:736–744  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

734
735 #[test]
736 fn test_empty() {
737 let browser = Browser::new();
738 let html = "".to_string();
739 let t = HtmlTokenizer::new(Rc::downgrade(&browser), html);
740 let window = HtmlParser::new(Rc::downgrade(&browser), t).construct_tree();
741 let expected = Rc::new(RefCell::new(Node::new(NodeKind::Document)));
742
743 assert_eq!(expected, window.borrow().document());
744 }
745
746 #[test]
747 fn test_body() {

Callers

nothing calls this directly

Calls 2

to_stringMethod · 0.80
construct_treeMethod · 0.80

Tested by

no test coverage detected