summaryrefslogtreecommitdiff
path: root/uitest
diff options
context:
space:
mode:
authorXisco Fauli <anistenis@gmail.com>2017-06-15 17:53:37 +0200
committerXisco FaulĂ­ <xiscofauli@libreoffice.org>2017-06-15 20:01:30 +0200
commit0254e70f99e6d0e96ef3e6cd7da173bcad7c933d (patch)
treec169be7a3d79bc100504f7261236140b33e8b511 /uitest
parent134effd2494132495d0adb5453b8ddd9f803704e (diff)
uitest: Test text direction
Change-Id: I66943e432eadedaf4a1bc362861ea8be67b076c3 Reviewed-on: https://gerrit.libreoffice.org/38839 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Xisco FaulĂ­ <xiscofauli@libreoffice.org>
Diffstat (limited to 'uitest')
-rw-r--r--uitest/writer_tests/pageDialog.py26
1 files changed, 26 insertions, 0 deletions
diff --git a/uitest/writer_tests/pageDialog.py b/uitest/writer_tests/pageDialog.py
index 0845778d54a7..84284f61dd45 100644
--- a/uitest/writer_tests/pageDialog.py
+++ b/uitest/writer_tests/pageDialog.py
@@ -200,4 +200,30 @@ class WriterPageDialog(UITestCase):
self.ui_test.close_doc()
+ def test_text_direction(self):
+
+ lTextDirection = ['Left-to-right (horizontal)', 'Right-to-left (horizontal)',
+ 'Right-to-left (vertical)', 'Left-to-right (vertical)']
+
+ self.ui_test.create_doc_in_start_center("writer")
+
+ document = self.ui_test.get_component()
+
+ for i in range(4):
+ with self.subTest(i=i):
+ xDialog = self.launch_dialog_and_select_tab(1)
+
+ xTextDirectionList = xDialog.getChild("comboTextFlowBox")
+ select_pos(xTextDirectionList, str(i))
+
+ self.assertEqual(
+ get_state_as_dict(xTextDirectionList)["SelectEntryText"], lTextDirection[i])
+
+ self.click_button(xDialog, 'ok')
+
+ self.assertEqual(
+ document.StyleFamilies.PageStyles.Standard.WritingMode, i)
+
+ self.ui_test.close_doc()
+
# vim: set shiftwidth=4 softtabstop=4 expandtab: