Merge pull request #41 from blackducksw/ubuntu_14
[ohcount] / test / unit / parsers / test_mxml.h
1
2 void test_mxml_comment_entities() {
3   test_parser_verify_entity(
4     test_parser_sourcefile("mxml", " <!--comment-->"),
5     "comment", "<!--comment-->"
6   );
7   test_parser_verify_entity(
8     test_parser_sourcefile("mxml", "<mx:Style>\n/*comment*/\n</mx:Style>"),
9     "comment", "/*comment*/"
10   );
11   test_parser_verify_entity(
12     test_parser_sourcefile("mxml", "<mx:Script>\n//comment\n</mx:Script>"),
13     "comment", "//comment"
14   );
15   test_parser_verify_entity(
16     test_parser_sourcefile("mxml", "<mx:Script>\n/*comment*/\n</mx:Script>"),
17     "comment", "/*comment*/"
18   );
19 }
20
21 void all_mxml_tests() {
22   test_mxml_comment_entities();
23 }