]> iEval git - www-offliberty.git/blame - t/50-network.t
Initial commit
[www-offliberty.git] / t / 50-network.t
CommitLineData
de48830a
MG
1#!/usr/bin/perl -w
2use strict;
3use warnings;
4
5use Test::More;
6use WWW::Offliberty qw/off/;
7
8if ($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}
This page took 0.021186 seconds and 4 git commands to generate.