summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.com>2024-12-20 09:57:01 +0100
committerMiklos Vajna <vmiklos@collabora.com>2024-12-20 11:08:27 +0100
commit891d93dd4def0bde06aa90e348920d78f20869be (patch)
tree288e76fdb75e7d7c0398acf10600655bd12c4b09 /sc
parent67dbd34422941048bb726188857801579f64ea99 (diff)
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 <vmiklos@collabora.com> Tested-by: Jenkins
Diffstat (limited to 'sc')
-rw-r--r--sc/qa/uitest/calc_tests3/insertQrCodeGen.py42
1 files changed, 21 insertions, 21 deletions
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: