You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
440 B
24 lines
440 B
13 years ago
|
BEGIN { print "1..3\n" }
|
||
|
|
||
13 years ago
|
use TQt;
|
||
13 years ago
|
|
||
|
$a=0;
|
||
|
|
||
13 years ago
|
# testing if the TQt::Application ctor works
|
||
13 years ago
|
|
||
13 years ago
|
eval { $a=TQt::Application(\@ARGV) };
|
||
13 years ago
|
|
||
|
print +$@ ? "not ok\n" : "ok 1\n";
|
||
|
|
||
|
# testing wether the global object is properly setup
|
||
|
|
||
13 years ago
|
eval { TQt::app()->libraryPaths() };
|
||
13 years ago
|
|
||
|
print +$@ ? "not ok\n" : "ok 2\n";
|
||
|
|
||
|
# one second test of the event loop
|
||
|
|
||
13 years ago
|
TQt::Timer::singleShot( 300, TQt::app(), TQT_SLOT "quit()" );
|
||
13 years ago
|
|
||
13 years ago
|
print TQt::app()->exec ? "not ok\n" : "ok 3\n";
|