diff options
Diffstat (limited to 'tests/text.test')
-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 |