From 894013f5b275673b8130e265fa4c67040f036f1e Mon Sep 17 00:00:00 2001 From: Andreas Stöckel Date: Fri, 23 Jan 2015 15:29:35 +0100 Subject: Fixed unit tests according to new SourceLocation --- test/plugins/css/CSSParserTest.cpp | 3 +-- test/plugins/xml/XmlParserTest.cpp | 3 --- 2 files changed, 1 insertion(+), 5 deletions(-) (limited to 'test/plugins') diff --git a/test/plugins/css/CSSParserTest.cpp b/test/plugins/css/CSSParserTest.cpp index 774c345..420241e 100644 --- a/test/plugins/css/CSSParserTest.cpp +++ b/test/plugins/css/CSSParserTest.cpp @@ -266,8 +266,7 @@ void assertException(std::string css) CharReader reader(css); TerminalLogger logger(std::cerr, true); { - ScopedLogger sl(logger, "test.css", SourceLocation{}, - CharReader::contextCallback, &reader); + ScopedLogger sl(logger); StandaloneParserContext ctx(sl); CSSParser instance; diff --git a/test/plugins/xml/XmlParserTest.cpp b/test/plugins/xml/XmlParserTest.cpp index 7785ae2..52b64e5 100644 --- a/test/plugins/xml/XmlParserTest.cpp +++ b/test/plugins/xml/XmlParserTest.cpp @@ -40,7 +40,6 @@ TEST(XmlParser, mismatchedTagException) p.parse("\n", ctx.context); } catch (LoggableException ex) { - ASSERT_EQ(2, ex.loc.line); hadException = true; } ASSERT_TRUE(hadException); @@ -81,8 +80,6 @@ TEST(XmlParser, namespaces) XmlParser p; CharReader reader(TEST_DATA); { - ScopedLogger sl(logger, "test.oxd", SourceLocation{}, - CharReader::contextCallback, &reader); try { p.parse(TEST_DATA, ctx.context); } -- cgit v1.2.3