]> granicus.if.org Git - libexpat/commitdiff
Extend coverage to XML_{Start|End}DoctypeDeclHandler
authorRhodri James <rhodri@kynesim.co.uk>
Mon, 6 Feb 2017 16:27:09 +0000 (16:27 +0000)
committerSebastian Pipping <sebastian@pipping.org>
Sun, 5 Mar 2017 21:04:08 +0000 (22:04 +0100)
expat/tests/runtests.c

index 44269be19ef771ef7df166dceb2f59a151e58b4e..a5e30ee76933dd142c254d98fc0b648c55cb2857 100644 (file)
@@ -1063,9 +1063,8 @@ START_TEST(test_dtd_default_handling)
         "]><doc/>";
 
     XML_SetDefaultHandler(parser, accumulate_characters);
-    XML_SetDoctypeDeclHandler(parser,
-                              dummy_start_doctype_handler,
-                              dummy_end_doctype_handler);
+    XML_SetStartDoctypeDeclHandler(parser, dummy_start_doctype_handler);
+    XML_SetEndDoctypeDeclHandler(parser, dummy_end_doctype_handler);
     XML_SetEntityDeclHandler(parser, dummy_entity_decl_handler);
     XML_SetNotationDeclHandler(parser, dummy_notation_decl_handler);
     XML_SetElementDeclHandler(parser, dummy_element_decl_handler);