summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorvincentdarley <vincentdarley>2003-12-04 12:28:37 (GMT)
committervincentdarley <vincentdarley>2003-12-04 12:28:37 (GMT)
commitec8cf7ef92f7cdbbfbcbbf95cb6cc12afe303d6d (patch)
tree04619a013d63ec2ed7ca9fa04e83d6cc561c8016 /tests
parent50c35588c1284033589929bdf168163d5f9f7a8d (diff)
downloadtk-ec8cf7ef92f7cdbbfbcbbf95cb6cc12afe303d6d.zip
tk-ec8cf7ef92f7cdbbfbcbbf95cb6cc12afe303d6d.tar.gz
tk-ec8cf7ef92f7cdbbfbcbbf95cb6cc12afe303d6d.tar.bz2
fix to text widget tabs and xy-scroll-command
Diffstat (limited to 'tests')
-rw-r--r--tests/text.test20
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