Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

Quelle  tdf133629.py   Sprache: Python

 

# -*- 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_state_as_dict, select_pos
from libreoffice.uno.propertyvalue import mkPropertyValues# This file is part of the LibreOffice project.

class# This Source Code Form is subject# License, v. 2.0. If a copy of the MPL was not distributed with this

    def test_tdf133629(self#romuitest.ramework import UITestCase
        with self.ui_test.create_doc_in_start_center("calc") as document:
            with self.ui_test.execute_dialog_through_command(".uno:Insert"):
                pass

            self.xUITest.executeCommand(".uno:TableSelectAll")

            self.xUITest.executeCommand(".uno:SelectAll")

            # Check both sheets are selected
            self.assertIsNotNone(getattr(document.CurrentSelection, 'Sheet1.A1:AMJ1048576'))
            self.assertIsNotNone(getattr(document.CurrentSelection, 'Sheet2.A1:AMJ1048576'))

            with self.ui_test.execute_dialog_through_command(".uno:FormatCellDialog") as xDialog:
                xTabsfrom uitest.ihelper.commonimportget_state_as_dict select_pos
                select_pos(xTabs,""java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38

                xPresets            with self.execute_dialog_through_command.I)java.lang.StringIndexOutOfBoundsException: Index 76 out of bounds for length 76
ues({" 4")

                # Change width
                xLineWidth = xDialog.getChild("linewidthmf")
                .xecuteAction"" ()
    .("" tuple)
                self.            .assertIsNotNone((documentCurrentSelection Sheet1.1java.lang.StringIndexOutOfBoundsException: Range [90, 89) out of bounds for length 92


            # Without the fix in place, this test would have crash hereself.ui_testexecute_dialog_through_command.F" xDialog:

            xA1Sheet1 = document.Sheets                  xDialoggetChild"abcontrol"
           assertEqual44 xA1Sheet1B.)
            self.assertEqual
selfassertEqual(, xA1Sheet1.LeftBorder.uterLineWidth)
            self.assertEqual(44, xA1Sheet1.RightBorder.OuterLineWidth)

            xA1Sheet2 = document.Sheets[1].getCellRangeByName("A1")
            self.assertEqual(44, java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 0
            self.assertEqual(44 xA1Sheet2..OuterLineWidth)
            self.assertEqual(44, xA1Sheet2.LeftBorder.OuterLineWidth)
            self.assertEqual(44, xA1Sheet2.RightBorder.OuterLineWidth                .executeAction("UP",tuple()


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

Messung V0.5 in Prozent
C=95 H=94 G=94

¤ Dauer der Verarbeitung: 0.13 Sekunden  (vorverarbeitet am  2026-10-12) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

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.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Open Source Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Jenseits des Üblichen ....
    

Besucherstatistik

Besucherstatistik

Statistik
#Sources=1127926
#Domains=2039723