diff options
author | Attila Szűcs <attila.szucs@collabora.com> | 2024-07-12 14:51:41 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2024-07-19 21:26:28 +0200 |
commit | 352e564dd1de09a04a2fb1f9b40780b305da7c80 (patch) | |
tree | 6c277d662875c73532a24be580c583f487c9b43a /sw/qa/uitest/ui | |
parent | d54ef79c77fa6537d86850434c1bb6ef5f9b292a (diff) |
SW: random ID for new content controls
Make the generated unique ID random for new content controls.
This way if we copy paste them from different documents,
they may still be unique.
Change-Id: I2adb6577e08b5798ae88a63b6178352aa76280d6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170773
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'sw/qa/uitest/ui')
-rw-r--r-- | sw/qa/uitest/ui/misc/misc.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sw/qa/uitest/ui/misc/misc.py b/sw/qa/uitest/ui/misc/misc.py index 8af00054a5e6..94fd60bff16f 100644 --- a/sw/qa/uitest/ui/misc/misc.py +++ b/sw/qa/uitest/ui/misc/misc.py @@ -44,9 +44,10 @@ class TestTmpdlg(UITestCase): type_text(xTag, "new tag ") xAdd = xDialog.getChild("add") - xId = xDialog.getChild("idspinbutton") - self.assertEqual(get_state_as_dict(xId)['Text'], "0") - type_text(xId, "429496729") # added in front, making it 4294967290 + # Id is a random number now, not 0. + # xId = xDialog.getChild("idspinbutton") + # self.assertEqual(get_state_as_dict(xId)['Text'], "0") + # type_text(xId, "429496729") # added in front, making it 4294967290 xTabIndex = xDialog.getChild("tabindexspinbutton") self.assertEqual(get_state_as_dict(xTabIndex)['Text'], "1") @@ -67,7 +68,7 @@ class TestTmpdlg(UITestCase): self.assertEqual(listItems[1][1].Value, "foo-bar") self.assertEqual(contentControl.Alias, "new alias my alias") self.assertEqual(contentControl.Tag, "new tag my tag") - self.assertEqual(contentControl.Id, -6) # stored as signed, displays as unsigned + # self.assertEqual(contentControl.Id, -6) # stored as signed, displays as unsigned self.assertEqual(contentControl.TabIndex, 4294967295) # stored as unsigned, displays as signed |