summaryrefslogtreecommitdiffstats
path: root/tests/textTag.test
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2016-02-09 21:45:19 (GMT)
committerfvogel <fvogelnew1@free.fr>2016-02-09 21:45:19 (GMT)
commitef72d15557c5d17d8810a8c16a52edf7af887680 (patch)
tree1e2086caff3eb7b6f67e1058c7a0c7637ab09097 /tests/textTag.test
parent066e1ea2f98b7472f540eb63571a56557244d3f4 (diff)
downloadtk-ef72d15557c5d17d8810a8c16a52edf7af887680.zip
tk-ef72d15557c5d17d8810a8c16a52edf7af887680.tar.gz
tk-ef72d15557c5d17d8810a8c16a52edf7af887680.tar.bz2
-overstrikefg tag configuration option: tests
Diffstat (limited to 'tests/textTag.test')
-rw-r--r--tests/textTag.test18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/textTag.test b/tests/textTag.test
index ae71a48..c2feaa7 100644
--- a/tests/textTag.test
+++ b/tests/textTag.test
@@ -198,6 +198,17 @@ test textTag-1.21 {configuration options} -constraints {
} -cleanup {
.t tag configure x -overstrike [lindex [.t tag configure x -overstrike] 3]
} -returnCodes error -result {expected boolean value but got "stupid"}
+test textTag-1.21a {tag configuration options} -body {
+ .t tag configure x -overstrikefg red
+ .t tag cget x -overstrikefg
+} -cleanup {
+ .t tag configure x -overstrikefg [lindex [.t tag configure x -overstrikefg] 3]
+} -result {red}
+test textTag-1.21b {configuration options} -body {
+ .t tag configure x -overstrikefg stupid
+} -cleanup {
+ .t tag configure x -overstrikefg [lindex [.t tag configure x -overstrikefg] 3]
+} -returnCodes error -result {unknown color name "stupid"}
test textTag-1.22 {tag configuration options} -constraints {
haveCourier12
} -body {
@@ -630,6 +641,13 @@ test textTag-5.5 {TkTextTagCmd - "configure" option} -constraints {
} -cleanup {
.t tag delete x
} -result {on}
+test textTag-5.5a {TkTextTagCmd - "configure" option} -body {
+ .t tag delete x
+ .t tag configure x -overstrikefg lightgreen
+ .t tag configure x -overstrikefg
+} -cleanup {
+ .t tag delete x
+} -result {-overstrikefg {} {} {} lightgreen}
test textTag-5.6 {TkTextTagCmd - "configure" option} -constraints {
haveCourier12
} -body {