Debian Codegraph @

t/01-fallback-Win32-OLE.t

raw
1 use strict;
2 use Test::More tests => 3;
3
4 # Disable all ReadLine functionality
5
6 SKIP: {
7 $ENV{PERL_RL} = 0;
8 eval {
9 require Test::Without::Module;
10 Test::Without::Module->import('Win32::OLE')
11 };
12 skip "Need Test::Without::Module to test the fallback", 3
13 if $@;
14
15 use_ok("WWW::Mechanize::Shell");
16 my $shell = do {
17 WWW::Mechanize::Shell->new("shell", rcfile => undef, warnings => undef );
18 };
19
20 isa_ok($shell,"WWW::Mechanize::Shell");
21 my $browser;
22
23 eval {
24 $browser = $shell->browser;
25 };
26 is( $@, '', "No error without Win32::OLE");
27 };