[Libreoffice-commits] core.git: sc/qa

Noel Grandin (via logerrit) logerrit at kemper.freedesktop.org
Fri Mar 13 09:44:20 UTC 2020


 sc/qa/uitest/chart/chartDataLabels.py |   23 ++++++++++++-----------
 1 file changed, 12 insertions(+), 11 deletions(-)

New commits:
commit 0436896da915ad2834ba39cb648bdfeb2495fb21
Author:     Noel Grandin <noel.grandin at collabora.co.uk>
AuthorDate: Fri Mar 13 11:42:16 2020 +0200
Commit:     Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Fri Mar 13 11:43:37 2020 +0200

    replace tabs with spaces, and unclog clang buildbot
    
    since
        commit 02c9e05551d69980e0757b1b0a624692ea21a96b
        Date:   Thu Mar 12 17:34:12 2020 +0100
        tdf#131291: Add UItest
    
    Seems that only some buildbots are being strict about this and
    generating an error like:
    IndentationError: unindent does not match any outer indentation
    level
    
    Change-Id: Ifc8d01eefca0028cf134c8e71237fc0b59bc27d5

diff --git a/sc/qa/uitest/chart/chartDataLabels.py b/sc/qa/uitest/chart/chartDataLabels.py
index 54ad9b9ce2a2..abe8455b5d04 100644
--- a/sc/qa/uitest/chart/chartDataLabels.py
+++ b/sc/qa/uitest/chart/chartDataLabels.py
@@ -213,7 +213,7 @@ class chartDataLabels(UITestCase):
 
     self.ui_test.close_doc()
 
-  def test_tdf131291(self):
+   def test_tdf131291(self):
     calc_doc = self.ui_test.load_file(get_url_for_data_file("tdf131291.ods"))
     xCalcDoc = self.xUITest.getTopFocusWindow()
     gridwin = xCalcDoc.getChild("grid_window")
@@ -241,22 +241,22 @@ class chartDataLabels(UITestCase):
     xNumberFormatBtn = xDialog.getChild("PB_NUMBERFORMAT")
 
     def handle_number_dlg(dialog):
-            categoryformat = dialog.getChild("categorylb")
-            formatted = dialog.getChild("formatted")
+        categoryformat = dialog.getChild("categorylb")
+        formatted = dialog.getChild("formatted")
 
-            # Select currency
-            categoryformat.executeAction("TYPE", mkPropertyValues({"KEYCODE": "DOWN"}))
-            categoryformat.executeAction("TYPE", mkPropertyValues({"KEYCODE": "DOWN"}))
+        # Select currency
+        categoryformat.executeAction("TYPE", mkPropertyValues({"KEYCODE": "DOWN"}))
+        categoryformat.executeAction("TYPE", mkPropertyValues({"KEYCODE": "DOWN"}))
 
-            self.assertEqual(get_state_as_dict(categoryformat)["SelectEntryText"], "Currency")
+        self.assertEqual(get_state_as_dict(categoryformat)["SelectEntryText"], "Currency")
 
-            self.assertEqual(get_state_as_dict(formatted)["Text"], "[$$-409]#,##0.00;[RED]-[$$-409]#,##0.00")
+        self.assertEqual(get_state_as_dict(formatted)["Text"], "[$$-409]#,##0.00;[RED]-[$$-409]#,##0.00")
 
-            xOKButton = dialog.getChild("ok")
-            self.ui_test.close_dialog_through_button(xOKButton)
+        xOKButton = dialog.getChild("ok")
+        self.ui_test.close_dialog_through_button(xOKButton)
 
     self.ui_test.execute_blocking_action(xNumberFormatBtn.executeAction, args=('CLICK', ()),
-                dialog_handler=handle_number_dlg)
+        dialog_handler=handle_number_dlg)
 
     xOKBtn = xDialog.getChild("ok")
     self.ui_test.close_dialog_through_button(xOKBtn)
@@ -285,4 +285,5 @@ class chartDataLabels(UITestCase):
     self.assertFalse(xDataSeries[0].Label.ShowNumberInPercent)
     self.assertEqual(xDataSeries[0].NumberFormat, xFormat)
     self.ui_test.close_doc()
+
 # vim: set shiftwidth=4 softtabstop=4 expandtab:


More information about the Libreoffice-commits mailing list