diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2024-02-13 08:03:35 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2024-02-13 08:03:35 (GMT) |
commit | 21858bdc27939c88f98879dbcdfeae1d08c41cfe (patch) | |
tree | e2175fc6c18511f0bd7df9f4486113282f991bb1 /tests | |
parent | 05eb869dbcdefcf1fdb5a36c3d97b6d127aaf889 (diff) | |
parent | 00b452f1412611360868f1c70292cbf4cf7b3cdc (diff) | |
download | tk-21858bdc27939c88f98879dbcdfeae1d08c41cfe.zip tk-21858bdc27939c88f98879dbcdfeae1d08c41cfe.tar.gz tk-21858bdc27939c88f98879dbcdfeae1d08c41cfe.tar.bz2 |
Rebase to 9.0
Diffstat (limited to 'tests')
-rw-r--r-- | tests/spinbox.test | 11 | ||||
-rw-r--r-- | tests/ttk/spinbox.test | 11 |
2 files changed, 18 insertions, 4 deletions
diff --git a/tests/spinbox.test b/tests/spinbox.test index 4187966..6cb52e9 100644 --- a/tests/spinbox.test +++ b/tests/spinbox.test @@ -3892,15 +3892,22 @@ test spinbox-25.3 {Bugs [2a32225cd1] and [9fa3e08243]} -setup { destroy .s pack [spinbox .s] update + set res {} } -body { .s insert end "A sample text" .s icursor end event generate .s <<PrevWord>> ; # shall move insert to index 9 .s delete insert end - .s get + lappend res [.s get] + .s delete 0 end + .s insert end "A sample text" + .s icursor 2 + event generate .s <<NextWord>> ; # shall move insert to index 9 + .s delete 0 insert + lappend res [.s get] } -cleanup { destroy .s -} -result {A sample } +} -result {{A sample } text} # Collected comments about lacks from the test # XXX Still need to write tests for SpinboxBlinkProc, SpinboxFocusProc, diff --git a/tests/ttk/spinbox.test b/tests/ttk/spinbox.test index 0a3f943..1f32049 100644 --- a/tests/ttk/spinbox.test +++ b/tests/ttk/spinbox.test @@ -291,15 +291,22 @@ test spinbox-11.2 {Bugs [2a32225cd1] and [9fa3e08243]} -setup { destroy .s pack [ttk::spinbox .s] update + set res {} } -body { .s insert end "A sample text" .s icursor end event generate .s <<PrevWord>> ; # shall move insert to index 9 .s delete insert end - .s get + lappend res [.s get] + .s delete 0 end + .s insert end "A sample text" + .s icursor 2 + event generate .s <<NextWord>> ; # shall move insert to index 9 + .s delete 0 insert + lappend res [.s get] } -cleanup { destroy .s -} -result {A sample } +} -result {{A sample } text} # nostomp: NB intentional difference between ttk::spinbox and tk::spinbox; |