Skip to content
Snippets Groups Projects
Commit 44ae8c22 authored by Martin Stjernholm's avatar Martin Stjernholm
Browse files

Added some tests for ignore_tags.

Rev: src/modules/Parser/testsuite.in:1.31
parent bf980a53
No related branches found
No related tags found
No related merge requests found
......@@ -897,3 +897,19 @@ test_any([[{
p->add_tag ("/t", "T");
return p->finish("</t>")->read();
}]], "T");
test_any([[{
object p = Parser.HTML();
p->add_tag ("t", "T");
p->add_container ("c", "C");
p->add_entity ("e", "E");
p->ignore_tags (1);
return p->finish("<t &e;><&e;><c>&e;</c><t>")->read();
}]], "<t E><E><c>E</c><t>");
test_any([[{
object p = Parser.HTML();
p->add_tag ("t", "T");
p->add_container ("c", "C");
p->add_entity ("e", "E");
p->ignore_tags (1);
return p->clone()->finish("<t &e;><&e;><c>&e;</c><t>")->read();
}]], "<t E><E><c>E</c><t>");
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment