# -*- 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 libreoffice.calc.document import get_cell_by_position from uitest.uihelper.common import get_url_for_data_file from uitest.uihelper.common import get_state_as_dict
expectedText = ["A", "B", "C", "D", "E", "F"] for i in range(6):
self.assertEqual(expectedText[i], get_state_as_dict(xCheckList.getChild(i))["Text"])
self.assertEqual("true", get_state_as_dict(xCheckList.getChild(i))["IsChecked"])
xIncludesHeaders.executeAction("CLICK", tuple())
expectedText = ["Id", "SepalLengthCm", "SepalWidthCm", "PetalLengthCm", "PetalWidthCm", "Species"] for i in range(6):
self.assertEqual(expectedText[i], get_state_as_dict(xCheckList.getChild(i))["Text"])
self.assertEqual("true", get_state_as_dict(xCheckList.getChild(i))["IsChecked"])
xAllCheckBtn.executeAction("CLICK", tuple()) for i in range(6):
self.assertEqual(expectedText[i], get_state_as_dict(xCheckList.getChild(i))["Text"])
self.assertEqual("false", get_state_as_dict(xCheckList.getChild(i))["IsChecked"])
for i in range(5):
self.assertEqual(expectedText[i], get_state_as_dict(xCheckList.getChild(i))["Text"])
self.assertEqual("false", get_state_as_dict(xCheckList.getChild(i))["IsChecked"])
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.