summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorvincentdarley <vincentdarley@noemail.net>2004-09-23 14:56:34 (GMT)
committervincentdarley <vincentdarley@noemail.net>2004-09-23 14:56:34 (GMT)
commit64a02516c962123090635fd81a215f6be2ee879e (patch)
tree988d0d18dbc1fa77612fcdb7e3ca8fb110c77785 /tests
parentba46af92e7bb999a247793452389f1db9baa5ed7 (diff)
downloadtk-64a02516c962123090635fd81a215f6be2ee879e.zip
tk-64a02516c962123090635fd81a215f6be2ee879e.tar.gz
tk-64a02516c962123090635fd81a215f6be2ee879e.tar.bz2
text widget search fix
FossilOrigin-Name: 8d8ebd87dd511f854e435787e7945b74840ab102
Diffstat (limited to 'tests')
-rw-r--r--tests/text.test30
1 files changed, 29 insertions, 1 deletions
diff --git a/tests/text.test b/tests/text.test
index 63b43ce..aeebf6f 100644
--- a/tests/text.test
+++ b/tests/text.test
@@ -6,7 +6,7 @@
# Copyright (c) 1998-1999 by Scriptics Corporation.
# All rights reserved.
#
-# RCS: @(#) $Id: text.test,v 1.32 2004/09/10 12:13:43 vincentdarley Exp $
+# RCS: @(#) $Id: text.test,v 1.33 2004/09/23 14:57:25 vincentdarley Exp $
package require tcltest 2.1
eval tcltest::configure $argv
@@ -2677,6 +2677,34 @@ test text-20.175 {TextSearchCmd, regexp search multi-line} {
set res
} {2.3 13}
+test text-20.176 {TextSearchCmd, empty search range} {
+ deleteWindows
+ pack [text .t2]
+ .t2 insert 1.0 "a\na\na\n"
+ .t2 search -- a 2.0 1.0
+} {}
+
+test text-20.177 {TextSearchCmd, empty search range} {
+ deleteWindows
+ pack [text .t2]
+ .t2 insert 1.0 "a\na\na\n"
+ .t2 search -backwards -- a 1.0 2.0
+} {}
+
+test text-20.178 {TextSearchCmd, empty search range} {
+ deleteWindows
+ pack [text .t2]
+ .t2 insert 1.0 "a\na\na\n"
+ .t2 search -- a 1.0 1.0
+} {}
+
+test text-20.179 {TextSearchCmd, empty search range} {
+ deleteWindows
+ pack [text .t2]
+ .t2 insert 1.0 "a\na\na\n"
+ .t2 search -backwards -- a 2.0 2.0
+} {}
+
deleteWindows
text .t2 -highlightthickness 0 -bd 0 -relief flat -padx 0 -width 100
pack .t2