Add default handlers to character entity tests to extend coverage

This commit is contained in:
Rhodri James 2017-02-14 16:40:55 +00:00 committed by Sebastian Pipping
parent dabb530d17
commit e92f989efe

View File

@ -580,6 +580,13 @@ START_TEST(test_latin1_umlauts)
run_character_check(text, utf8);
XML_ParserReset(parser, NULL);
run_attribute_check(text, utf8);
/* Repeat with a default handler */
XML_ParserReset(parser, NULL);
XML_SetDefaultHandler(parser, dummy_default_handler);
run_character_check(text, utf8);
XML_ParserReset(parser, NULL);
XML_SetDefaultHandler(parser, dummy_default_handler);
run_attribute_check(text, utf8);
}
END_TEST