Skip to content
Snippets Groups Projects
Commit b621f404 authored by Marcus Wellhardh's avatar Marcus Wellhardh
Browse files

Added testcase for _set_tag_callback.

Rev: src/modules/Parser/testsuite.in:1.26
parent 00689d95
No related branches found
No related tags found
No related merge requests found
......@@ -122,6 +122,17 @@ test_any([[
"\'");
return p->finish ("<t> <!-- <t a='> -- --> <!-<t a='> -->")->read();
]], "x [ <t a='> -- ] {<t a=} -->");
test_any_equal([[
object p = Parser.HTML();
array a = ({ });
p->_set_tag_callback (
lambda (object p, string str) {
a += ({ p->tag_name() });
return 0;
});
p->finish("<t>x</t>");
return a;
]], ({ "t", "/t" }));
// Current context functions
test_any([[{
......
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