[Libreoffice-commits] online.git: test/TileCacheTests.cpp
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Wed May 1 20:56:35 UTC 2019
test/TileCacheTests.cpp | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
New commits:
commit 98fb165c6918cfc8db2482d46fc3efdfe38478bf
Author: Michael Meeks <michael.meeks at collabora.com>
AuthorDate: Wed May 1 21:54:45 2019 +0100
Commit: Michael Meeks <michael.meeks at collabora.com>
CommitDate: Wed May 1 22:56:17 2019 +0200
Adapt test for new hiddenparts field.
Change-Id: Id2173a38167b97327d0735dfe2a8c88e2dcc4bc7
Reviewed-on: https://gerrit.libreoffice.org/71640
Reviewed-by: Michael Meeks <michael.meeks at collabora.com>
Tested-by: Michael Meeks <michael.meeks at collabora.com>
diff --git a/test/TileCacheTests.cpp b/test/TileCacheTests.cpp
index d6577f50a..7f8b0e63a 100644
--- a/test/TileCacheTests.cpp
+++ b/test/TileCacheTests.cpp
@@ -1041,7 +1041,10 @@ void TileCacheTests::checkTiles(std::shared_ptr<LOOLWebSocket>& socket, const st
std::getline(istr, line);
Poco::StringTokenizer tokens(line, " ", Poco::StringTokenizer::TOK_IGNORE_EMPTY | Poco::StringTokenizer::TOK_TRIM);
- CPPUNIT_ASSERT_EQUAL(static_cast<size_t>(6), tokens.count());
+ if (docType == "presentation" || docType == "spreadsheet") // extra hiddenparts="..."
+ CPPUNIT_ASSERT_EQUAL(static_cast<size_t>(7), tokens.count());
+ else
+ CPPUNIT_ASSERT_EQUAL(static_cast<size_t>(6), tokens.count());
// Expected format is something like 'type= parts= current= width= height='.
const std::string text = tokens[0].substr(type.size());
More information about the Libreoffice-commits
mailing list