diff options
author | fvogel <fvogel@noemail.net> | 2015-12-11 10:49:31 (GMT) |
---|---|---|
committer | fvogel <fvogel@noemail.net> | 2015-12-11 10:49:31 (GMT) |
commit | b461d0882aa79239de1dec651e850b20311a08b8 (patch) | |
tree | f49c9f78792bd736881c586456cdf50ba075fa02 | |
parent | 4e2c0cd3347a6724ed4fe13c9a39542eefc1d72d (diff) | |
parent | b8e1d7f88f5ba9fbf92ea5cdddfd4ce854a8fad1 (diff) | |
download | tk-b461d0882aa79239de1dec651e850b20311a08b8.zip tk-b461d0882aa79239de1dec651e850b20311a08b8.tar.gz tk-b461d0882aa79239de1dec651e850b20311a08b8.tar.bz2 |
Merged core-8-5-branch
FossilOrigin-Name: 18f66c5c5bf826c3f3b0c8fc242e17021f827405
-rw-r--r-- | tests/spinbox.test | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/tests/spinbox.test b/tests/spinbox.test index e8f027b..5fba390 100644 --- a/tests/spinbox.test +++ b/tests/spinbox.test @@ -1568,7 +1568,23 @@ test spinbox-22.3 {spinbox config, -from changes SF bug 559078} { set val } {6} -test spinbox-23.1 {error in trace proc attached to the textvariable} { +test spinbox-23.1 {selection present while disabled, bug 637828} { + destroy .e + spinbox .e + .e insert end 0123456789 + .e select from 3 + .e select to 6 + set out [.e selection present] + .e configure -state disabled + # still return 1 when disabled, because 'selection get' will work, + # but selection cannot be changed (new behavior since 8.4) + .e select to 9 + lappend out [.e selection present] [selection get] +} {1 1 345} + +destroy .e + +test spinbox-24.1 {error in trace proc attached to the textvariable} { destroy .s trace variable myvar w traceit proc traceit args {error "Intentional error here!"} @@ -1583,7 +1599,6 @@ test spinbox-23.1 {error in trace proc attached to the textvariable} { {can't set "myvar": Intentional error here!} \ {can't set "myvar": Intentional error here!}] -destroy .e catch {unset ::e ::vVals} ## |