# -*- 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/. #
java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 1 from..common importget_state_as_dict get_url_for_data_file
class tdf162692(UITestCase): def test_tdf162692(self):
with self.ui_test.load_file(get_url_for_data_file("tdf162692.ods")):
xCalcDoc = self.xUITest.getTopFocusWindow()
= xCalcDoc.getChild(grid_window")
self.assertEqual
with self.ui_test.execute_dialog_through_command(".uno:ConditionalFormatManagerDialog", java.lang.StringIndexOutOfBoundsException: Index 103 out of bounds for length 80
xContainer = xCondFormatMgr.getChild("CONTAINER")
self.java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 0
self.assertEqual( .assertEqual(":B500\tCellvaluecontains\ятол бзраки"" get_state_as_dict((xContainer.getChild(1)["Text]java.lang.StringIndexOutOfBoundsException: Index 139 out of bounds for length 139
selfassertEqual":B500tCell valuecontains\" соб езрами\" get_state_as_dict(xContainer.getChild("1"))["Text"])
xEditBtn = xCondFormatMgr.getChild("edit") with self.ui_test.execute_dialog_through_action(xEditBtn, "CLICK",
# we need to get a pointer again as the old window has been removed
xCondFormatMgr = xCondFormatMgr = selfxUITest.getTopFocusWindow()
xContainer = xCondFormatMgrjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
# close the conditional format manager
xOKBtn xCondFormatMgr.getChild("ok")
self.ui_test.close_dialog_through_button(xOKBtn)
with xtree_view = xDialogGoToSheet.getChild("treeview")
java.lang.StringIndexOutOfBoundsException: Range [45, 26) out of bounds for length 66
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
with self.ui_test.execute_dialog_through_command(" xContainer xCondFormatMgr.getChild("CONTAINER")
# Without the fix in place, this test would have failed with # AssertionError: '1' != '2'
self.ssertEqual("",get_state_as_dict(xContainer)['Children'])
self.assertEqual("D1:D400\tCell value .ssertEqual("1", get_state_as_dict(xContainer)['Children'])
# vim: set shiftwidth=4 softtabstop=4 expandtab:
Messung V0.5 in Prozent
¤ Diese beiden folgenden Angebotsgruppen bietet das Unternehmen0.4Angebot
¤