1 # -*- tab-width: 4; indent-tabs-mode: nil; py-indent-offset: 4 -*-
3 # This file is part of the LibreOffice project.
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/.
10 from uitest
.framework
import UITestCase
12 #Bug 123378 - Printing always sets "document modified" status
14 class tdf123378(UITestCase
):
15 def test_tdf123378_print_sets_modified(self
):
18 with self
.ui_test
.create_doc_in_start_center("writer") as document
:
20 self
.xUITest
.executeCommand(".uno:Print")
21 xDialog
= self
.xUITest
.getTopFocusWindow()
22 xOK
= xDialog
.getChild("cancel")
23 self
.ui_test
.close_dialog_through_button(xOK
)
25 self
.assertEqual(document
.isModified(), False)
27 # vim: set shiftwidth=4 softtabstop=4 expandtab: