summaryrefslogtreecommitdiff
path: root/test/plugins/xml
diff options
context:
space:
mode:
authorAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2015-01-30 18:19:53 +0100
committerAndreas Stöckel <andreas@somweyr.de>2015-01-30 18:19:53 +0100
commit126547c380b32a71178a8dca47c7f0a5849bc26c (patch)
treef6979d7220ad3a3533985998abe3360b64fb1f94 /test/plugins/xml
parent5bd8ef6015e3033013eb89bc408f3105e70b61d9 (diff)
XmlParser for more stuff
Diffstat (limited to 'test/plugins/xml')
-rw-r--r--test/plugins/xml/XmlParserTest.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/test/plugins/xml/XmlParserTest.cpp b/test/plugins/xml/XmlParserTest.cpp
index 6ac962d..2b352fd 100644
--- a/test/plugins/xml/XmlParserTest.cpp
+++ b/test/plugins/xml/XmlParserTest.cpp
@@ -33,6 +33,7 @@ namespace ousia {
namespace RttiTypes {
extern const Rtti Document;
+extern const Rtti Domain;
extern const Rtti Typesystem;
}
@@ -46,9 +47,10 @@ struct XmlStandaloneEnvironment : public StandaloneEnvironment {
fileLocator.addUnittestSearchPath("xmlparser");
registry.registerDefaultExtensions();
- registry.registerParser({"text/vnd.ousia.oxm", "text/vnd.ousia.oxd"},
- {&RttiTypes::Document, &RttiTypes::Typesystem},
- &xmlParser);
+ registry.registerParser(
+ {"text/vnd.ousia.oxm", "text/vnd.ousia.oxd"},
+ {&RttiTypes::Document, &RttiTypes::Typesystem, &RttiTypes::Domain},
+ &xmlParser);
registry.registerResourceLocator(&fileLocator);
}
};
@@ -65,7 +67,7 @@ TEST(XmlParser, mismatchedTag)
TEST(XmlParser, generic)
{
XmlStandaloneEnvironment env(logger);
- env.parse("generic.oxm", "", "", RttiSet{&RttiTypes::Typesystem});
+ env.parse("generic.oxm", "", "", RttiSet{&RttiTypes::Node});
#ifdef MANAGER_GRAPHVIZ_EXPORT
env.manager.exportGraphviz("xmlDocument.dot");
#endif