This commit is contained in:
Wilson Lin 2021-02-07 01:55:52 +11:00
parent 485db71ca6
commit 261f3f6461
1 changed files with 2 additions and 4 deletions

View File

@ -109,13 +109,11 @@ fn test_no_whitespace_minification() {
}
#[test]
fn test_root_closing_tag_omission() {
eval(b"<html></html>", b"<html>");
eval(b"<html>\n</html>", b"<html>");
eval(b" <html>\n</html>", b"<html>");
fn test_parsing_omitted_closing_tag() {
eval(b"<html>", b"<html>");
eval(b" <html>\n", b"<html>");
eval(b" <!doctype html> <html>\n", b"<!doctype html><html>");
eval(b"<!doctype html><html><div> <p>Foo</div></html>", b"<!doctype html><html><div><p>Foo</div>");
}
#[test]