diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2021-02-19 15:46:07 +0100 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2021-02-19 22:33:26 +0100 |
commit | 6997ed7babe5d72cff8f46fdf997543a36efb766 (patch) | |
tree | d611ad41553868bf8d18478e868e679f588a16c9 /sw | |
parent | 8edfede1bf11bd96ca0a1e20c9a5f010498fe381 (diff) |
uitest: sw: differentiate the elements in the custompropertieslines
Change-Id: Ic61cd1655df2bcd7b89c4dfadcda801b7160253c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111226
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/qa/uitest/writer_tests/tdf81457.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/sw/qa/uitest/writer_tests/tdf81457.py b/sw/qa/uitest/writer_tests/tdf81457.py index 655d0c2f671b..f8b93a9bc60a 100644 --- a/sw/qa/uitest/writer_tests/tdf81457.py +++ b/sw/qa/uitest/writer_tests/tdf81457.py @@ -21,6 +21,21 @@ class tdf81457(UITestCase): xDialog = self.xUITest.getTopFocusWindow() xTabs = xDialog.getChild("tabcontrol") select_pos(xTabs, "2") #tab Custom properties + + aExpectedNames = ['BookMarkCount', 'BookMarkInfo1', 'BookMarkInfo10', 'BookMarkInfo11', + 'BookMarkInfo12', 'BookMarkInfo13'] + aExpectedValues = ['78', '00FF0000FF010', '00FF0000FF1E0', '00FF0000FF1E0', + '00FF0000FF210', '00FF0000FF230'] + + for i in range(6): + xNameBox = xDialog.getChild("namebox" + str(i + 1)) + xTypeBox = xDialog.getChild("typebox" + str(i + 1)) + xValueEdit = xDialog.getChild("valueedit" + str(i + 1)) + self.assertEqual(aExpectedNames[i], get_state_as_dict(xNameBox)['Text']) + self.assertEqual('Text', get_state_as_dict(xTypeBox)['DisplayText']) + self.assertEqual(aExpectedValues[i], get_state_as_dict(xValueEdit)['Text'][:13]) + + xOkBtn = xDialog.getChild("ok") xOkBtn.executeAction("CLICK", tuple()) |