[Libreoffice-commits] core.git: uitest/writer_tests

Xisco Fauli anistenis at gmail.com
Tue Jun 13 16:28:02 UTC 2017


 uitest/writer_tests/insertBreakDialog.py |   13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

New commits:
commit 3c641c9c1f2ec01a9ae61e955ceb69c52e45f31e
Author: Xisco Fauli <anistenis at gmail.com>
Date:   Tue Jun 13 16:06:59 2017 +0200

    uitest: Use subtest here
    
    Change-Id: I0e54b950412b4130bb4155d93af2ccafb03d2950
    Reviewed-on: https://gerrit.libreoffice.org/38744
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Xisco FaulĂ­ <xiscofauli at libreoffice.org>

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()
 


More information about the Libreoffice-commits mailing list