| 1 |
# |
| 2 |
# This Source Code Form is subject to the terms of the Mozilla Public |
| 3 |
# License, v. 2.0. If a copy of the MPL was not distributed with this |
| 4 |
# file, You can obtain one at http://mozilla.org/MPL/2.0/. |
| 5 |
# |
| 6 |
|
| 7 |
from uitest.framework import UITestCase |
| 8 |
from uitest.uihelper.common import get_url_for_data_file |
| 9 |
import os |
| 10 |
|
| 11 |
|
| 12 |
# Test for sfx2/source/doc/objserv.cxx. |
| 13 |
class Test(UITestCase): |
| 14 |
|
| 15 |
def testPdfSigning(self): |
| 16 |
# test does not work with --disable-pdfimport config option |
| 17 |
if os.getenv('ENABLE_PDFIMPORT') != 'TRUE': |
| 18 |
return |
| 19 |
# Start Impress. |
| 20 |
with self.ui_test.load_file(get_url_for_data_file("pdf-sign.pdf")): |
| 21 |
|
| 22 |
# Now use File -> Digital signatures -> Digital signatures. |
| 23 |
with self.ui_test.execute_dialog_through_command(".uno:Signature", close_button="close"): |
| 24 |
# Without the accompanying fix in place, this test would have failed with: |
| 25 |
# uno.com.sun.star.uno.RuntimeException: Could not find child with id: close vcl/source/uitest/uiobject.cxx:452 |
| 26 |
pass |
| 27 |
|
| 28 |
# vim: set shiftwidth=4 softtabstop=4 expandtab: |