tdf#130857 qt weld: Implement QtInstanceWidget::strip_mnemonic
[LibreOffice.git] / sc / qa / uitest / csv_dialog / tdf60468.py
blobdb83664fee2bda75636e96e88a61fbcc415d02db
1 # -*- tab-width: 4; indent-tabs-mode: nil; py-indent-offset: 4 -*-
3 # This file is part of the LibreOffice project.
5 # This Source Code Form is subject to the terms of the Mozilla Public
6 # License, v. 2.0. If a copy of the MPL was not distributed with this
7 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 from uitest.framework import UITestCase
10 from libreoffice.calc.document import get_cell_by_position
11 from libreoffice.calc.csv_dialog import load_csv_file
13 class Tdf60468(UITestCase):
15 def test_tdf60468(self):
17 # Load file from Open dialog
18 with load_csv_file(self, "tdf60468.csv", True):
19 pass
21 document = self.ui_test.get_component()
23 # tdf#142040: Without the fix in place, this test would have failed with
24 # AssertionError: 'head1' != ''
25 for i in range(3):
26 self.assertEqual("head" + str(i + 1), get_cell_by_position(document, 0, i, 0).getString())
28 self.assertEqual("value1.1\nvalue1.2", get_cell_by_position(document, 0, 0, 1).getString())
30 # Without the fix in place, this test would have failed with
31 # AssertionError: 'value2.1\n\tvalue2.2\nvalue2.3' != 'value2.1\n\tvalue2.2'
32 self.assertEqual("value2.1\n\tvalue2.2\nvalue2.3", get_cell_by_position(document, 0, 1, 1).getString())
33 self.assertEqual("value3", get_cell_by_position(document, 0, 2, 1).getString())
35 self.ui_test.close_doc()
37 # vim: set shiftwidth=4 softtabstop=4 expandtab: