summaryrefslogtreecommitdiffstats
path: root/tests/util.test
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2019-07-29 12:48:00 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2019-07-29 12:48:00 (GMT)
commit9e83cbe850e17780f646217d932645e2105b605c (patch)
tree72db352c7424e32a55873cb29230927f4b09a7b2 /tests/util.test
parent6162cfbddcf8e3a169053a09e42e89f5d7b56b28 (diff)
downloadtk-9e83cbe850e17780f646217d932645e2105b605c.zip
tk-9e83cbe850e17780f646217d932645e2105b605c.tar.gz
tk-9e83cbe850e17780f646217d932645e2105b605c.tar.bz2
Add support for "(x|y)view scroll number mouseunits" for text widget, and use it in mouse bindings.
Diffstat (limited to 'tests/util.test')
-rw-r--r--tests/util.test6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/util.test b/tests/util.test
index c1ec6a5..d457b50 100644
--- a/tests/util.test
+++ b/tests/util.test
@@ -28,10 +28,10 @@ test util-1.3 {Tk_GetScrollInfo procedure} -body {
} -result {0.5 0.75}
test util-1.4 {Tk_GetScrollInfo procedure} -body {
.l yview scroll a
-} -returnCodes error -result {wrong # args: should be ".l yview scroll number units|pages"}
+} -returnCodes error -result {wrong # args: should be ".l yview scroll number pages|units"}
test util-1.5 {Tk_GetScrollInfo procedure} -body {
.l yview scroll a b c
-} -returnCodes error -result {wrong # args: should be ".l yview scroll number units|pages"}
+} -returnCodes error -result {wrong # args: should be ".l yview scroll number pages|units"}
test util-1.6 {Tk_GetScrollInfo procedure} -body {
.l yview scroll xyz units
} -returnCodes error -result {expected integer but got "xyz"}
@@ -57,7 +57,7 @@ test util-1.10 {Tk_GetScrollInfo procedure} -body {
} -result {13}
test util-1.11 {Tk_GetScrollInfo procedure} -body {
.l yview scroll 3 zips
-} -returnCodes error -result {bad argument "zips": must be units or pages}
+} -returnCodes error -result {bad argument "zips": must be pages or units}
test util-1.12 {Tk_GetScrollInfo procedure} -body {
.l yview dropdead 3 times
} -returnCodes error -result {unknown option "dropdead": must be moveto or scroll}