6
# Turn on $OUTPUT_AUTOFLUSH
11
unless ( $ENV{DISPLAY} or $^O eq 'MSWin32' ) {
12
plan skip_all => 'Needs DISPLAY';
22
use_ok('Padre::Wx::Dialog::About');
25
my $padre = new_ok('Padre');
26
my $main = $padre->wx->main;
27
isa_ok( $main, 'Padre::Wx::Main' );
29
# Create the patch dialog
30
my $dialog = new_ok( 'Padre::Wx::Dialog::About', [$main] );
32
# Check the notebook properties
33
my $notebook = $dialog->notebook;
34
isa_ok( $notebook, 'Wx::Notebook' );
36
# Check the output properties
37
my $output = $dialog->output;
38
isa_ok( $output, 'Wx::TextCtrl' );
40
# Check unicode translated names
45
is( $dialog->creator->GetLabel, 'Gábor Szabó', 'Check utf8 name for Gabor Szabo' );
46
is( $dialog->ahmad_zawawi->GetLabel, 'أحمد محمد زواوي', 'Check utf8 name for Ahmad Zawawi' );
47
is( $dialog->jerome_quelin->GetLabel, 'Jérôme Quelin', 'Check utf8 name for Jerome Quelin' );
48
is( $dialog->shlomi_fish->GetLabel, 'שלומי פיש', 'Check utf8 name for Shlomi Fish' );
52
# let's check our subs/methods.
54
my @subs = qw( _core_info _set_up _information _translation _wx_info new run );
56
use_ok( 'Padre::Wx::Dialog::About', @subs );
58
foreach my $subs (@subs) {
59
can_ok( 'Padre::Wx::Dialog::About', $subs );
63
# let's test for image as it's our centre piece
65
use_ok('Padre::Util');
67
my $FILENAME = Padre::Util::splash;
68
ok( -f $FILENAME, "Found image $FILENAME" );