/* -*- 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/.
*/
void TestTdf149714::testBitsPerPixel()
{ auto m = Module(); auto GetBitsPerPixelAsString
= m->FindMethod(u"GetBitsPerPixelAsString"_ustr, SbxClassType::Method);
CPPUNIT_ASSERT_MESSAGE("Could not Find GetBitsPerPixelAsString in module",
GetBitsPerPixelAsString != nullptr);
SbxVariableRef returned = new SbxMethod{ *GetBitsPerPixelAsString };
CPPUNIT_ASSERT(returned->IsString());
// Without the fix in place this would fail with: // - Expected: 24 // - Actual: True
CPPUNIT_ASSERT_EQUAL(u"24"_ustr, returned->GetOUString());
}
// Put the test suite in the registry
CPPUNIT_TEST_SUITE_REGISTRATION(TestTdf149714);
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 ist noch experimentell.