mirror of
https://github.com/libexpat/libexpat.git
synced 2025-04-13 08:02:56 +00:00
Test that Doctype with an extra ID is rejected
This commit is contained in:
parent
cb16ead042
commit
e5c61fed18
1 changed files with 9 additions and 0 deletions
|
@ -6722,6 +6722,14 @@ START_TEST(test_short_doctype_3)
|
|||
}
|
||||
END_TEST
|
||||
|
||||
START_TEST(test_long_doctype)
|
||||
{
|
||||
const char *text = "<!DOCTYPE doc PUBLIC 'foo' 'bar' 'baz'></doc>";
|
||||
expect_failure(text, XML_ERROR_SYNTAX,
|
||||
"DOCTYPE with extra ID not rejected");
|
||||
}
|
||||
END_TEST
|
||||
|
||||
/*
|
||||
* Namespaces tests.
|
||||
*/
|
||||
|
@ -12208,6 +12216,7 @@ make_suite(void)
|
|||
tcase_add_test(tc_basic, test_short_doctype);
|
||||
tcase_add_test(tc_basic, test_short_doctype_2);
|
||||
tcase_add_test(tc_basic, test_short_doctype_3);
|
||||
tcase_add_test(tc_basic, test_long_doctype);
|
||||
|
||||
suite_add_tcase(s, tc_namespace);
|
||||
tcase_add_checked_fixture(tc_namespace,
|
||||
|
|
Loading…
Add table
Reference in a new issue