summaryrefslogtreecommitdiff
path: root/sw/qa/python
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2017-08-30 12:02:16 +0200
committerEike Rathke <erack@redhat.com>2017-08-30 12:03:14 +0200
commitb0f759560b19b036751e8e557562de952c3da1af (patch)
tree960a924e8c13d9b4300ce6e6d76590b7b9cf5425 /sw/qa/python
parente63e3e37f335e5729c59a0139c874cca02f83d76 (diff)
Correct a test that worked only by chance, tdf#91758 follow-up
... but now doesn't anymore. Change-Id: I573bdda023c69b895afe9959f345fc0e6d862cf8
Diffstat (limited to 'sw/qa/python')
-rw-r--r--sw/qa/python/check_table.py8
1 files changed, 4 insertions, 4 deletions
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.