]>
iEval git - www-offliberty.git/blob - t/50-network.t
5 use Test
::RequiresInternet
'offliberty.com' => 80;
6 use Test
::More tests
=> 4;
7 use WWW
::Offliberty qw
/off/;
10 @results = off
"http://youtube.com/watch?v=Tj75Arhq5ho";
11 cmp_ok
@results, '>=', 1, 'youtube';
13 @results = off
"http://youtube.com/watch?v=Tj75Arhq5ho", video_file
=> 1;
14 is
@results, 2, 'youtube, video_file => 1';
16 like
$results[1], qr/\.mp4/, 'video URL contains ".mp4"';
17 unlike
$results[0], qr/offwarning/, 'audio URL doesn\'t contain "offwarning"';
This page took 0.048405 seconds and 4 git commands to generate.