summaryrefslogtreecommitdiff
path: root/uitest
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-06-22 06:33:12 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-06-22 18:19:35 +0200
commit16e6889e6291d22f4f8f44f2701e8b315d04a084 (patch)
tree690ff1c72cfae5bf588616b63b7a688a11d9968d /uitest
parentf928a9983423be545583269cb8274e9bfc7cf95d (diff)
uitest: remove sleeps and prints from calc demo
These sleeps are only necessary when you want to run them non-headless and see what is actually happening. Change-Id: I20bd80c680c8569bc3c885f261e03db494afee06
Diffstat (limited to 'uitest')
-rw-r--r--uitest/calc_tests/create_chart.py21
-rw-r--r--uitest/calc_tests/gridwindow.py4
2 files changed, 0 insertions, 25 deletions
diff --git a/uitest/calc_tests/create_chart.py b/uitest/calc_tests/create_chart.py
index 6db4d58d474c..1bd82767bfe2 100644
--- a/uitest/calc_tests/create_chart.py
+++ b/uitest/calc_tests/create_chart.py
@@ -69,14 +69,10 @@ class CalcChartUIDemo(UITestCase):
self.ui_test.execute_dialog_through_command(".uno:InsertObjectChart")
xChartDlg = self.xUITest.getTopFocusWindow()
- print(xChartDlg.getChildren())
- time.sleep(2)
xOkBtn = xChartDlg.getChild("finish")
xOkBtn.executeAction("CLICK", tuple())
- time.sleep(2)
-
self.ui_test.close_doc()
def test_create_from_second_page(self):
@@ -88,31 +84,19 @@ class CalcChartUIDemo(UITestCase):
self.ui_test.execute_dialog_through_command(".uno:InsertObjectChart")
xChartDlg = self.xUITest.getTopFocusWindow()
- print(xChartDlg.getChildren())
- time.sleep(2)
xNextBtn = xChartDlg.getChild("next")
xNextBtn.executeAction("CLICK", tuple())
- print(xChartDlg.getChildren())
-
- time.sleep(2)
-
xDataInRows = xChartDlg.getChild("RB_DATAROWS")
xDataInRows.executeAction("CLICK", tuple())
- time.sleep(2)
-
xDataInCols = xChartDlg.getChild("RB_DATACOLS")
xDataInCols.executeAction("CLICK", tuple())
- time.sleep(2)
-
xCancelBtn = xChartDlg.getChild("finish")
xCancelBtn.executeAction("CLICK", tuple())
- time.sleep(5)
-
self.ui_test.close_doc()
def test_deselect_chart(self):
@@ -154,13 +138,9 @@ class CalcChartUIDemo(UITestCase):
xGridWindow.executeAction("DESELECT", mkPropertyValues({"OBJECT": ""}))
- time.sleep(2)
-
xGridWindow.executeAction("SELECT", mkPropertyValues({"OBJECT": "Object 1"}))
xGridWindow.executeAction("ACTIVATE", tuple())
- time.sleep(2)
-
xGridWindow.executeAction("DESELECT", mkPropertyValues({"OBJECT": ""}))
self.ui_test.close_doc()
@@ -187,7 +167,6 @@ class CalcChartUIDemo(UITestCase):
xGridWindow.executeAction("ACTIVATE", tuple())
xCalcDoc = self.xUITest.getTopFocusWindow()
- print(xCalcDoc.getChildren())
self.ui_test.close_doc()
# vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/uitest/calc_tests/gridwindow.py b/uitest/calc_tests/gridwindow.py
index 1b63fe544fee..c3b2d1d4179c 100644
--- a/uitest/calc_tests/gridwindow.py
+++ b/uitest/calc_tests/gridwindow.py
@@ -37,8 +37,6 @@ class GridWindowTest(UITestCase):
enter_text_to_cell(xGridWindow, "C3", "=A1")
enter_text_to_cell(xGridWindow, "A1", "2")
- time.sleep(2)
-
self.ui_test.close_doc()
def test_special_keys(self):
@@ -54,8 +52,6 @@ class GridWindowTest(UITestCase):
typeProps = mkPropertyValues({"KEYCODE": "CTRL+DOWN"})
xGridWindow.executeAction("TYPE", typeProps)
- time.sleep(2)
-
self.ui_test.close_doc()
# vim:set shiftwidth=4 softtabstop=4 expandtab: */