From 5aed28d2d5d3bb78fee63f31bbd58b7fb00eaec2 Mon Sep 17 00:00:00 2001 From: Neil Date: Sun, 30 May 2021 16:31:28 +1000 Subject: Fix GetFontQuality. Simplify code that calls FlagSet. --- test/simpleTests.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test') diff --git a/test/simpleTests.py b/test/simpleTests.py index bcb11091d..3f607bed6 100644 --- a/test/simpleTests.py +++ b/test/simpleTests.py @@ -1916,6 +1916,11 @@ class TestStyleAttributes(unittest.TestCase): self.ed.SetDefaultFoldDisplayText(0, b"...") self.assertEquals(self.ed.GetDefaultFoldDisplayText(), b"...") + def testFontQuality(self): + self.assertEquals(self.ed.GetFontQuality(), self.ed.SC_EFF_QUALITY_DEFAULT) + self.ed.SetFontQuality(self.ed.SC_EFF_QUALITY_LCD_OPTIMIZED) + self.assertEquals(self.ed.GetFontQuality(), self.ed.SC_EFF_QUALITY_LCD_OPTIMIZED) + def testFontLocale(self): initialLocale = "en-us".encode("UTF-8") testLocale = "zh-Hans".encode("UTF-8") -- cgit v1.2.3