]>
Commit | Line | Data |
---|---|---|
1 | #!/usr/bin/perl -w | |
2 | use strict; | |
3 | use warnings; | |
4 | ||
5 | use Test::More; | |
6 | use WWW::Offliberty qw/off/; | |
7 | ||
8 | if ($ENV{NETWORK_TEST}) { | |
9 | plan tests => 2; | |
10 | ||
11 | my @results; | |
12 | ||
13 | @results = off "http://youtube.com/watch?v=Tj75Arhq5ho"; | |
14 | is @results, 1, 'youtube'; | |
15 | ||
16 | @results = off "http://youtube.com/watch?v=Tj75Arhq5ho", video_file => 1; | |
17 | is @results, 2, 'youtube, video_file => 1'; | |
18 | } else { | |
19 | plan skip_all => '$ENV{NETWORK_TEST} not true'; | |
20 | } |