summaryrefslogtreecommitdiff
path: root/uitest
diff options
context:
space:
mode:
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(