diff options
Diffstat (limited to 'test/plugins')
-rw-r--r-- | test/plugins/css/CSSParserTest.cpp | 2 | ||||
-rw-r--r-- | test/plugins/xml/XmlParserTest.cpp | 8 |
2 files changed, 8 insertions, 2 deletions
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" |