File: animview.t

package info (click to toggle)
libgtk2-imageview-perl 0.05-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze, wheezy
  • size: 224 kB
  • ctags: 36
  • sloc: perl: 457; ansic: 27; makefile: 17
file content (25 lines) | stat: -rw-r--r-- 704 bytes parent folder | download | duplicates (3)
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
# Before `make install' is performed this script should be runnable with
# `make test'. After `make install' it should work as `perl 01.t'

#########################

# change 'tests => 1' to 'tests => last_test_to_print';

use Test::More tests => 4;

BEGIN {
 use Glib qw/TRUE FALSE/;
 use Gtk2 -init;
 use_ok('Gtk2::ImageView');
};

#########################

# Insert your test code below, the Test::More module is use()ed here so read
# its man page ( perldoc Test::More ) for help writing this test script.

my $animview = Gtk2::ImageView::Anim->new;
ok(defined $animview, 'new() works');
isa_ok($animview, 'Gtk2::ImageView::Anim');

ok(defined $animview->get_is_playing, 'get_is_playing() works');