aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/XiteWin.py
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2018-05-04 09:24:39 +1000
committerNeil <nyamatongwe@gmail.com>2018-05-04 09:24:39 +1000
commit3d306c9e78228fc77fcd7e7a9f7b4f5415875681 (patch)
tree01280623ffd9c6ca81279d6e2672de6043929e0d /test/XiteWin.py
parent1a35c89b60c7e487d005c632b1e8f7e00eb961ab (diff)
downloadscintilla-mirror-3d306c9e78228fc77fcd7e7a9f7b4f5415875681.tar.gz
Add -large command line option for testing large document option.
Diffstat (limited to 'test/XiteWin.py')
-rw-r--r--test/XiteWin.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/XiteWin.py b/test/XiteWin.py
index 5953fd502..77bb313d7 100644
--- a/test/XiteWin.py
+++ b/test/XiteWin.py
@@ -150,6 +150,8 @@ class XiteWin():
self.appName = "xite"
+ self.large = "-large" in sys.argv
+
self.cmds = {}
self.windowName = "XiteWindow"
self.wfunc = WFUNC(self.WndProc)
@@ -158,7 +160,7 @@ class XiteWin():
WS_VISIBLE | WS_OVERLAPPEDWINDOW | WS_CLIPCHILDREN, \
0, 0, 500, 700, 0, 0, hinst, 0)
- args = sys.argv[1:]
+ args = [a for a in sys.argv[1:] if not a.startswith("-")]
self.SetMenus()
if args:
self.GrabFile(args[0])
@@ -198,6 +200,9 @@ class XiteWin():
sciptr = c_char_p(user32.SendMessageW(self.sciHwnd,
int(self.face.features["GetDirectPointer"]["Value"], 0), 0,0))
self.ed = ScintillaCallable.ScintillaCallable(self.face, scifn, sciptr)
+ if self.large:
+ doc = self.ed.CreateDocument(10, 0x100)
+ self.ed.SetDocPointer(0, doc)
self.FocusOnEditor()