summaryrefslogtreecommitdiffstats
path: root/tests/clrpick.test
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2022-10-28 21:49:04 (GMT)
committerfvogel <fvogelnew1@free.fr>2022-10-28 21:49:04 (GMT)
commit3a0954e898f42ec541a8efffd6c07cba3f06240e (patch)
treed7bfd03eba4539c34bafcf0d0ad2b0de82c293ed /tests/clrpick.test
parentaf298e611c2eb20bce0b6a501f16925a54bf1c59 (diff)
downloadtk-3a0954e898f42ec541a8efffd6c07cba3f06240e.zip
tk-3a0954e898f42ec541a8efffd6c07cba3f06240e.tar.gz
tk-3a0954e898f42ec541a8efffd6c07cba3f06240e.tar.bz2
clrpick.test: Fix typos, and simplify clrpick-2.1
Diffstat (limited to 'tests/clrpick.test')
-rw-r--r--tests/clrpick.test17
1 files changed, 2 insertions, 15 deletions
diff --git a/tests/clrpick.test b/tests/clrpick.test
index 747a1c4..30b954b 100644
--- a/tests/clrpick.test
+++ b/tests/clrpick.test
@@ -79,7 +79,7 @@ test clrpick-1.7 {tk_chooseColor command} -body {
# tests 3.1 and 3.2 fail when individually run
# if there is no catch {tk_chooseColor -foo 1} msg
-# before settin isNative
+# before setting isNative
catch {tk_chooseColor -foo 1} msg
set isNative [expr {[info commands tk::dialog::color::] eq ""}]
@@ -144,23 +144,10 @@ proc SendButtonPress {parent btn type} {
}
-
test clrpick-2.1 {tk_chooseColor command} -constraints {
nonUnixUserInteraction colorsLeftover
} -setup {
- set verylongstring longstring:
- set verylongstring $verylongstring$verylongstring
- set verylongstring $verylongstring$verylongstring
- set verylongstring $verylongstring$verylongstring
- set verylongstring $verylongstring$verylongstring
- #set verylongstring $verylongstring$verylongstring
- # Interesting thing...when this is too long, the
- # delay caused in processing it kills the automated testing,
- # and makes a lot of the test cases fail.
- #set verylongstring $verylongstring$verylongstring
- #set verylongstring $verylongstring$verylongstring
- #set verylongstring $verylongstring$verylongstring
- #set verylongstring $verylongstring$verylongstring
+ set verylongstring [string repeat longstring: 100]
} -body {
ToPressButton . ok
tk_chooseColor -title "Press Ok $verylongstring" -initialcolor #404040 \