diff options
author | fvogel <fvogelnew1@free.fr> | 2016-01-07 14:49:18 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2016-01-07 14:49:18 (GMT) |
commit | da5b5d5d4cf98f984439b3bb3894f60fd711ecaa (patch) | |
tree | 6b6e7f56d84f19baa99f3ad41a0bb8413dccae39 /tests/scrollbar.test | |
parent | 1e82a05ae24e7f98a37ec14440649f3e3f852126 (diff) | |
download | tk-da5b5d5d4cf98f984439b3bb3894f60fd711ecaa.zip tk-da5b5d5d4cf98f984439b3bb3894f60fd711ecaa.tar.gz tk-da5b5d5d4cf98f984439b3bb3894f60fd711ecaa.tar.bz2 |
Added non-regression test for [1927212]
Diffstat (limited to 'tests/scrollbar.test')
-rw-r--r-- | tests/scrollbar.test | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/scrollbar.test b/tests/scrollbar.test index 5d4334f..10aa7d6 100644 --- a/tests/scrollbar.test +++ b/tests/scrollbar.test @@ -632,6 +632,21 @@ test scrollbar-9.1 {scrollbar widget vs hidden commands} { list [winfo children .] [interp hidden] } [list {} $l] +test scrollbar-10.1 {<MouseWheel> event on scrollbar} -constraints win -setup { + destroy .t .s +} -body { + pack [text .t -yscrollcommand {.s set}] -side left + for {set i 1} {$i < 100} {incr i} {.t insert end "Line $i\n"} + pack [scrollbar .s -command {.t yview}] -fill y -expand 1 -side left + update + focus -force .s + event generate .s <MouseWheel> -delta -120 + after 200 {set eventprocessed 1} ; vwait eventprocessed + .t index @0,0 +} -cleanup { + destroy .t .s +} -result {2.0} + catch {destroy .s} catch {destroy .t} |