diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2021-10-26 16:00:20 +0200 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2021-10-26 22:31:07 +0200 |
commit | a1c693d23f53f035771de54fb139772be91e9bfb (patch) | |
tree | a80026f831e270e46223e74917d57dd58ffd2be6 /sw | |
parent | eb664612aba4d7d8d5cf8d5a448f12be55da59ba (diff) |
uitest: when possible, close the document before opening a new one
Change-Id: Ice8ec4868baab5182957ce335e2bc2cb93822af7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124228
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/qa/uitest/writer_tests5/tdf138531.py | 1 | ||||
-rw-r--r-- | sw/qa/uitest/writer_tests6/tdf118883.py | 10 |
2 files changed, 6 insertions, 5 deletions
diff --git a/sw/qa/uitest/writer_tests5/tdf138531.py b/sw/qa/uitest/writer_tests5/tdf138531.py index 94d3a15e0e7d..77142b287df3 100644 --- a/sw/qa/uitest/writer_tests5/tdf138531.py +++ b/sw/qa/uitest/writer_tests5/tdf138531.py @@ -26,6 +26,7 @@ class Tdf138531(UITestCase): self.xUITest.executeCommand(".uno:Copy") + # Work with both documents at the same time with self.ui_test.load_empty_file("writer") as writer_doc: # Paste as DDE diff --git a/sw/qa/uitest/writer_tests6/tdf118883.py b/sw/qa/uitest/writer_tests6/tdf118883.py index 5395559220be..5f225f860120 100644 --- a/sw/qa/uitest/writer_tests6/tdf118883.py +++ b/sw/qa/uitest/writer_tests6/tdf118883.py @@ -20,12 +20,12 @@ class Tdf118883(UITestCase): self.xUITest.executeCommand(".uno:Copy") - with self.ui_test.load_empty_file("calc") as calc_document: + with self.ui_test.load_empty_file("calc") as calc_document: - self.xUITest.executeCommand(".uno:Paste") + self.xUITest.executeCommand(".uno:Paste") - # Without the fix in place, this test would have failed with - # AssertionError: 1 != 0 - self.assertEqual(1, calc_document.DrawPages[0].getCount()) + # Without the fix in place, this test would have failed with + # AssertionError: 1 != 0 + self.assertEqual(1, calc_document.DrawPages[0].getCount()) # vim: set shiftwidth=4 softtabstop=4 expandtab: |