summaryrefslogtreecommitdiffstats
path: root/tests/ttk
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2023-08-02 08:38:41 (GMT)
committerfvogel <fvogelnew1@free.fr>2023-08-02 08:38:41 (GMT)
commitaa8e8ef6479c292abe64ce658c26122b2401e723 (patch)
treeaeef46dd8ca433e8bd596d39ae1249c9f497591c /tests/ttk
parentdc8f78d70ead0c1720be266074a81ac0dbc9692b (diff)
parentf01897a0e242ad0c2ec6781b3c87b54117bf2f26 (diff)
downloadtk-aa8e8ef6479c292abe64ce658c26122b2401e723.zip
tk-aa8e8ef6479c292abe64ce658c26122b2401e723.tar.gz
tk-aa8e8ef6479c292abe64ce658c26122b2401e723.tar.bz2
Fix [2a32225cd1]: Entry widget allows navigating by word in masked password field.
Diffstat (limited to 'tests/ttk')
-rw-r--r--tests/ttk/entry.test19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/ttk/entry.test b/tests/ttk/entry.test
index fd4cddf..d435da8 100644
--- a/tests/ttk/entry.test
+++ b/tests/ttk/entry.test
@@ -375,6 +375,25 @@ test entry-11.1 {Bug [2830360fff] - Don't loose invalid at focus events} -setup
} -result {invalid invalid} -cleanup {
destroy .e
}
+test entry-11.2 {Bug [2a32225cd1] - Navigation in a password made of several words} -setup {
+ destroy .e
+ pack [ttk::entry .e -show *]
+ update
+ set res {}
+} -body {
+ .e insert end "A sample password made of several words"
+ .e icursor end
+ event generate .e <<PrevWord>> ; # shall move insert to index 0
+ .e delete insert end
+ lappend res [.e get]
+ .e insert end "A sample password made of several words"
+ .e icursor 2
+ event generate .e <<NextWord>> ; # shall move insert to index end
+ .e delete 0 insert
+ lappend res [.e get]
+} -cleanup {
+ destroy .e
+} -result {{} {}}
test entry-12.1 "style command" -body {
ttk::entry .w