[Libreoffice-commits] online.git: test/UnitWOPISaveAs.cpp

Ashod Nakashian (via logerrit) logerrit at kemper.freedesktop.org
Thu Mar 12 12:19:56 UTC 2020


 test/UnitWOPISaveAs.cpp |    9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

New commits:
commit d8a9e11ad9644f447f6daa6d8905c31196889b87
Author:     Ashod Nakashian <ashod.nakashian at collabora.co.uk>
AuthorDate: Sun Mar 8 14:26:07 2020 -0400
Commit:     Ashod Nakashian <ashnakash at gmail.com>
CommitDate: Thu Mar 12 13:19:38 2020 +0100

    wsd: fix UnitWOPISaveAs test
    
    Change-Id: I63da82da727e2902fdb35ff31b29df8c77976793
    Reviewed-on: https://gerrit.libreoffice.org/c/online/+/90355
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
    Reviewed-by: Ashod Nakashian <ashnakash at gmail.com>

diff --git a/test/UnitWOPISaveAs.cpp b/test/UnitWOPISaveAs.cpp
index ad79f4b59..2831aa543 100644
--- a/test/UnitWOPISaveAs.cpp
+++ b/test/UnitWOPISaveAs.cpp
@@ -45,13 +45,20 @@ public:
     {
         const std::string message(data, len);
 
-        const std::string expected("saveas: url=" + helpers::getTestServerURI() + "/something%20wopi/files/1?access_token=anything filename=hello%20world%251.pdf");
+        const std::string expected(
+            "saveas: url=" + helpers::getTestServerURI()
+            + "/something%20wopi/files/1?access_token=anything&reuse_cookies=cook=well "
+              "filename=hello%20world%251.pdf xfilename=hello world%1.pdf");
         if (message.find(expected) == 0)
         {
             // successfully exit the test if we also got the outgoing message
             // notifying about saving the file
             exitTest(TestResult::Ok);
         }
+        else
+        {
+            LOG_DBG("UnitWOPISaveAs: Skipping unexpected SendMessage: " << message);
+        }
 
         return false;
     }


More information about the Libreoffice-commits mailing list