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

Eike Rathke erack at redhat.com
Wed Aug 30 10:07:24 UTC 2017


 sw/qa/python/check_table.py |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

New commits:
commit b0f759560b19b036751e8e557562de952c3da1af
Author: Eike Rathke <erack at redhat.com>
Date:   Wed Aug 30 12:02:16 2017 +0200

    Correct a test that worked only by chance, tdf#91758 follow-up
    
    ... but now doesn't anymore.
    
    Change-Id: I573bdda023c69b895afe9959f345fc0e6d862cf8

diff --git a/sw/qa/python/check_table.py b/sw/qa/python/check_table.py
index 9efba3529aed..60c2d726ed58 100644
--- a/sw/qa/python/check_table.py
+++ b/sw/qa/python/check_table.py
@@ -498,16 +498,16 @@ class CheckTable(unittest.TestCase):
         xDoc.Text.insertTextContent(xCursor, xTable, False)
         xDispatcher.executeDispatch(xDocFrame, '.uno:GoToStartOfDoc', '', 0, ())
         xDispatcher.executeDispatch(xDocFrame, '.uno:InsertText', '', 0,
-                                    (PropertyValue('Text', 0, '15-10-30', 0),))
+                                    (PropertyValue('Text', 0, '2015-10-30', 0),))
         xDispatcher.executeDispatch(xDocFrame, '.uno:JumpToNextCell', '', 0, ())
-        # Without number recognition 15-10-30 should not be interpreted as a date
-        self.assertEqual(xTable.getCellByPosition(0, 0).getString(), '15-10-30')
+        # Without number recognition 2015-10-30 should not be interpreted as a date
+        self.assertEqual(xTable.getCellByPosition(0, 0).getString(), '2015-10-30')
         self.assertEqual(xTable.getCellByPosition(0, 0).getValue(), 0)
         # Activate number recognition
         xDispatcher.executeDispatch(xDocFrame, '.uno:TableNumberRecognition', '', 0,
                                     (PropertyValue('TableNumberRecognition', 0, True, 0),))
         xDispatcher.executeDispatch(xDocFrame, '.uno:InsertText', '', 0,
-                                    (PropertyValue('Text', 0, '15-10-30', 0),))
+                                    (PropertyValue('Text', 0, '2015-10-30', 0),))
         xDispatcher.executeDispatch(xDocFrame, '.uno:JumpToNextCell', '', 0, ())
         # With number recognition it should now be a date, confirm by checking
         # the string and value of the cell.


More information about the Libreoffice-commits mailing list