| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
from uitest.framework import UITestCase |
| 11 |
from uitest.uihelper.common import get_state_as_dict, get_url_for_data_file |
| 12 |
|
| 13 |
class tdf131936(UITestCase): |
| 14 |
|
| 15 |
def test_tdf131936_saveas_docx_version(self): |
| 16 |
with self.ui_test.load_file(get_url_for_data_file("tdf131936.docx")): |
| 17 |
|
| 18 |
with self.ui_test.execute_dialog_through_command(".uno:SaveAs", close_button="cancel") as xDialog: |
| 19 |
xFileTypeCombo = xDialog.getChild("file_type") |
| 20 |
state = get_state_as_dict(xFileTypeCombo) |
| 21 |
self.assertEqual(state["SelectEntryText"], "Word 2010–365 Document (.docx)") |
| 22 |
|
| 23 |
|
| 24 |
|