]> iEval git - www-offliberty.git/blame_incremental - t/50-network.t
Use LWP::Online in network test
[www-offliberty.git] / t / 50-network.t
... / ...
CommitLineData
1#!/usr/bin/perl -w
2use strict;
3use warnings;
4
5use LWP::Online ':skip_all';
6use Test::More tests => 2;
7use WWW::Offliberty qw/off/;
8
9my @results;
10@results = off "http://youtube.com/watch?v=Tj75Arhq5ho";
11is @results, 1, 'youtube';
12
13@results = off "http://youtube.com/watch?v=Tj75Arhq5ho", video_file => 1;
14is @results, 2, 'youtube, video_file => 1';
This page took 0.013847 seconds and 4 git commands to generate.