[Libreoffice-commits] core.git: uitest/loginterpreter.py

Saurav Chirania saurav.chir at gmail.com
Fri Jul 6 17:43:29 UTC 2018


 uitest/loginterpreter.py |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit 4914c03245983f913ecdd2a5d9682a05bca1fea7
Author: Saurav Chirania <saurav.chir at gmail.com>
Date:   Tue Jul 3 21:37:01 2018 +0530

    uitest interpreter: handle when parent is empty string
    
    Change-Id: I439e2679ce46872f34e095b7f05fa19d404d2c00
    Reviewed-on: https://gerrit.libreoffice.org/56887
    Tested-by: Jenkins
    Reviewed-by: Markus Mohrhard <markus.mohrhard at googlemail.com>

diff --git a/uitest/loginterpreter.py b/uitest/loginterpreter.py
index ccc805056a7b..93f391edbfa0 100644
--- a/uitest/loginterpreter.py
+++ b/uitest/loginterpreter.py
@@ -118,7 +118,9 @@ def get_test_line_from_one_log_line(log_line):
             action_dict["Id"][:-4] +"\")\n        MainWindow = " + \
             "self.xUITest.getTopFocusWindow()\n"
             return test_line
-        elif (parent != ""):
+        else:
+            if (parent == ""):
+                parent = "MainWindow"
             test_line += \
             action_dict["Id"] + " = " + parent + ".getChild(\"" + \
             action_dict["Id"] + "\")\n        " + \


More information about the Libreoffice-commits mailing list