summaryrefslogtreecommitdiff
path: root/uitest
diff options
context:
space:
mode:
authorXisco Fauli <anistenis@gmail.com>2017-06-13 16:06:59 +0200
committerXisco FaulĂ­ <xiscofauli@libreoffice.org>2017-06-13 18:27:39 +0200
commit3c641c9c1f2ec01a9ae61e955ceb69c52e45f31e (patch)
tree189398e2265719ce5841fd55895b58666b210eaf /uitest
parentcbdd3c32703fd21b6911b5a6fc5803faeed9befb (diff)
uitest: Use subtest here
Change-Id: I0e54b950412b4130bb4155d93af2ccafb03d2950 Reviewed-on: https://gerrit.libreoffice.org/38744 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Xisco FaulĂ­ <xiscofauli@libreoffice.org>
Diffstat (limited to 'uitest')
-rw-r--r--uitest/writer_tests/insertBreakDialog.py13
1 files changed, 7 insertions, 6 deletions
diff --git a/uitest/writer_tests/insertBreakDialog.py b/uitest/writer_tests/insertBreakDialog.py
index 47e073d297ad..1ec61aff2368 100644
--- a/uitest/writer_tests/insertBreakDialog.py
+++ b/uitest/writer_tests/insertBreakDialog.py
@@ -56,15 +56,16 @@ class WriterInsertBreakDialog(UITestCase):
self.ui_test.create_doc_in_start_center("writer")
for i in range(9):
- xDialog = self.launch_dialog_and_select_option("pagerb")
+ with self.subTest(i=i):
+ xDialog = self.launch_dialog_and_select_option("pagerb")
- xStyleList = xDialog.getChild("stylelb")
- xStyleList.executeAction("SELECT", mkPropertyValues({"POS": str(i)}))
+ xStyleList = xDialog.getChild("stylelb")
+ xStyleList.executeAction("SELECT", mkPropertyValues({"POS": str(i)}))
- xOkBtn = xDialog.getChild("ok")
- xOkBtn.executeAction("CLICK", tuple())
+ xOkBtn = xDialog.getChild("ok")
+ xOkBtn.executeAction("CLICK", tuple())
- self.getPages(i + 2)
+ self.getPages(i + 2)
self.ui_test.close_doc()