diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2020-12-16 16:16:58 +0100 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2020-12-16 19:54:26 +0100 |
commit | e4fd4e9489ea3433b913e2774ea0bacac93bee5b (patch) | |
tree | 5519508224ea2c83b9d3e6068d47dc7837e160d4 /uitest/impress_tests/start.py | |
parent | bf858e4b224ae4dc04f968a3d3c66d184dd1e33d (diff) |
uitest: sd: fix GOTO
pages count starts from 0
Change-Id: I31ce182af1bccf9b129e9c0f2f409ee81419902b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107840
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'uitest/impress_tests/start.py')
-rw-r--r-- | uitest/impress_tests/start.py | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/uitest/impress_tests/start.py b/uitest/impress_tests/start.py index de7a6ece7247..cf3610af3ab0 100644 --- a/uitest/impress_tests/start.py +++ b/uitest/impress_tests/start.py @@ -6,13 +6,9 @@ # from uitest.uihelper.common import get_state_as_dict - from libreoffice.uno.propertyvalue import mkPropertyValues - from uitest.framework import UITestCase -import time - class SimpleImpressTest(UITestCase): def test_start_impress(self): @@ -41,7 +37,15 @@ class SimpleImpressTest(UITestCase): xEditWin = xImpressDoc.getChild("impress_win") - xEditWin.executeAction("GOTO", mkPropertyValues({"PAGE": "2"})) + self.assertEqual(get_state_as_dict(xEditWin)["CurrentSlide"], "1") + + self.xUITest.executeCommand(".uno:InsertPage") + + self.assertEqual(get_state_as_dict(xEditWin)["CurrentSlide"], "2") + + xEditWin.executeAction("GOTO", mkPropertyValues({"PAGE": "1"})) + + self.assertEqual(get_state_as_dict(xEditWin)["CurrentSlide"], "1") self.ui_test.close_doc() |