summaryrefslogtreecommitdiffstats
path: root/tests
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)
commitac43dfdc269f9ea9dc7448bc815aba5f28a96efc (patch)
treef64eed1cfcf939db4fd8b00beeaadfd678a3a3e5 /tests
parenta74bdffd9369f2ed76ba90a5497e5a4f7b2475cd (diff)
downloadtk-ac43dfdc269f9ea9dc7448bc815aba5f28a96efc.zip
tk-ac43dfdc269f9ea9dc7448bc815aba5f28a96efc.tar.gz
tk-ac43dfdc269f9ea9dc7448bc815aba5f28a96efc.tar.bz2
Test cases scrollbar-10.[12] pass
Diffstat (limited to 'tests')
-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}