File: 08_ovl_func.t

package info (click to toggle)
libwx-perl 1%3A0.9932-9
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 5,300 kB
  • sloc: cpp: 11,064; perl: 8,603; ansic: 711; makefile: 53
file content (25 lines) | stat: -rwxr-xr-x 675 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/usr/bin/perl -w

# test that overload dispatch works for
# specific functions

use strict;
use Wx;
use Wx::Html;
use lib '../../t';
use Test::More 'tests' => 3;
use Tests_Helper qw(test_app :overload);

my $nolog = Wx::LogNull->new;

test_app( sub {
my $frame = Wx::Frame->new( undef, -1, 'a' );
my $slb = Wx::SimpleHtmlListBox->new( $frame, -1, [ -1, -1 ], [ -1, -1 ], [] );

test_override { $slb->Append( [ 'a', 'b', 'c' ] ) }
              'Wx::SimpleHtmlListBox::AppendStrings';
test_override { $slb->Append( 'a', \1 ) }
              'Wx::SimpleHtmlListBox::AppendData';
test_override { $slb->Append( 'a' ) }
              'Wx::SimpleHtmlListBox::AppendString';
} );