aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/simpleTests.py
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2021-05-30 16:31:28 +1000
committerNeil <nyamatongwe@gmail.com>2021-05-30 16:31:28 +1000
commit5aed28d2d5d3bb78fee63f31bbd58b7fb00eaec2 (patch)
tree95cfc3561ae6698288e43f3f79e5b2afe2ef8366 /test/simpleTests.py
parentc22692ef627ad4b9019c42a44655f049512cb4b1 (diff)
downloadscintilla-mirror-5aed28d2d5d3bb78fee63f31bbd58b7fb00eaec2.tar.gz
Fix GetFontQuality. Simplify code that calls FlagSet.
Diffstat (limited to 'test/simpleTests.py')
-rw-r--r--test/simpleTests.py5
1 files changed, 5 insertions, 0 deletions
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")