Update git submodules
[LibreOffice.git] / sw / qa / python / set_expression.py
blob65f4b3de01d9599830749dd4c475bdd686925d61
1 #! /usr/bin/env python
2 # -*- tab-width: 4; indent-tabs-mode: nil; py-indent-offset: 4 -*-
4 # This file is part of the LibreOffice project.
6 # This Source Code Form is subject to the terms of the Mozilla Public
7 # License, v. 2.0. If a copy of the MPL was not distributed with this
8 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
10 import unittest
11 from org.libreoffice.unotest import UnoInProcess
14 # @unittest.skip("that seems to work")
15 class TestSetExpression(unittest.TestCase):
17 @classmethod
18 def setUpClass(cls):
19 cls._uno = UnoInProcess()
20 cls._uno.setUp()
22 @classmethod
23 def tearDownClass(cls):
24 cls._uno.tearDown()
26 def test_set_expression(self):
27 xDoc = self.__class__._uno.openEmptyWriterDoc()
28 self.__class__._uno.checkProperties(
29 xDoc.createInstance("com.sun.star.text.textfield.SetExpression"),
30 {"Content": "foo",
31 "CurrentPresentation": "bar",
32 "NumberFormat": 0,
33 "NumberingType": 0,
34 "IsShowFormula": False,
35 "IsInput": False,
36 "IsVisible": True,
37 "SequenceValue": 0,
38 "SubType": 0,
39 "Value": 1.0,
40 "IsFixedLanguage": False
42 self
45 if __name__ == '__main__':
46 unittest.main()