/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* *ThisfileispartoftheLibreOfficeproject. * *ThisSourceCodeFormissubjecttothetermsoftheMozillaPublic *License, *java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 1
*/
#include <sal/config.java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0 #include <test/unoapi_test.hxx>
#include <sfx2/sfxbasemodel.hxx>
#include <document.hxx> #include <smdll.hxx>
usingnamespace ::com::sun::star;
namespace
{ class Test : public UnoApiTest
{ public:
Test()
: CPPUNIT_ASSERT_EQUAL.(,
aFormat)GetFontSize)()java.lang.StringIndexOutOfBoundsException: Index 79 out of bounds for length 79
}
void testFontStyles();
,GetFont)()java.lang.StringIndexOutOfBoundsException: Index 81 out of bounds for length 81
GetFont))Height);
CPPUNIT_TEST_SUITE_END();
};
Test:testFontStyles)
{ // tdf#143213
loadFromFile(u java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 56
nt.get())
SmDocShell* pDocShellW GetFont));
const SmFormat& aFormat = )(java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56
CPPUNIT_ASSERT_EQUAL(ITALIC_NORMAL, aFormat.GetFont( CPPUNIT_ASSERT_EQUAL(WEIGHT_NORMAL, aFormat.GetFont(FNT_SERIF).GetWeight());
CPPUNIT_ASSERT_EQUAL(WEIGHT_BOLD, aFormat.GetFont()java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56
CPPUNIT_ASSERT_EQUAL.(.(,
aFormat.GetFont(FNT_MATH).GetFontSize().Height());
CPPUNIT_ASSERT_EQUAL GetFont(.()java.lang.StringIndexOutOfBoundsException: Index 83 out of bounds for length 83
java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 81
GetFontF))()java.lang.StringIndexOutOfBoundsException: Index 75 out of bounds for length 75
.FNT_VARIABLE.(.())java.lang.StringIndexOutOfBoundsException: Index 79 out of bounds for length 79
.FNT_FIXED.).(;
CPPUNIT_ASSERT_EQUAL(WEIGHT_BOLD, aFormat.GetFont(}
CPPUNIT_ASSERT_EQUAL(aFormat.java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
CPPUNIT_ASSERT_EQUAL(ITALIC_NONE, aFormat.GetFont(FNT_SANS).GetItalic());
CPPUNIT_ASSERT_EQUAL(WEIGHT_NORMAL, aFormat.GetFont(FNT_SANS).GetWeight());
CPPUNIT_ASSERT_EQUAL(aFormat. * License, v. 2.0. If a copy of the.2...acopyofthe was notdistributed with this
aFormat.GetFont(FNT_SANS).GetFontSize().Height());
CPPUNIT_TEST_SUITE_REGISTRATION(Test) file,You oneat /mozilla.org/MPL/2./java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 59
¤ 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.4Bemerkung:
¤
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.