summaryrefslogtreecommitdiff
path: root/uitest
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2020-03-16 19:30:30 +0100
committerXisco FaulĂ­ <xiscofauli@libreoffice.org>2020-03-16 22:02:39 +0100
commitbc6eb8e096416d42d2308a529d5c0d81778dca60 (patch)
tree635266defa04a89680e4ff147eb837a8b3e25851 /uitest
parent036820d685c3a76c7fbfe35f47ab7b133e8a55af (diff)
uitest: use hex instead of int for colors
Change-Id: I7309a546546637a1837df8ac99807c2deb22c72a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90589 Tested-by: Jenkins Reviewed-by: Xisco FaulĂ­ <xiscofauli@libreoffice.org>
Diffstat (limited to 'uitest')
-rw-r--r--uitest/impress_tests/backgrounds.py8
-rw-r--r--uitest/writer_tests1/pageDialog.py8
2 files changed, 9 insertions, 7 deletions
diff --git a/uitest/impress_tests/backgrounds.py b/uitest/impress_tests/backgrounds.py
index b0c36db36ab4..6e2493b063f1 100644
--- a/uitest/impress_tests/backgrounds.py
+++ b/uitest/impress_tests/backgrounds.py
@@ -18,13 +18,15 @@ class ImpressBackgrounds(UITestCase):
if btn == 'btnnone':
self.assertEqual(document.DrawPages.getByIndex(0).Background, None)
elif btn == 'btncolor':
- self.assertEqual(document.DrawPages.getByIndex(0).Background.FillColor, 7512015)
- self.assertEqual(document.DrawPages.getByIndex(0).Background.FillColor, 7512015)
+ self.assertEqual(
+ hex(document.DrawPages.getByIndex(0).Background.FillColor), '0x729fcf')
+ self.assertEqual(
+ hex(document.DrawPages.getByIndex(0).Background.FillColor), '0x729fcf')
elif btn == 'btngradient':
self.assertEqual(
document.DrawPages.getByIndex(0).Background.FillGradient.Style, LINEAR)
self.assertEqual(
- document.DrawPages.getByIndex(0).Background.FillGradient.StartColor, 14543051)
+ hex(document.DrawPages.getByIndex(0).Background.FillGradient.StartColor), '0xdde8cb')
self.assertEqual(
document.DrawPages.getByIndex(0).Background.FillGradient.Angle, 300)
self.assertEqual(
diff --git a/uitest/writer_tests1/pageDialog.py b/uitest/writer_tests1/pageDialog.py
index 233c269d891f..73e523444c6e 100644
--- a/uitest/writer_tests1/pageDialog.py
+++ b/uitest/writer_tests1/pageDialog.py
@@ -36,16 +36,16 @@ class WriterPageDialog(UITestCase):
document.StyleFamilies.PageStyles.Standard.BackColor, -1)
elif btn == 'btncolor':
self.assertEqual(
- document.StyleFamilies.PageStyles.Standard.BackColor, 7512015)
+ hex(document.StyleFamilies.PageStyles.Standard.BackColor), '0x729fcf')
self.assertEqual(
- document.StyleFamilies.PageStyles.Standard.FillColor, 7512015)
+ hex(document.StyleFamilies.PageStyles.Standard.FillColor), '0x729fcf')
self.assertEqual(
- document.StyleFamilies.PageStyles.Standard.FillColor, 7512015)
+ hex(document.StyleFamilies.PageStyles.Standard.FillColor), '0x729fcf')
elif btn == 'btngradient':
self.assertEqual(
document.StyleFamilies.PageStyles.Standard.FillGradient.Style, LINEAR)
self.assertEqual(
- document.StyleFamilies.PageStyles.Standard.FillGradient.StartColor, 14543051)
+ hex(document.StyleFamilies.PageStyles.Standard.FillGradient.StartColor), '0xdde8cb')
self.assertEqual(
document.StyleFamilies.PageStyles.Standard.FillGradient.Angle, 300)
self.assertEqual(