calc: on editing invalidation of view with different zoom is wrong
[LibreOffice.git] / svx / qa / unit / ThemeTest.cxx
blobc3aeb93b021778bff99a48104a7365f5aa0bde14
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 */
10 #include <cppunit/TestAssert.h>
11 #include <cppunit/TestFixture.h>
12 #include <cppunit/extensions/HelperMacros.h>
13 #include <cppunit/plugin/TestPlugIn.h>
15 #include <config_features.h>
17 #include <docmodel/theme/Theme.hxx>
19 namespace
21 class ThemeTest : public CppUnit::TestFixture
25 CPPUNIT_TEST_FIXTURE(ThemeTest, testPitchFamilyConversion)
27 model::ThemeFont aFont;
28 aFont.maPitch = 2;
29 aFont.maFamily = 1;
31 CPPUNIT_ASSERT_EQUAL(sal_Int16(0x12), aFont.getPitchFamily());
33 aFont.maPitch = sal_Int16(0x7FF2); // only lower 4-bit
34 aFont.maFamily = sal_Int16(0x7FF3); // only lower 4-bit
36 CPPUNIT_ASSERT_EQUAL(sal_Int16(0x32), aFont.getPitchFamily());
40 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */