summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAshod Nakashian <ashod.nakashian@collabora.co.uk>2019-10-16 09:12:02 -0400
committerAshod Nakashian <ashnakash@gmail.com>2019-10-29 01:43:17 +0100
commit10ffdc1e4a64c0ee2f15d781fdd13e18d2779565 (patch)
treead183af91a3cd5977bd661060d79647d52b05146 /test
parent8a06ad83e473e3f0b34e83a7ba4e45bebd0bdaeb (diff)
testSaveOnDisconnect: sync after pasting and better logging
Reviewed-on: https://gerrit.libreoffice.org/80898 Reviewed-by: Andras Timar <andras.timar@collabora.com> Tested-by: Andras Timar <andras.timar@collabora.com> (cherry picked from commit 230fcd2f07192f30fb6d6671d905800fde71495e) Change-Id: Iaacbe0bdc6a7ba88d2f09c343d9579315033acbb Reviewed-on: https://gerrit.libreoffice.org/81569 Reviewed-by: Ashod Nakashian <ashnakash@gmail.com> Tested-by: Ashod Nakashian <ashnakash@gmail.com>
Diffstat (limited to 'test')
-rw-r--r--test/httpwstest.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/httpwstest.cpp b/test/httpwstest.cpp
index f13e21582..d9a4727cf 100644
--- a/test/httpwstest.cpp
+++ b/test/httpwstest.cpp
@@ -591,7 +591,7 @@ void HTTPWSTest::testSaveOnDisconnect()
void HTTPWSTest::testSavePassiveOnDisconnect()
{
- const char* testname = "saveOnPassiveDisconnect ";
+ const char* testname = "savePassiveOnDisconnect ";
const std::string text = helpers::genRandomString(40);
TST_LOG("Test string: [" << text << "].");
@@ -785,7 +785,8 @@ void HTTPWSTest::testLargePaste()
const std::string documentContents = oss.str();
TST_LOG("Pasting " << documentContents.size() << " characters into document.");
- sendTextFrame(socket, "paste mimetype=text/html\n" + documentContents, testname);
+ sendTextFrame(socket, "paste mimetype=text/plain;charset=utf-8\n" + documentContents, testname);
+ getResponseString(socket, "textselection:", testname, 1000);
// Check if the server is still alive.
// This resulted first in a hang, as respose for the message never arrived, then a bit later in a Poco::TimeoutException.