Debian Codegraph @

sw/qa/uitest/writer_tests5/tdf123378.py

raw symbols SCIP
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
10 from uitest.framework import UITestCase
11
12 #Bug 123378 - Printing always sets "document modified" status
13
14 class tdf123378(UITestCase):
15 def test_tdf123378_print_sets_modified(self):
16 # FIXME unstable test
17 return
18 with self.ui_test.create_doc_in_start_center("writer") as document:
19
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)
24
25 self.assertEqual(document.isModified(), False)
26
27 # vim: set shiftwidth=4 softtabstop=4 expandtab: