Merge pull request #41 from blackducksw/ubuntu_14
[ohcount] / test / unit / parsers / test_jsp.h
1
2 void test_jsp_comment() {
3   test_parser_verify_parse2(
4     test_parser_sourcefile("jsp", " <% //comment\n%>"),
5     "java", "", "<% //comment\n", 0,
6     "html", "%>", "", 0
7   );
8 }
9
10 void test_jsp_comment_entities() {
11   test_parser_verify_entity(
12     test_parser_sourcefile("jsp", " <!--comment-->"),
13     "comment", "<!--comment-->"
14   );
15   test_parser_verify_entity(
16     test_parser_sourcefile("jsp", "<style type='text/css'>\n/*comment*/\n</style>"),
17     "comment", "/*comment*/"
18   );
19   test_parser_verify_entity(
20     test_parser_sourcefile("jsp", "<%\n//comment\n%>"),
21     "comment", "//comment"
22   );
23   test_parser_verify_entity(
24     test_parser_sourcefile("jsp", "<%\n/*comment*/\n%>"),
25     "comment", "/*comment*/"
26   );
27 }
28
29 void all_jsp_tests() {
30   test_jsp_comment_entities();
31 }