From b203d169ce0cc315f6e9892861eda150edcf77d9 Mon Sep 17 00:00:00 2001 From: Neil Date: Sun, 7 Jul 2013 13:51:23 +1000 Subject: 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. --- test/ScintillaCallable.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test/ScintillaCallable.py') 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) -- cgit v1.2.3