summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.com>2019-02-20 09:03:44 +0100
committerMiklos Vajna <vmiklos@collabora.com>2019-02-20 12:19:26 +0100
commit971788dd2caa218321714f5e79a29349f934a01c (patch)
treeca3b7ddb1720737b8e1ee8e675febc01f388b70a /sw
parentd1a6aa9433f9b48d7a476af0b41d389fd3267c73 (diff)
Revert "uitest for bug tdf#101873"
This reverts commit 92849660e21d5a13fb671339e52cbc30335ab842. The original commit already contained a test, so this one is redundant. And when there is a possibility to choose, then it's better to test something from fast cppunit tests than from slow uitests. Change-Id: I1d8849da242ee6c8e5d7729b26a71e495a2d394e Reviewed-on: https://gerrit.libreoffice.org/68062 Reviewed-by: Miklos Vajna <vmiklos@collabora.com> Tested-by: Jenkins
Diffstat (limited to 'sw')
-rw-r--r--sw/qa/uitest/findReplace/tdf101873.py52
-rw-r--r--sw/qa/uitest/writer_tests/data/tdf101873.odtbin8240 -> 0 bytes
2 files changed, 0 insertions, 52 deletions
diff --git a/sw/qa/uitest/findReplace/tdf101873.py b/sw/qa/uitest/findReplace/tdf101873.py
deleted file mode 100644
index ba78d9c45a42..000000000000
--- a/sw/qa/uitest/findReplace/tdf101873.py
+++ /dev/null
@@ -1,52 +0,0 @@
-# -*- tab-width: 4; indent-tabs-mode: nil; py-indent-offset: 4 -*-
-#
-# This Source Code Form is subject to the terms of the Mozilla Public
-# License, v. 2.0. If a copy of the MPL was not distributed with this
-# file, You can obtain one at http://mozilla.org/MPL/2.0/.
-#
-from uitest.framework import UITestCase
-from uitest.uihelper.common import get_state_as_dict
-from uitest.uihelper.common import select_pos
-from uitest.uihelper.calc import enter_text_to_cell
-from libreoffice.calc.document import get_cell_by_position
-from libreoffice.uno.propertyvalue import mkPropertyValues
-from uitest.uihelper.common import get_state_as_dict, type_text
-import org.libreoffice.unotest
-import pathlib
-from uitest.path import get_srcdir_url
-def get_url_for_data_file(file_name):
- return pathlib.Path(org.libreoffice.unotest.makeCopyFromTDOC(file_name)).as_uri()
-
-#Bug 101873 - Cursor jumps to the begin of the document after searching for text not found
-
-class tdf101873(UITestCase):
- def test_tdf101873_find_not_found_jump(self):
- writer_doc = self.ui_test.load_file(get_url_for_data_file("tdf101873.odt"))
- document = self.ui_test.get_component()
- xWriterDoc = self.xUITest.getTopFocusWindow()
- xWriterEdit = xWriterDoc.getChild("writer_edit")
- #go to page 2
- self.ui_test.execute_dialog_through_command(".uno:GotoPage")
- xDialog = self.xUITest.getTopFocusWindow()
- xPageText = xDialog.getChild("page")
- xPageText.executeAction("TYPE", mkPropertyValues({"TEXT":"2"}))
- xOkBtn = xDialog.getChild("ok")
- xOkBtn.executeAction("CLICK", tuple())
- self.assertEqual(get_state_as_dict(xWriterEdit)["CurrentPage"], "2") #I'm on the 2nd page
-
- self.ui_test.execute_modeless_dialog_through_command(".uno:SearchDialog")
- xDialog = self.xUITest.getTopFocusWindow()
-
- searchterm = xDialog.getChild("searchterm")
- searchterm.executeAction("TYPE", mkPropertyValues({"TEXT":"notFound"}))
- xsearch = xDialog.getChild("search")
- xsearch.executeAction("CLICK", tuple())
- xsearch.executeAction("CLICK", tuple())
- #verify
- self.assertEqual(get_state_as_dict(xWriterEdit)["CurrentPage"], "2")
-
- xcloseBtn = xDialog.getChild("close")
- self.ui_test.close_dialog_through_button(xcloseBtn)
-
- self.ui_test.close_doc()
-# vim: set shiftwidth=4 softtabstop=4 expandtab:
diff --git a/sw/qa/uitest/writer_tests/data/tdf101873.odt b/sw/qa/uitest/writer_tests/data/tdf101873.odt
deleted file mode 100644
index 53b4f0b3c18b..000000000000
--- a/sw/qa/uitest/writer_tests/data/tdf101873.odt
+++ /dev/null
Binary files differ