File: GnomeIconSelection.t

package info (click to toggle)
libgnome2-perl 1.021-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 580 kB
  • ctags: 17
  • sloc: perl: 1,225; makefile: 52; ansic: 16
file content (33 lines) | stat: -rw-r--r-- 930 bytes parent folder | download
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
26
27
28
29
30
31
32
33
#!/usr/bin/perl -w
use strict;
use Gnome2;

use constant TESTS => 3;
use Test::More tests => TESTS;

# $Header: /cvsroot/gtk2-perl/gtk2-perl-xs/Gnome2/t/GnomeIconSelection.t,v 1.6 2004/02/10 17:59:53 kaffeetisch Exp $

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

SKIP: {
  our $application;
  do "t/TestBoilerplate";

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

  my $selection = Gnome2::IconSelection -> new();
  isa_ok($selection, "Gnome2::IconSelection");
  isa_ok($selection -> get_gil(), "Gnome2::IconList");
  isa_ok($selection -> get_box(), "Gtk2::VBox");

  $selection -> clear(1);

  $selection -> add_defaults();
  $selection -> add_directory("/usr/share/pixmaps");

  $selection -> stop_loading();
  $selection -> show_icons();

  $selection -> select_icon("yes.xpm");
  $selection -> get_icon(1); # FIXME: the return value should be checked.
}