| 1 |
# -*- tab-width: 4; indent-tabs-mode: nil; py-indent-offset: 4 -*- |
| 2 |
# |
| 3 |
# This file is part of the LibreOffice project. |
| 4 |
# |
| 5 |
# This Source Code Form is subject to the terms of the Mozilla Public |
| 6 |
# License, v. 2.0. If a copy of the MPL was not distributed with this |
| 7 |
# file, You can obtain one at http://mozilla.org/MPL/2.0/. |
| 8 |
# |
| 9 |
from uitest.framework import UITestCase |
| 10 |
|
| 11 |
class tdf141708(UITestCase): |
| 12 |
|
| 13 |
def test_tdf141708(self): |
| 14 |
|
| 15 |
with self.ui_test.create_doc_in_start_center("impress"): |
| 16 |
|
| 17 |
xTemplateDlg = self.xUITest.getTopFocusWindow() |
| 18 |
xCancelBtn = xTemplateDlg.getChild("close") |
| 19 |
self.ui_test.close_dialog_through_button(xCancelBtn) |
| 20 |
|
| 21 |
self.xUITest.executeCommand(".uno:Navigator") |
| 22 |
|
| 23 |
self.xUITest.executeCommand(".uno:CloseDoc") |
| 24 |
|
| 25 |
with self.ui_test.create_doc_in_start_center("impress"): |
| 26 |
|
| 27 |
xTemplateDlg = self.xUITest.getTopFocusWindow() |
| 28 |
xCancelBtn = xTemplateDlg.getChild("close") |
| 29 |
self.ui_test.close_dialog_through_button(xCancelBtn) |
| 30 |
|
| 31 |
# Without the fix in place, this test would have crashed here |
| 32 |
|
| 33 |
# vim: set shiftwidth=4 softtabstop=4 expandtab: |