summaryrefslogtreecommitdiff
path: root/vcl/qa
diff options
context:
space:
mode:
authorChris Sherlock <chris.sherlock79@gmail.com>2016-01-19 14:10:02 +1100
committerChris Sherlock <chris.sherlock79@gmail.com>2016-01-19 19:45:48 +0000
commit94b7876e43a88618364c8256f0645e70d0daae6f (patch)
tree760041ea56da0f49b16a5d208de407e5ff411a79 /vcl/qa
parent9c09d4d0d36076d39926eeaf7774171df3b55e52 (diff)
vcl: add quality accessor & mutator to Font
Change-Id: I261c717cabf966b8b20b8e6c921b38f4cd73e268 Reviewed-on: https://gerrit.libreoffice.org/21597 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
Diffstat (limited to 'vcl/qa')
-rw-r--r--vcl/qa/cppunit/font.cxx13
1 files changed, 13 insertions, 0 deletions
diff --git a/vcl/qa/cppunit/font.cxx b/vcl/qa/cppunit/font.cxx
index a8532a978c37..f4fcf1892996 100644
--- a/vcl/qa/cppunit/font.cxx
+++ b/vcl/qa/cppunit/font.cxx
@@ -26,6 +26,7 @@ public:
void testWidthType();
void testPitch();
void testItalic();
+ void testQuality();
void testSymbolFlagAndCharSet();
CPPUNIT_TEST_SUITE(VclFontTest);
@@ -34,6 +35,7 @@ public:
CPPUNIT_TEST(testWidthType);
CPPUNIT_TEST(testPitch);
CPPUNIT_TEST(testItalic);
+ CPPUNIT_TEST(testQuality);
CPPUNIT_TEST(testSymbolFlagAndCharSet);
CPPUNIT_TEST_SUITE_END();
};
@@ -91,6 +93,17 @@ void VclFontTest::testPitch()
CPPUNIT_ASSERT_EQUAL_MESSAGE( "Pitch should be PITCH_FIXED", FontPitch::PITCH_FIXED, aFont.GetPitch());
}
+void VclFontTest::testQuality()
+{
+ vcl::Font aFont;
+
+ CPPUNIT_ASSERT_EQUAL( (int)0, aFont.GetQuality() );
+
+ aFont.SetQuality( 100 );
+ CPPUNIT_ASSERT_EQUAL( (int)100, aFont.GetQuality());
+}
+
+
void VclFontTest::testSymbolFlagAndCharSet()
{
// default constructor should set scalable flag to false