[Libreoffice-commits] online.git: 2 commits - loolwsd/test
Tor Lillqvist
tml at collabora.com
Mon Sep 19 10:20:34 UTC 2016
loolwsd/test/httpwstest.cpp | 23 ++++++++++++-----------
1 file changed, 12 insertions(+), 11 deletions(-)
New commits:
commit 2f12308ca211d597b012159cf41f9bba16542b3e
Author: Tor Lillqvist <tml at collabora.com>
Date: Mon Sep 19 13:09:35 2016 +0300
Presumably a graphicviewselection: message is OK, too
Fixes the testInactiveClient unit test.
diff --git a/loolwsd/test/httpwstest.cpp b/loolwsd/test/httpwstest.cpp
index abadbb4..14ecd3d 100644
--- a/loolwsd/test/httpwstest.cpp
+++ b/loolwsd/test/httpwstest.cpp
@@ -1020,6 +1020,7 @@ void HTTPWSTest::testInactiveClient()
token == "cursorvisible:" ||
token == "editlock:" ||
token == "graphicselection:" ||
+ token == "graphicviewselection:" ||
token == "invalidatecursor:" ||
token == "invalidatetiles:" ||
token == "invalidateviewcursor:" ||
commit 1febbe72ae9f152ed7a37341392f880ebdcce93b
Author: Tor Lillqvist <tml at collabora.com>
Date: Mon Sep 19 13:09:12 2016 +0300
Sort lines for sanity
diff --git a/loolwsd/test/httpwstest.cpp b/loolwsd/test/httpwstest.cpp
index 37e03ec..abadbb4 100644
--- a/loolwsd/test/httpwstest.cpp
+++ b/loolwsd/test/httpwstest.cpp
@@ -1016,21 +1016,21 @@ void HTTPWSTest::testInactiveClient()
{
const auto token = LOOLProtocol::getFirstToken(msg);
CPPUNIT_ASSERT_MESSAGE("unexpected message: " + msg,
- token == "setpart:" ||
- token == "textselection:" ||
- token == "textselectionstart:" ||
- token == "textselectionend:" ||
- token == "invalidatetiles:" ||
- token == "invalidatecursor:" ||
- token == "statechanged:" ||
- token == "graphicselection:" ||
+ token == "addview:" ||
token == "cursorvisible:" ||
token == "editlock:" ||
- token == "addview:" ||
- token == "remview:" ||
+ token == "graphicselection:" ||
+ token == "invalidatecursor:" ||
+ token == "invalidatetiles:" ||
+ token == "invalidateviewcursor:" ||
token == "remallviews:" ||
+ token == "remview:" ||
+ token == "setpart:" ||
+ token == "statechanged:" ||
+ token == "textselection:" ||
+ token == "textselectionend:" ||
+ token == "textselectionstart:" ||
token == "textviewselection:" ||
- token == "invalidateviewcursor:" ||
token == "viewcursorvisible:");
// End when we get state changed.
More information about the Libreoffice-commits
mailing list