diff options
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() |