summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorvincentdarley <vincentdarley@noemail.net>2003-12-05 17:19:04 (GMT)
committervincentdarley <vincentdarley@noemail.net>2003-12-05 17:19:04 (GMT)
commit481dd4146b1b58f5528e15b236c09be1fab0d488 (patch)
treeac9a2a3935c2cc5f36e24d0fef108c0e5bb6addc /tests
parent33dd979cef4ef6b4d93afff3a0417510fe3af505 (diff)
downloadtk-481dd4146b1b58f5528e15b236c09be1fab0d488.zip
tk-481dd4146b1b58f5528e15b236c09be1fab0d488.tar.gz
tk-481dd4146b1b58f5528e15b236c09be1fab0d488.tar.bz2
performance of lines containing 10000+ characters
FossilOrigin-Name: 1ca7766af2f95739f9bab2c5d67b7463e5d8ff44
Diffstat (limited to 'tests')
-rw-r--r--tests/text.test16
1 files changed, 14 insertions, 2 deletions
diff --git a/tests/text.test b/tests/text.test
index f7d0113..bf7314b 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.26 2003/12/04 12:28:37 vincentdarley Exp $
+# RCS: @(#) $Id: text.test,v 1.27 2003/12/05 17:19:06 vincentdarley Exp $
package require tcltest 2.1
eval tcltest::configure $argv
@@ -2911,12 +2911,24 @@ test text-27.2 {tabs - must be positive and must be increasing} {
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} {
+test text-27.3 {tabs - must be positive and must be increasing} {knownBug} {
+ # This bug will be fixed in Tk 9.0, when we can allow a minor
+ # incompatibility with Tk 8.x
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}}
+test text-27.4 {tabs - must be positive and must be increasing} {
+ destroy .t
+ pack [text .t -wrap none]
+ .t insert end "a\tb\tc\td\te"
+ catch {.t configure -tabs {10c 5c}}
+ update ; update ; update
+ # This test must simply not go into an infinite loop to succeed
+ set result 1
+} {1}
+
deleteWindows
option clear