diff options
Diffstat (limited to 'tests/ttk')
-rw-r--r-- | tests/ttk/entry.test | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/ttk/entry.test b/tests/ttk/entry.test index 26831e7..d303446 100644 --- a/tests/ttk/entry.test +++ b/tests/ttk/entry.test @@ -281,7 +281,7 @@ test entry-9.1 "Index range invariants" -setup { } test entry-10.1 {configuration option: "-placeholder"} -setup { - pack [entry .e] + pack [ttk::entry .e] } -body { .e configure -placeholder {Some text} .e cget -placeholder @@ -289,4 +289,13 @@ test entry-10.1 {configuration option: "-placeholder"} -setup { destroy .e } -result {Some text} +test entry-10.2 {configuration option: "-placeholderforeground"} -setup { + pack [ttk::entry .e] +} -body { + .e configure -placeholder {Some text} -placeholderforeground red + .e cget -placeholderforeground +} -cleanup { + destroy .e +} -result {red} + tcltest::cleanupTests |