diff options
author | Xisco Fauli <anistenis@gmail.com> | 2017-01-14 13:13:10 +0100 |
---|---|---|
committer | Xisco Faulí <xiscofauli@libreoffice.org> | 2017-01-14 14:28:46 +0000 |
commit | 6e63f40dcc96fac62433fe62c5bbf7cf4378b498 (patch) | |
tree | ae8385264efe4f5b2928b5a4a74c554929543150 /uitest | |
parent | 597e02e6d42dce07bccdba73d1fa035970d3743f (diff) |
Check number of columns and row in the inserted table
Change-Id: I6c6c9b38a9eb1a2912373008564b4838bd3fc3f8
Reviewed-on: https://gerrit.libreoffice.org/33067
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Xisco Faulí <xiscofauli@libreoffice.org>
Diffstat (limited to 'uitest')
-rw-r--r-- | uitest/writer_tests/tdf104158.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/uitest/writer_tests/tdf104158.py b/uitest/writer_tests/tdf104158.py index fafbc24d78d1..8c0f1bdc5166 100644 --- a/uitest/writer_tests/tdf104158.py +++ b/uitest/writer_tests/tdf104158.py @@ -19,6 +19,12 @@ class tdf104158(UITestCase): xOkBtn = xInsertDlg.getChild("ok") xOkBtn.executeAction("CLICK", tuple()) + document = self.ui_test.get_component() + + tables = document.getTextTables() + self.assertEqual(len(tables[0].getRows()), 2) + self.assertEqual(len(tables[0].getColumns()), 2) + self.ui_test.execute_dialog_through_command(".uno:TableNumberFormatDialog") xNumberFormatDlg = self.xUITest.getTopFocusWindow() |