diff options
author | fvogel <fvogelnew1@free.fr> | 2016-02-09 21:45:19 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2016-02-09 21:45:19 (GMT) |
commit | 74d865bb3e520e131dc6655986fe79141120c2e9 (patch) | |
tree | 1e2086caff3eb7b6f67e1058c7a0c7637ab09097 | |
parent | 935d5f2814f55a18088b4ce4a3cfc6cb76fa86df (diff) | |
download | tk-74d865bb3e520e131dc6655986fe79141120c2e9.zip tk-74d865bb3e520e131dc6655986fe79141120c2e9.tar.gz tk-74d865bb3e520e131dc6655986fe79141120c2e9.tar.bz2 |
-overstrikefg tag configuration option: tests
-rw-r--r-- | tests/textTag.test | 18 |
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 { |