Merge pull request #41 from blackducksw/ubuntu_14
[ohcount] / test / unit / parsers / test_html.h
1
2 void test_html_comment_entities() {
3   test_parser_verify_entity(
4     test_parser_sourcefile("html", " <!--comment-->"),
5     "comment", "<!--comment-->"
6   );
7   test_parser_verify_entity(
8     test_parser_sourcefile("html", "<style type='text/css'>\n/*comment*/\n</style>"),
9     "comment", "/*comment*/"
10   );
11   test_parser_verify_entity(
12     test_parser_sourcefile("html", "<script type='text/javascript'>\n//comment\n</script>"),
13     "comment", "//comment"
14   );
15   test_parser_verify_entity(
16     test_parser_sourcefile("html", "<script type='text/javascript'>\n/*comment*/\n</script>"),
17     "comment", "/*comment*/"
18   );
19 }
20
21 void all_html_tests() {
22   test_html_comment_entities();
23 }