diff options
author | fvogel <fvogelnew1@free.fr> | 2016-01-09 00:03:22 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2016-01-09 00:03:22 (GMT) |
commit | 1577839e34e7c942d4a6d2632ea4f0f0aeda91a5 (patch) | |
tree | f64eed1cfcf939db4fd8b00beeaadfd678a3a3e5 /tests/scrollbar.test | |
parent | bfd23c8031316d2b1269299adc88cb71407aa741 (diff) | |
download | tk-1577839e34e7c942d4a6d2632ea4f0f0aeda91a5.zip tk-1577839e34e7c942d4a6d2632ea4f0f0aeda91a5.tar.gz tk-1577839e34e7c942d4a6d2632ea4f0f0aeda91a5.tar.bz2 |
Test cases scrollbar-10.[12] pass
Diffstat (limited to 'tests/scrollbar.test')
-rw-r--r-- | tests/scrollbar.test | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/scrollbar.test b/tests/scrollbar.test index 6717deb..85ee8b9 100644 --- a/tests/scrollbar.test +++ b/tests/scrollbar.test @@ -632,7 +632,7 @@ test scrollbar-9.1 {scrollbar widget vs hidden commands} { list [winfo children .] [interp hidden] } [list {} $l] -test scrollbar-10.1 {<MouseWheel> event on scrollbar} -setup { +test scrollbar-10.1 {<MouseWheel> event on scrollbar} -constraints {win unix} -setup { destroy .t .s } -body { pack [text .t -yscrollcommand {.s set}] -side left @@ -645,12 +645,12 @@ test scrollbar-10.1 {<MouseWheel> event on scrollbar} -setup { .t index @0,0 } -cleanup { destroy .t .s -} -result {2.0} +} -result {5.0} -test scrollbar-10.2 {<MouseWheel> event on scrollbar} -setup { +test scrollbar-10.2 {<MouseWheel> event on scrollbar} -constraints {win unix} -setup { destroy .t .s } -body { - pack [text .t -xscrollcommand {.s set}] -side top + pack [text .t -xscrollcommand {.s set} -wrap none] -side top for {set i 1} {$i < 100} {incr i} {.t insert end "Char $i "} pack [scrollbar .s -command {.t xview} -orient horizontal] -fill x -expand 1 -side top update @@ -660,7 +660,7 @@ test scrollbar-10.2 {<MouseWheel> event on scrollbar} -setup { .t index @0,0 } -cleanup { destroy .t .s -} -result {2.0} +} -result {1.4} catch {destroy .s} catch {destroy .t} |