Add other tests to check_change_color
Add tests for GridColor and FootnoteLineColor Change-Id: Ia1112cbff5fd77ae1fa83fac362e917eb35f530d Reviewed-on: https://gerrit.libreoffice.org/24001 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: jan iversen <jani@documentfoundation.org>
This commit is contained in:
parent
7c99b5586d
commit
7f29612cf0
1 changed files with 7 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
||||||
import unittest
|
import unittest
|
||||||
from org.libreoffice.unotest import UnoInProcess
|
from org.libreoffice.unotest import UnoInProcess
|
||||||
|
|
||||||
|
|
||||||
class CheckChangeColor(unittest.TestCase):
|
class CheckChangeColor(unittest.TestCase):
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
@ -25,5 +26,11 @@ class CheckChangeColor(unittest.TestCase):
|
||||||
self.assertEqual(xPageStyle.BackColor, 0x000000FF)
|
self.assertEqual(xPageStyle.BackColor, 0x000000FF)
|
||||||
self.assertEqual(xPageStyle.IsLandscape, True)
|
self.assertEqual(xPageStyle.IsLandscape, True)
|
||||||
|
|
||||||
|
xPageStyle.setPropertyValue("GridColor", 0x000000FF)
|
||||||
|
self.assertEqual(xPageStyle.GridColor, 0x000000FF)
|
||||||
|
|
||||||
|
xPageStyle.setPropertyValue("FootnoteLineColor", 0x000000FF)
|
||||||
|
self.assertEqual(xPageStyle.FootnoteLineColor, 0x000000FF)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
unittest.main()
|
unittest.main()
|
||||||
|
|
Loading…
Reference in a new issue