diff options
author | Andreas Stöckel <astoecke@techfak.uni-bielefeld.de> | 2015-01-16 17:02:04 +0100 |
---|---|---|
committer | Andreas Stöckel <andreas@somweyr.de> | 2015-01-16 17:02:04 +0100 |
commit | 378ff2235fdf32983ebf2186a9127e51cbe8a0ab (patch) | |
tree | 12223877b7631dc2adc9d9d69cd7e31da079e27e /test | |
parent | 6c1288bd3746329c3721c6aca1fb0420061831c3 (diff) |
Allowing deferred resolution of Nodes
Diffstat (limited to 'test')
-rw-r--r-- | test/core/parser/StandaloneParserContext.hpp | 2 | ||||
-rw-r--r-- | test/plugins/css/CSSParserTest.cpp | 2 | ||||
-rw-r--r-- | test/plugins/xml/XmlParserTest.cpp | 8 |
3 files changed, 8 insertions, 4 deletions
diff --git a/test/core/parser/StandaloneParserContext.hpp b/test/core/parser/StandaloneParserContext.hpp index 0beacaf..64a245f 100644 --- a/test/core/parser/StandaloneParserContext.hpp +++ b/test/core/parser/StandaloneParserContext.hpp @@ -34,12 +34,10 @@ private: public: StandaloneParserContext() : ParserContext(scope, registry, logger, manager), - scope(nullptr), registry(logger){}; StandaloneParserContext(Logger &externalLogger) : ParserContext(scope, registry, externalLogger, manager), - scope(nullptr), registry(externalLogger){}; }; diff --git a/test/plugins/css/CSSParserTest.cpp b/test/plugins/css/CSSParserTest.cpp index ca21e79..54c359b 100644 --- a/test/plugins/css/CSSParserTest.cpp +++ b/test/plugins/css/CSSParserTest.cpp @@ -269,7 +269,7 @@ void assertException(std::string css) { ScopedLogger sl(logger, "test.css", SourceLocation{}, CharReader::contextCallback, &reader); - Scope scope(nullptr); + Scope scope; Registry registry(logger); Manager manager; ParserContext ctx{scope, registry, logger, manager}; diff --git a/test/plugins/xml/XmlParserTest.cpp b/test/plugins/xml/XmlParserTest.cpp index fd13cb9..ce53eb3 100644 --- a/test/plugins/xml/XmlParserTest.cpp +++ b/test/plugins/xml/XmlParserTest.cpp @@ -53,7 +53,13 @@ const char *TEST_DATA = " <head>\n" " <typesystem name=\"color\">\n" " <types>\n" - " <struct name=\"color\">\n" + " <struct name=\"blub\">\n" + " <field name=\"a\" type=\"int\"/>\n" + " </struct>\n" + " <struct name=\"color\" parent=\"blub\">\n" + " <field name=\"r\" type=\"int\"/>\n" + " <field name=\"g\" type=\"int\"/>\n" + " <field name=\"b\" type=\"int\"/>\n" " </struct>\n" " </types>\n" " </typesystem>\n" |