1
use Test::More tests => 3;
8
# Test if the Qt::Application ctor works
10
eval { $a = Qt::Application( \@ARGV ) };
12
ok( !+$@, 'Qt::Application ctor' );
14
# Test wether the global qApp object is properly set up
16
eval { qApp->libraryPaths() };
18
ok( !+$@, 'qApp properly set up' ) or diag( $@ );
20
# One second test of the event loop
22
Qt::Timer::singleShot( 300, qApp, SLOT 'quit()' );
24
ok( !qApp->exec, 'One second event loop' );