Revert "Unit test to tdf159797"

This reverts commit 173a79365b110cf70f628a602a22049562a477f5.

Reason for revert: This is already covered in 66b30842e86fb6041bd6a453c6e3a877a3c177c1 with a CppUnittest, which is
preferable to UItests

Change-Id: I80ddb4f3d1da047e0c994fd3137a78ab70081edb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/164191
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
Tested-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
diff --git a/sw/qa/uitest/data/tdf159797.odt b/sw/qa/uitest/data/tdf159797.odt
deleted file mode 100755
index 437b6fc0c..0000000
--- a/sw/qa/uitest/data/tdf159797.odt
+++ /dev/null
Binary files differ
diff --git a/sw/qa/uitest/writer_tests8/tdf159797.py b/sw/qa/uitest/writer_tests8/tdf159797.py
deleted file mode 100644
index a29a1f5..0000000
--- a/sw/qa/uitest/writer_tests8/tdf159797.py
+++ /dev/null
@@ -1,29 +0,0 @@
# -*- tab-width: 4; indent-tabs-mode: nil; py-indent-offset: 4 -*-
#
# This file is part of the LibreOffice project.
#
# 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_url_for_data_file
from libreoffice.uno.propertyvalue import mkPropertyValues
from com.sun.star.text.TextContentAnchorType import AT_PAGE, AT_PARAGRAPH

class tdf159797(UITestCase):

    def test_tdf159797(self):

        with self.ui_test.load_file(get_url_for_data_file("tdf159797.odt")) as document:

            xWriterDoc = self.xUITest.getTopFocusWindow()
            xWriterEdit = xWriterDoc.getChild("writer_edit")
            xWriterEdit.executeAction("CLICK", mkPropertyValues({"START_POS": "26", "END_POS": "26"}))
            xWriterEdit.executeAction("TYPE", mkPropertyValues({"TEXT": " "}))
            xWriterEdit.executeAction("SELECT", mkPropertyValues({"START_POS": "0", "END_POS": "31"}))
            windowState = xWriterEdit.getState();
            self.assertEqual(windowState[14].Value, "This is a sentence. \u2013 Here")


# vim: set shiftwidth=4 softtabstop=4 expandtab: