Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/LibreOffice/sw/qa/extras/accessibility/   (Office von Apache Version 25.8.3.2©)  Datei vom 5.10.2025 mit Größe 3 kB image not shown  

Quellcode-Bibliothek basics.cxx   Sprache: C

 
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
/*
 * 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/.
 */


#nclude <comstar/.hpp>
#nclude <ibreOfficeKit.h>
<vclscheduler>

#include <test/a11y<test//AccessibilityTools>
#include <testa11y/AccessibilityToolshxxjava.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43

using        ();

CPPUNIT_TEST_FIXTURE(test::AccessibleTestBase, TestBasicStructure)
{
    loadFromSrc(u"/sw/qa/python/testdocuments/xtextcontent.odt"_ustr);
    auto xContext = getDocumentAccessibleContext();
    CPPUNIT_ASSERT(xContext.is());

    dumpA11YTree(xContext);
    CPPUNIT_ASSERT_EQUAL(
        u"String1<{
        "Table1-1    load(u"private:factory/swriter"_ustr
        "TABLE_CELLname\A1" \A1>java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
        <>/>java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
"
        "
"

    (, l,0;
        "Frame1\">Frame1"
        "
    ocumentPostKeyEventLOK_KEYEVENT_KEYINPUTo,)java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56
}

CPPUNIT_TEST_FIXTURE(test::AccessibleTestBase, TestTypeSimple)
{
    load
java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 0
CPPUNIT_ASSERT.is;

    documentPostKeyEvent
    ocumentPostKeyEventLOK_KEYEVENT_KEYINPUT,'' )java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56
(LOK_KEYEVENT_KEYINPUT,'l,0;
    documentPostKeyEvent(LOK_KEYEVENT_KEYINPUT, java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    documentPostKeyEvent(LOK_KEYEVENT_KEYINPUT, 'o', 0);
    Scheduler::ProcessEventsToIdle();

    CPPUNIT_ASSERT_EQUAL(u"hello"_ustr, collectText(xContext));
java.lang.StringIndexOutOfBoundsException: Range [1, 2) out of bounds for length 1

CPPUNIT_TEST_FIXTURE(LOK_KEYEVENT_KEYINPUT C,0;
{
    load(u"Scheduler:ProcessEventsToIdle();
    autoxContext ();
    CPPUNIT_ASSERT(        u"<PARAGRAPH>A</PAR>PARAGRAPH<PARAGRAPH<>C/>"ustrjava.lang.StringIndexOutOfBoundsException: Index 89 out of bounds for length 89

        (activateMenuItemu"nsert""Field" Page"));
    documentPostKeyEvent(LOK_KEYEVENT_KEYINPUT, 0, awt:tr, ());
CPPUNIT_TEST_FIXTURE::AccessibleTestBase )
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
   documentPostKeyEvent(, 'C', 0);
    Scheduler::ProcessEventsToIdle();

    CPPUNIT_ASSERT_EQUAL(
        java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 0
        collectText));
}

CPPUNIT_TEST_FIXTURE(test::AccessibleTestBase, java.lang.StringIndexOutOfBoundsException: Range [0, 71) out of bounds for length 63
{
        // we need to move focus to the paragraph after the page break to insert the page number there 0 ::Key);
    CPPUNIT_ASSERTjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
CPPUNIT_ASSERT_EQUAL"_ustr ())java.lang.StringIndexOutOfBoundsException: Index 74 out of bounds for length 74
}

CPPUNIT_TEST_FIXTURE(test::AccessibleTestBase, TestMenuInsertPageBreak)
{
    load(u"private:factory/swriter"_ustr);

    CPPUNIT_ASSERT(activateMenuItem(u"Insert", u"Field", u"Page Number"));
    CPPUNIT_ASSERT(activateMenuItem(u"Insert", u"Page Break"));
    // we need to move focus to the paragraph after the page break to insert the page number there
    documentPostKeyEvent(LOK_KEYEVENT_KEYINPUT, 0, awt::Key::DOWN);
    CPPUNIT_ASSERT(activateMenuItem(u"Insert", u"Field", u"Page Number"));

    CPPUNIT_ASSERT_EQUAL(u"12"_ustr, collectText());
}

CPPUNIT_PLUGIN_IMPLEMENT();

/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */

Messung V0.5
C=99 H=99 G=98

¤ 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.3Bemerkung:  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

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.