diff options
author | vincentdarley <vincentdarley@noemail.net> | 2003-12-04 12:28:36 (GMT) |
---|---|---|
committer | vincentdarley <vincentdarley@noemail.net> | 2003-12-04 12:28:36 (GMT) |
commit | 159d174c12bc7f8d3e28ffbaf8ed45880f50bf0f (patch) | |
tree | 04619a013d63ec2ed7ca9fa04e83d6cc561c8016 /tests/text.test | |
parent | ab5e5c51ec7ee7de80706c44d5e1914e81f48523 (diff) | |
download | tk-159d174c12bc7f8d3e28ffbaf8ed45880f50bf0f.zip tk-159d174c12bc7f8d3e28ffbaf8ed45880f50bf0f.tar.gz tk-159d174c12bc7f8d3e28ffbaf8ed45880f50bf0f.tar.bz2 |
fix to text widget tabs and xy-scroll-command
FossilOrigin-Name: 8e445371278f1788f708a0f4b9c737c029368cb1
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 9e85c8b..f7d0113 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.25 2003/11/08 17:22:46 vincentdarley Exp $ +# RCS: @(#) $Id: text.test,v 1.26 2003/12/04 12:28:37 vincentdarley Exp $ package require tcltest 2.1 eval tcltest::configure $argv @@ -2899,6 +2899,24 @@ test text-26.1 {bug fix - 624372, ControlUtfProc long lines} { .t insert end [string repeat "\1" 500] } {} +test text-27.1 {tabs - must be positive and must be increasing} { + destroy .t + pack [text .t -wrap none] + list [catch {.t configure -tabs {0}} msg] $msg +} {1 {tab stop "0" is not at a positive distance}} + +test text-27.2 {tabs - must be positive and must be increasing} { + destroy .t + pack [text .t -wrap none] + list [catch {.t configure -tabs {-5}} msg] $msg +} {1 {tab stop "-5" is not at a positive distance}} + +test text-27.3 {tabs - must be positive and must be increasing} { + destroy .t + pack [text .t -wrap none] + list [catch {.t configure -tabs {10c 5c}} msg] $msg +} {1 {tabs must be monotonically increasing, but "5c" is smaller than or equal to the previous tab}} + deleteWindows option clear |