diff options
author | vincentdarley <vincentdarley> | 2004-01-07 16:28:23 (GMT) |
---|---|---|
committer | vincentdarley <vincentdarley> | 2004-01-07 16:28:23 (GMT) |
commit | 9c5f4049da417ed02b8a48adcc61ff8f88bfce2e (patch) | |
tree | 182b6e90e0039b2a56b8eff89176999a750beb26 /tests | |
parent | 4bed7923e3d13f9f4e7841c45e3ecfca69d74961 (diff) | |
download | tk-9c5f4049da417ed02b8a48adcc61ff8f88bfce2e.zip tk-9c5f4049da417ed02b8a48adcc61ff8f88bfce2e.tar.gz tk-9c5f4049da417ed02b8a48adcc61ff8f88bfce2e.tar.bz2 |
fix to text widget yview bug
Diffstat (limited to 'tests')
-rw-r--r-- | tests/text.test | 20 |
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 |