sc/qa/uitest/calc_tests3/insertQrCodeGen.py |   42 ++++++++++++++--------------
 1 file changed, 21 insertions(+), 21 deletions(-)

New commits:
commit 891d93dd4def0bde06aa90e348920d78f20869be
Author:     Miklos Vajna <vmik...@collabora.com>
AuthorDate: Fri Dec 20 09:57:01 2024 +0100
Commit:     Miklos Vajna <vmik...@collabora.com>
CommitDate: Fri Dec 20 11:08:27 2024 +0100

    UITest_calc_tests3: fix indent in insertQrCodeGen
    
    Similar to commit 36047855334fb7bf988386eb7cdc140a31617c0c
    (UITest_writer_tests3: fix indent in insertQrCode, 2024-12-19).
    
    Change-Id: Ic20f60ee7adae45ddfaea301d0029cc2af34a3a1
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178869
    Reviewed-by: Miklos Vajna <vmik...@collabora.com>
    Tested-by: Jenkins

diff --git a/sc/qa/uitest/calc_tests3/insertQrCodeGen.py 
b/sc/qa/uitest/calc_tests3/insertQrCodeGen.py
index a28352ce1303..db0dd03bd355 100644
--- a/sc/qa/uitest/calc_tests3/insertQrCodeGen.py
+++ b/sc/qa/uitest/calc_tests3/insertQrCodeGen.py
@@ -13,26 +13,26 @@ from uitest.uihelper.common import type_text
 
 class insertQrCode(UITestCase):
 
-   def test_insert_qr_code_gen(self):
-      if os.getenv('ENABLE_ZXING') == 'TRUE':
-
-        with self.ui_test.create_doc_in_start_center("calc") as document:
-            with 
self.ui_test.execute_dialog_through_command(".uno:InsertQrCode") as xDialog:
-
-                # Get elements in the Dialog Box
-                xURL = xDialog.getChild("edit_text")
-                xECC_Low = xDialog.getChild("button_low") #How radio button 
input is written in text.
-                xBorder = xDialog.getChild("edit_margin")
-
-                type_text(xURL, "www.libreoffice.org") #set the QR code
-                xECC_Low.executeAction("CLICK", tuple())
-                xBorder.executeAction("UP", tuple())
-                xBorder.executeAction("DOWN", tuple())
-
-            # check the QR code in the document
-            element = document.Sheets[0].DrawPage[0]
-            self.assertEqual(element.BarCodeProperties.Payload, 
"www.libreoffice.org")
-            self.assertEqual(element.BarCodeProperties.ErrorCorrection, 1)
-            self.assertEqual(element.BarCodeProperties.Border, 1)
+    def test_insert_qr_code_gen(self):
+        if os.getenv('ENABLE_ZXING') == 'TRUE':
+
+            with self.ui_test.create_doc_in_start_center("calc") as document:
+                with 
self.ui_test.execute_dialog_through_command(".uno:InsertQrCode") as xDialog:
+
+                    # Get elements in the Dialog Box
+                    xURL = xDialog.getChild("edit_text")
+                    xECC_Low = xDialog.getChild("button_low") #How radio 
button input is written in text.
+                    xBorder = xDialog.getChild("edit_margin")
+
+                    type_text(xURL, "www.libreoffice.org") #set the QR code
+                    xECC_Low.executeAction("CLICK", tuple())
+                    xBorder.executeAction("UP", tuple())
+                    xBorder.executeAction("DOWN", tuple())
+
+                # check the QR code in the document
+                element = document.Sheets[0].DrawPage[0]
+                self.assertEqual(element.BarCodeProperties.Payload, 
"www.libreoffice.org")
+                self.assertEqual(element.BarCodeProperties.ErrorCorrection, 1)
+                self.assertEqual(element.BarCodeProperties.Border, 1)
 
 # vim: set shiftwidth=4 softtabstop=4 expandtab:

Reply via email to