summaryrefslogtreecommitdiff
path: root/sd/qa/uitest/impress_tests
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-11-29 14:37:38 +0000
committerCaolán McNamara <caolanm@redhat.com>2018-12-01 13:39:34 +0100
commit525f7c67731fe9fa7ab7fc89e9396aa28f8f674a (patch)
treead400c410bae79faeb2a5da126a3dfaf4c83f303 /sd/qa/uitest/impress_tests
parent8186f8e2c8556fa151c01f09e5f5d4b1ac441d6a (diff)
weld OfaAutocorrExceptPage
Change-Id: I735ca7d70045b278d6b885cc2de35bf76885b487 Reviewed-on: https://gerrit.libreoffice.org/64258 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sd/qa/uitest/impress_tests')
-rw-r--r--sd/qa/uitest/impress_tests/autocorrectOptions.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/sd/qa/uitest/impress_tests/autocorrectOptions.py b/sd/qa/uitest/impress_tests/autocorrectOptions.py
index c4140bab4059..759304e01071 100644
--- a/sd/qa/uitest/impress_tests/autocorrectOptions.py
+++ b/sd/qa/uitest/impress_tests/autocorrectOptions.py
@@ -60,16 +60,16 @@ class autocorrectOptions(UITestCase):
delabbrev = xDialog.getChild("delabbrev")
abbrevlist = xDialog.getChild("abbrevlist")
- nrRowsAbb = get_state_as_dict(abbrevlist)["EntryCount"]
+ nrRowsAbb = get_state_as_dict(abbrevlist)["Children"]
abbrev.executeAction("TYPE", mkPropertyValues({"KEYCODE":"CTRL+A"}))
abbrev.executeAction("TYPE", mkPropertyValues({"KEYCODE":"BACKSPACE"}))
abbrev.executeAction("TYPE", mkPropertyValues({"TEXT":"qqqqq"}))
newabbrev.executeAction("CLICK", tuple())
- nrRowsAbbNew = get_state_as_dict(abbrevlist)["EntryCount"]
+ nrRowsAbbNew = get_state_as_dict(abbrevlist)["Children"]
nrRowsAbbDiff = int(nrRowsAbbNew) - int(nrRowsAbb)
self.assertEqual(nrRowsAbbDiff, 1) #we have +1 rule
delabbrev.executeAction("CLICK", tuple())
- self.assertEqual(get_state_as_dict(abbrevlist)["EntryCount"], nrRowsAbb) #we have default nr of rules
+ self.assertEqual(get_state_as_dict(abbrevlist)["Children"], nrRowsAbb) #we have default nr of rules
#words with two initial capitals
double = xDialog.getChild("double")
@@ -77,16 +77,16 @@ class autocorrectOptions(UITestCase):
deldouble = xDialog.getChild("deldouble")
doublelist = xDialog.getChild("doublelist")
- nrRowsDouble = get_state_as_dict(doublelist)["EntryCount"]
+ nrRowsDouble = get_state_as_dict(doublelist)["Children"]
double.executeAction("TYPE", mkPropertyValues({"KEYCODE":"CTRL+A"}))
double.executeAction("TYPE", mkPropertyValues({"KEYCODE":"BACKSPACE"}))
double.executeAction("TYPE", mkPropertyValues({"TEXT":"QQqqq"}))
newdouble.executeAction("CLICK", tuple())
- nrRowsDoubleNew = get_state_as_dict(doublelist)["EntryCount"]
+ nrRowsDoubleNew = get_state_as_dict(doublelist)["Children"]
nrRowsDoubleDiff = int(nrRowsDoubleNew) - int(nrRowsDouble) #convert string and
self.assertEqual(nrRowsDoubleDiff, 1) #we have +1 rule
deldouble.executeAction("CLICK", tuple())
- self.assertEqual(get_state_as_dict(doublelist)["EntryCount"], nrRowsDouble) #we have default nr of rules
+ self.assertEqual(get_state_as_dict(doublelist)["Children"], nrRowsDouble) #we have default nr of rules
xCancelButton = xDialog.getChild("cancel")
xCancelButton.executeAction("CLICK", tuple())