pike.git / lib / modules / Parser.pmod / XML.pmod / testsuite.in

version» Context lines:

pike.git/lib/modules/Parser.pmod/XML.pmod/testsuite.in:159:   test_eq([[Parser.XML.Tree.simple_parse_input(xmlblob)->render_xml()]], xmlblob)   test_eval_error([[Parser.XML.Tree.simple_parse_input(xmlblob, UNDEFINED,    Parser.XML.Tree.PARSE_ENABLE_NAMESPACES);]])   test_do([[add_constant("xmlblob", "<?xml version='1.0' encoding='utf-8'?><foo xml:lang='bar' xmlns='gazonk:' xmlns:invalid='http://www.w3.org/2000/xmlns/'/>");]])   test_eq([[Parser.XML.Tree.simple_parse_input(xmlblob)->render_xml()]], xmlblob)   test_eval_error([[Parser.XML.Tree.simple_parse_input(xmlblob, UNDEFINED,    Parser.XML.Tree.PARSE_ENABLE_NAMESPACES);]])      test_do([[add_constant("xmlblob");]])    + test_any([[ +  object o=Parser.XML.Tree.parse_input("<x><a/><b/><c/></x>"); +  o[0][1]->replace_node( ({ Parser.XML.Tree.ElementNode("q",([])), Parser.XML.Tree.ElementNode("r",([])) }) ); +  return (string)o; + ]], "<x><a/><q/><r/><c/></x>") +    // NSTree      // XML NS section 2      test_any_equal([[   object x=Parser.XML.NSTree.parse_input(#"   <x>    <!-- No namespace here. -->   </x>");   x=x[0];