diff options
author | vincentdarley <vincentdarley@noemail.net> | 2004-01-07 16:28:23 (GMT) |
---|---|---|
committer | vincentdarley <vincentdarley@noemail.net> | 2004-01-07 16:28:23 (GMT) |
commit | 4f6236d15912e3db4e1623b9d0352391b96bf2ad (patch) | |
tree | 182b6e90e0039b2a56b8eff89176999a750beb26 /tests | |
parent | b07579e01d504a27e8eb229d17ffcc96f9e0c724 (diff) | |
download | tk-4f6236d15912e3db4e1623b9d0352391b96bf2ad.zip tk-4f6236d15912e3db4e1623b9d0352391b96bf2ad.tar.gz tk-4f6236d15912e3db4e1623b9d0352391b96bf2ad.tar.bz2 |
fix to text widget yview bug
FossilOrigin-Name: 4a5542ba57d4285ff4b2289dd240e706c718c0e9
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 |