File: UI-Dialog-Backend-Nautilus.t

package info (click to toggle)
libui-dialog-perl 1.21-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 808 kB
  • sloc: perl: 7,403; makefile: 2
file content (30 lines) | stat: -rw-r--r-- 703 bytes parent folder | download | duplicates (2)
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
use Test::More;
BEGIN { use_ok( 'UI::Dialog::Backend::Nautilus' ); }
require_ok( 'UI::Dialog::Backend::Nautilus' );

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

eval { new UI::Dialog::Backend::Nautilus (test_mode=>1); };
if ( $@ ) {
  if ($@ =~ m!binary could not be found!) {
    diag("Tests skipped, backend binary not found.");
  }
  else {
    diag("Tests skipped, unknown backend error: ".$@);
  }
  done_testing();
}
else {
  my $obj = UI::Dialog::Backend::Nautilus->new();
  isa_ok( $obj, 'UI::Dialog::Backend::Nautilus' );

  my @methods =
    qw( new
        uri_unescape
        paths uris
        path uris
        geometry
     );
  can_ok( 'UI::Dialog::Backend::Nautilus', @methods );
  done_testing();
}