bump product version to 7.6.3.2-android
[LibreOffice.git] / uitest / libreoffice / calc / paste_special.py
blob6f153ad14c8653c0302e789f280a319abac1ca9c
1 # -*- tab-width: 4; indent-tabs-mode: nil; py-indent-offset: 4 -*-
3 # This Source Code Form is subject to the terms of the Mozilla Public
4 # License, v. 2.0. If a copy of the MPL was not distributed with this
5 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 from uitest.uihelper.common import get_state_as_dict
10 def reset_default_values(UITestCase, xDialog):
11 setToFalse = ['paste_all', 'formats', 'comments', 'objects', 'formulas',
12 'link', 'transpose', 'skip_empty']
13 for childName in setToFalse:
14 xChild = xDialog.getChild(childName)
15 if get_state_as_dict(xChild)['Selected'] == 'true':
16 xChild.executeAction("CLICK", tuple())
17 UITestCase.assertEqual('false', get_state_as_dict(xChild)['Selected'])
19 setToTrue = ['text', 'numbers', 'datetime', 'cbImmediately']
20 for childName in setToTrue:
21 xChild = xDialog.getChild(childName)
22 if get_state_as_dict(xChild)['Selected'] == 'false':
23 xChild.executeAction("CLICK", tuple())
24 UITestCase.assertEqual('true', get_state_as_dict(xChild)['Selected'])
26 setToCheck = ['none', 'no_shift']
27 for childName in setToCheck:
28 xChild = xDialog.getChild(childName)
29 xChild.executeAction("CLICK", tuple())
30 UITestCase.assertEqual('true', get_state_as_dict(xChild)['Checked'])