| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
from uitest.framework import UITestCase |
| 10 |
from uitest.uihelper.common import select_by_text |
| 11 |
from uitest.uihelper.common import get_state_as_dict |
| 12 |
from libreoffice.uno.propertyvalue import mkPropertyValues |
| 13 |
|
| 14 |
|
| 15 |
class tdf165846(UITestCase): |
| 16 |
def test_tdf165846_nu_min_value(self): |
| 17 |
with self.ui_test.create_doc_in_start_center("calc"): |
| 18 |
with self.ui_test.execute_modeless_dialog_through_command(".uno:RandomNumberGeneratorDialog") as xDialog: |
| 19 |
|
| 20 |
xDistributionCombo = xDialog.getChild("distribution-combo") |
| 21 |
select_by_text(xDistributionCombo, "Chi Squared") |
| 22 |
|
| 23 |
|
| 24 |
xParameter1Spin = xDialog.getChild("parameter1-spin") |
| 25 |
xParameter1Spin.executeAction("TYPE", mkPropertyValues({"KEYCODE":"CTRL+A"})) |
| 26 |
xParameter1Spin.executeAction("DOWN", tuple()) |
| 27 |
|
| 28 |
|
| 29 |
|
| 30 |
self.assertEqual("0.0001", get_state_as_dict(xParameter1Spin)["Text"]) |
| 31 |
|
| 32 |
|