summaryrefslogtreecommitdiffstats
path: root/tests/scrollbar.test
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2016-01-09 00:03:22 (GMT)
committerfvogel <fvogelnew1@free.fr>2016-01-09 00:03:22 (GMT)
commit1577839e34e7c942d4a6d2632ea4f0f0aeda91a5 (patch)
treef64eed1cfcf939db4fd8b00beeaadfd678a3a3e5 /tests/scrollbar.test
parentbfd23c8031316d2b1269299adc88cb71407aa741 (diff)
downloadtk-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.test10
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}