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)
commitda6e096e02cd85a57fcea4aa21c7dfe197e717ef (patch)
tree182b6e90e0039b2a56b8eff89176999a750beb26 /tests/text.test
parentbeeb4f13230b34fdef1480655bc3271b75821390 (diff)
downloadtk-da6e096e02cd85a57fcea4aa21c7dfe197e717ef.zip
tk-da6e096e02cd85a57fcea4aa21c7dfe197e717ef.tar.gz
tk-da6e096e02cd85a57fcea4aa21c7dfe197e717ef.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