summaryrefslogtreecommitdiffstats
path: root/tests/text.test
diff options
context:
space:
mode:
authorvincentdarley <vincentdarley>2004-01-07 16:28:23 (GMT)
committervincentdarley <vincentdarley>2004-01-07 16:28:23 (GMT)
commit46eead19d1ac38c3bcc59c7b24ab3a621b29eb3b (patch)
tree182b6e90e0039b2a56b8eff89176999a750beb26 /tests/text.test
parent635a8263e2a11333a1940f788b530eaeeda89275 (diff)
downloadtk-46eead19d1ac38c3bcc59c7b24ab3a621b29eb3b.zip
tk-46eead19d1ac38c3bcc59c7b24ab3a621b29eb3b.tar.gz
tk-46eead19d1ac38c3bcc59c7b24ab3a621b29eb3b.tar.bz2
fix to text widget yview bug
Diffstat (limited to 'tests/text.test')
-rw-r--r--tests/text.test20
1 files changed, 19 insertions, 1 deletions
diff --git a/tests/text.test b/tests/text.test
index bf7314b..1672138 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.27 2003/12/05 17:19:06 vincentdarley Exp $
+# RCS: @(#) $Id: text.test,v 1.28 2004/01/07 16:28:45 vincentdarley Exp $
package require tcltest 2.1
eval tcltest::configure $argv
@@ -2929,6 +2929,24 @@ test text-27.4 {tabs - must be positive and must be increasing} {
set result 1
} {1}
+test text-28.0 {repeated insert and scroll} {
+ foreach subcmd {
+ {moveto 1}
+ {scroll 1 pages}
+ {scroll 100 pixels}
+ {scroll 10 units}
+ } {
+ destroy .t
+ pack [text .t]
+ for {set i 0} {$i < 30} {incr i} {
+ .t insert end "blabla\n"
+ eval .t yview $subcmd
+ }
+ }
+ # This test must simply not crash to succeed
+ set result 1
+} {1}
+
deleteWindows
option clear