summaryrefslogtreecommitdiffstats
path: root/uitest
diff options
context:
space:
mode:
authorSaurav Chirania <saurav.chir@gmail.com>2018-07-03 21:37:01 +0530
committerSaurav Chirania <saurav.chir@gmail.com>2018-07-06 19:43:00 +0200
commit4914c03245983f913ecdd2a5d9682a05bca1fea7 (patch)
treea6f62a60a4bbd3003488724ca88dd8ac413f7a89 /uitest
parentHandle protection lock mark in Undo/Redo, tdf#68290 follow-up (diff)
downloadcore-4914c03245983f913ecdd2a5d9682a05bca1fea7.tar.gz
core-4914c03245983f913ecdd2a5d9682a05bca1fea7.zip
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@googlemail.com>
Diffstat (limited to 'uitest')
-rw-r--r--uitest/loginterpreter.py4
1 files changed, 3 insertions, 1 deletions
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 " + \