diff options
author | nyamatongwe <devnull@localhost> | 2010-01-31 06:54:53 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2010-01-31 06:54:53 +0000 |
commit | 926e43d2e9b658fac3adb3fc2c0e0db0e819b819 (patch) | |
tree | 0524f63a25a026c8de1d3e759bf910008aca1bcb /test | |
parent | 5bd974736e7a105a890b17cce440deda27688d5d (diff) | |
download | scintilla-mirror-926e43d2e9b658fac3adb3fc2c0e0db0e819b819.tar.gz |
Added SCI_SETFIRSTVISIBLELINE to match SCI_GETFIRSTVISIBLELINE.
Diffstat (limited to 'test')
-rw-r--r-- | test/simpleTests.py | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/test/simpleTests.py b/test/simpleTests.py index feab296b9..2793361b2 100644 --- a/test/simpleTests.py +++ b/test/simpleTests.py @@ -697,6 +697,29 @@ class TestIndicators(unittest.TestCase): self.assertEquals(self.ed.IndicGetStyle(0), 2) self.assertEquals(self.ed.IndicGetFore(0), 0xff0080) +class TestScrolling(unittest.TestCase): + + def setUp(self): + self.xite = XiteWin.xiteFrame + self.ed = self.xite.ed + self.ed.ClearAll() + self.ed.EmptyUndoBuffer() + # 150 should be enough lines + self.ed.InsertText(0, b"a\n" * 150) + + def testTop(self): + self.ed.GotoLine(0) + self.assertEquals(self.ed.FirstVisibleLine, 0) + + def testLineScroll(self): + self.ed.GotoLine(0) + self.ed.LineScroll(0, 3) + self.assertEquals(self.ed.FirstVisibleLine, 3) + + def testVisibleLine(self): + self.ed.FirstVisibleLine = 7 + self.assertEquals(self.ed.FirstVisibleLine, 7) + class TestSearch(unittest.TestCase): def setUp(self): |