diff options
Diffstat (limited to 'tests/winNotify.test')
| -rw-r--r-- | tests/winNotify.test | 48 |
1 files changed, 18 insertions, 30 deletions
diff --git a/tests/winNotify.test b/tests/winNotify.test index ea066e7..3e9aa29 100644 --- a/tests/winNotify.test +++ b/tests/winNotify.test @@ -9,26 +9,26 @@ # # See the file "license.terms" for information on usage and redistribution # of this file, and for a DISCLAIMER OF ALL WARRANTIES. -# -# RCS: @(#) $Id: winNotify.test,v 1.7 2000/04/10 17:19:06 ericm Exp $ if {[lsearch [namespace children] ::tcltest] == -1} { package require tcltest namespace import -force ::tcltest::* } -set ::tcltest::testConstraints(testeventloop) \ - [expr {[info commands testeventloop] != {}}] +::tcltest::loadTestedCommands +catch [list package require -exact Tcltest [info patchlevel]] + +testConstraint testeventloop [expr {[info commands testeventloop] != {}}] # There is no explicit test for InitNotifier or NotifierExitHandler -test winNotify-1.1 {Tcl_SetTimer: positive timeout} {pcOnly} { +test winNotify-1.1 {Tcl_SetTimer: positive timeout} {win} { set done 0 after 1000 { set done 1 } vwait done set done } 1 -test winNotify-1.2 {Tcl_SetTimer: positive timeout, message pending} {pcOnly} { +test winNotify-1.2 {Tcl_SetTimer: positive timeout, message pending} {win} { set x 0 set y 1 set a1 [after 0 { incr y }] @@ -37,7 +37,7 @@ test winNotify-1.2 {Tcl_SetTimer: positive timeout, message pending} {pcOnly} { vwait x list $x $y } {1 1} -test winNotify-1.3 {Tcl_SetTimer: cancelling positive timeout} {pcOnly} { +test winNotify-1.3 {Tcl_SetTimer: cancelling positive timeout} {win} { set x 0 set y 1 set id [after 10000 { incr y }] @@ -46,7 +46,7 @@ test winNotify-1.3 {Tcl_SetTimer: cancelling positive timeout} {pcOnly} { after cancel $id list $x $y } {1 1} -test winNotify-1.4 {Tcl_SetTimer: null timeout, message pending} {pcOnly} { +test winNotify-1.4 {Tcl_SetTimer: null timeout, message pending} {win} { set x 0 set y 1 after 0 { incr x } @@ -55,14 +55,14 @@ test winNotify-1.4 {Tcl_SetTimer: null timeout, message pending} {pcOnly} { list $x $y } {1 2} -test winNotify-2.1 {Tcl_ResetIdleTimer} {pcOnly} { +test winNotify-2.1 {Tcl_ResetIdleTimer} {win} { set x 0 update after idle { incr x } vwait x set x } 1 -test winNotify-2.2 {Tcl_ResetIdleTimer: message pending} {pcOnly} { +test winNotify-2.2 {Tcl_ResetIdleTimer: message pending} {win} { set x 0 set y 1 update @@ -72,7 +72,7 @@ test winNotify-2.2 {Tcl_ResetIdleTimer: message pending} {pcOnly} { list $x $y } {1 2} -test winNotify-3.1 {NotifierProc: non-modal normal timer} {pcOnly testeventloop} { +test winNotify-3.1 {NotifierProc: non-modal normal timer} {win testeventloop} { update set x 0 foreach i [after info] { @@ -82,7 +82,7 @@ test winNotify-3.1 {NotifierProc: non-modal normal timer} {pcOnly testeventloop} testeventloop wait set x } 1 -test winNotify-3.2 {NotifierProc: non-modal normal timer, rescheduled} {pcOnly testeventloop} { +test winNotify-3.2 {NotifierProc: non-modal normal timer, rescheduled} {win testeventloop} { update set x 0 foreach i [after info] { @@ -92,7 +92,7 @@ test winNotify-3.2 {NotifierProc: non-modal normal timer, rescheduled} {pcOnly t testeventloop wait set x } 2 -test winNotify-3.3 {NotifierProc: modal normal timer} {pcOnly} { +test winNotify-3.3 {NotifierProc: modal normal timer} {win} { update set x 0 foreach i [after info] { @@ -102,7 +102,7 @@ test winNotify-3.3 {NotifierProc: modal normal timer} {pcOnly} { vwait x set x } 1 -test winNotify-3.4 {NotifierProc: modal normal timer, rescheduled} {pcOnly} { +test winNotify-3.4 {NotifierProc: modal normal timer, rescheduled} {win} { update set x 0 foreach i [after info] { @@ -113,7 +113,7 @@ test winNotify-3.4 {NotifierProc: modal normal timer, rescheduled} {pcOnly} { vwait x list $x $y } {1 1} -test winNotify-3.5 {NotifierProc: non-modal idle timer} {pcOnly testeventloop} { +test winNotify-3.5 {NotifierProc: non-modal idle timer} {win testeventloop} { update set x 0 foreach i [after info] { @@ -123,7 +123,7 @@ test winNotify-3.5 {NotifierProc: non-modal idle timer} {pcOnly testeventloop} { testeventloop wait set x } 1 -test winNotify-3.6 {NotifierProc: non-modal idle timer, rescheduled} {pcOnly testeventloop} { +test winNotify-3.6 {NotifierProc: non-modal idle timer, rescheduled} {win testeventloop} { update set x 0 foreach i [after info] { @@ -133,7 +133,7 @@ test winNotify-3.6 {NotifierProc: non-modal idle timer, rescheduled} {pcOnly tes testeventloop wait set x } 2 -test winNotify-3.7 {NotifierProc: modal idle timer} {pcOnly} { +test winNotify-3.7 {NotifierProc: modal idle timer} {win} { update set x 0 foreach i [after info] { @@ -143,7 +143,7 @@ test winNotify-3.7 {NotifierProc: modal idle timer} {pcOnly} { vwait x set x } 1 -test winNotify-3.8 {NotifierProc: modal idle timer, rescheduled} {pcOnly} { +test winNotify-3.8 {NotifierProc: modal idle timer, rescheduled} {win} { update set x 0 foreach i [after info] { @@ -160,15 +160,3 @@ test winNotify-3.8 {NotifierProc: modal idle timer, rescheduled} {pcOnly} { # cleanup ::tcltest::cleanupTests return - - - - - - - - - - - - |
