diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-03-13 11:42:16 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-03-13 11:43:37 +0200 |
commit | 0436896da915ad2834ba39cb648bdfeb2495fb21 (patch) | |
tree | 46e9cc479ff5df8589a08da2a3a7bd1bdf918f2e /sc | |
parent | 6bc01f234de9a3c5abc00253fed8dc691320fd3b (diff) |
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
Diffstat (limited to 'sc')
-rw-r--r-- | sc/qa/uitest/chart/chartDataLabels.py | 23 |
1 files changed, 12 insertions, 11 deletions
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: |