summaryrefslogtreecommitdiffstats
path: root/tests/focus.test
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-09-28 08:39:06 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-09-28 08:39:06 (GMT)
commitfb70befc9912dfd473e5146838b44663f1273eaf (patch)
treed82b59d8f8ac549b1d4ef6433031986c9e0f37bf /tests/focus.test
parent2c5ed5a8b7862f313354be0a3a3d79e12641e118 (diff)
parentbe873bf63eba1e99003bacf0b8214da688462985 (diff)
downloadtk-fb70befc9912dfd473e5146838b44663f1273eaf.zip
tk-fb70befc9912dfd473e5146838b44663f1273eaf.tar.gz
tk-fb70befc9912dfd473e5146838b44663f1273eaf.tar.bz2
Merge 8.6
Diffstat (limited to 'tests/focus.test')
-rw-r--r--tests/focus.test10
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/focus.test b/tests/focus.test
index 7da289d..20d25eb 100644
--- a/tests/focus.test
+++ b/tests/focus.test
@@ -11,6 +11,8 @@ eval tcltest::configure $argv
tcltest::loadTestedCommands
namespace import -force tcltest::test
+testConstraint failsOnUbuntu [expr {![info exists ::env(TRAVIS_OS_NAME)] || ![string match linux $::env(TRAVIS_OS_NAME)]}]
+
proc focusSetup {} {
destroy .t
toplevel .t
@@ -308,7 +310,7 @@ in .t.b1 NotifyNonlinear
} .t.b1}
test focus-2.6 {TkFocusFilterEvent procedure, FocusIn events} -constraints {
- unix testwrapper
+ unix testwrapper failsOnUbuntu
} -body {
focus .t.b1
focus .
@@ -320,7 +322,7 @@ test focus-2.6 {TkFocusFilterEvent procedure, FocusIn events} -constraints {
list $x $focusInfo
} -result {.t.b1 {press .t.b1 x}}
test focus-2.7 {TkFocusFilterEvent procedure, FocusOut events} -constraints {
- unix testwrapper
+ unix testwrapper failsOnUbuntu
} -body {
set result {}
foreach detail {NotifyAncestor NotifyInferior NotifyNonlinear
@@ -341,7 +343,7 @@ test focus-2.8 {TkFocusFilterEvent procedure, FocusOut events} -constraints {
focus
} -result {.t.b1}
test focus-2.9 {TkFocusFilterEvent procedure, FocusOut events} -constraints {
- unix testwrapper
+ unix testwrapper failsOnUbuntu
} -body {
focus .t.b1
event gen [testwrapper .] <FocusOut> -detail NotifyAncestor
@@ -599,7 +601,7 @@ cleanupbg
# Test 5.1 fails (before and after update)
test focus-5.1 {ChangeXFocus procedure, don't take focus unless have it} -constraints {
- unix testwrapper secureserver
+ unix testwrapper secureserver failsOnUbuntu
} -body {
setupbg
focusSetup