Package list ohcount / 4fa67836-5fea-4473-87e4-bd80a2d5b1ae/main test / unit / parsers / test_html.h
4fa67836-5fea-4473-87e4-bd80a2d5b1ae/main

Tree @4fa67836-5fea-4473-87e4-bd80a2d5b1ae/main (Download .tar.gz)

test_html.h @4fa67836-5fea-4473-87e4-bd80a2d5b1ae/mainraw · history · blame

void test_html_comment_entities() {
  test_parser_verify_entity(
    test_parser_sourcefile("html", " <!--comment-->"),
    "comment", "<!--comment-->"
  );
  test_parser_verify_entity(
    test_parser_sourcefile("html", "<style type='text/css'>\n/*comment*/\n</style>"),
    "comment", "/*comment*/"
  );
  test_parser_verify_entity(
    test_parser_sourcefile("html", "<script type='text/javascript'>\n//comment\n</script>"),
    "comment", "//comment"
  );
  test_parser_verify_entity(
    test_parser_sourcefile("html", "<script type='text/javascript'>\n/*comment*/\n</script>"),
    "comment", "/*comment*/"
  );
}

void all_html_tests() {
  test_html_comment_entities();
}