summaryrefslogtreecommitdiffstats
path: root/tests/text.test
diff options
context:
space:
mode:
authorvincentdarley <vincentdarley>2004-09-23 14:56:35 (GMT)
committervincentdarley <vincentdarley>2004-09-23 14:56:35 (GMT)
commitff49febdf99cde8f07bc81a9e5ad5cc8810c8b1f (patch)
tree988d0d18dbc1fa77612fcdb7e3ca8fb110c77785 /tests/text.test
parent1709b7b141a400dba7c70616c6a6d46cb0ceaea0 (diff)
downloadtk-ff49febdf99cde8f07bc81a9e5ad5cc8810c8b1f.zip
tk-ff49febdf99cde8f07bc81a9e5ad5cc8810c8b1f.tar.gz
tk-ff49febdf99cde8f07bc81a9e5ad5cc8810c8b1f.tar.bz2
text widget search fix
Diffstat (limited to 'tests/text.test')
-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