diff options
author | fvogel <fvogelnew1@free.fr> | 2020-01-18 12:08:41 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2020-01-18 12:08:41 (GMT) |
commit | 3930846c8e8c238310cc93c4214f54ca4fc9e27b (patch) | |
tree | ac39bebd380beb5a94793a69e6dac5b003f9b0f6 /tests | |
parent | e970d02a227279ca90ed80e99e330bbde75d0fd5 (diff) | |
parent | cfaf3bb262bde15d44e1fe6b640cce1eb165d891 (diff) | |
download | tk-3930846c8e8c238310cc93c4214f54ca4fc9e27b.zip tk-3930846c8e8c238310cc93c4214f54ca4fc9e27b.tar.gz tk-3930846c8e8c238310cc93c4214f54ca4fc9e27b.tar.bz2 |
Fix [2830360fff]: ttk::entry looses state invalid at focus events. Add non-regression test entry-10.1
Diffstat (limited to 'tests')
-rw-r--r-- | tests/ttk/entry.test | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/ttk/entry.test b/tests/ttk/entry.test index 34795fe..8b5f490 100644 --- a/tests/ttk/entry.test +++ b/tests/ttk/entry.test @@ -312,4 +312,16 @@ test entry-9.1 "Index range invariants" -setup { destroy .e } +test entry-10.1 {Bug [2830360fff] - Don't loose invalid at focus events} -setup { + pack [ttk::entry .e] + update +} -body { + .e state invalid + set res [.e state] + event generate .e <FocusOut> + lappend res [.e state] +} -result {invalid invalid} -cleanup { + destroy .e +} + tcltest::cleanupTests |