# -*- 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.uno.propertyvalue import mkPropertyValues from libreoffice.calc.document import get_cell_by_position from uitest.uihelper.common import get_state_as_dict, get_url_for_data_file, type_text, select_pos from uitest.uihelper.calc import enter_text_to_cell
# Assert that the correct range has been selected
gridWinState = get_state_as_dict(xGridWin)
self.assertEqual(gridWinState["MarkedArea"], "Sheet1.A1:Sheet1.D10")
with self.ui_test.execute_blocking_action(enter_text, args=("A1", "abc")): pass with self.ui_test.execute_blocking_action(enter_text, args=("B6", "2.18")): pass
with self.ui_test.execute_modeless_dialog_through_command(".uno:RandomNumberGeneratorDialog") as xRandomNumberDlg:
xDistributionLstBox = xRandomNumberDlg.getChild("distribution-combo")
select_pos(xDistributionLstBox, "1")
def check_random_values(): for i in range(1, 9):
val = get_cell_by_position(document, 0, 0, i).getValue()
self.assertTrue(val <= 10 and val >= -2)
check_random_values()
# we might want to check that clicking 'ok' actually changes the values
check_random_values()
# vim: set shiftwidth=4 softtabstop=4 expandtab:
Messung V0.5
¤ 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.0.5Bemerkung:
¤
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.