diff options
author | Neil <nyamatongwe@gmail.com> | 2013-07-07 13:51:23 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2013-07-07 13:51:23 +1000 |
commit | 667153895f63b018577ea7b4763fd03c8f792aad (patch) | |
tree | d392682c1506357991439f0baaba1db570ac63ac /test/ScintillaCallable.py | |
parent | 3b65b347c35c335530c80a2be8f2d607b2f06e2d (diff) | |
download | scintilla-mirror-667153895f63b018577ea7b4763fd03c8f792aad.tar.gz |
First argument to SetText is not used so was difficult to set a text containing NUL.
Add SetContents to make it easier to setup test cases.
Diffstat (limited to 'test/ScintillaCallable.py')
-rw-r--r-- | test/ScintillaCallable.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/ScintillaCallable.py b/test/ScintillaCallable.py index 4870e7388..8dbcfcdee 100644 --- a/test/ScintillaCallable.py +++ b/test/ScintillaCallable.py @@ -151,4 +151,9 @@ class ScintillaCallable: def Contents(self): return self.ByteRange(0, self.Length) + + def SetContents(self, s): + self.TargetStart = 0 + self.TargetEnd = self.Length + self.ReplaceTarget(len(s), s) |