~ubuntu-branches/ubuntu/quantal/libwebservice-validator-css-w3c-perl/quantal

« back to all changes in this revision

Viewing changes to t/WebService-Validator-CSS-W3C.t

  • Committer: Bazaar Package Importer
  • Author(s): Ryan Niebur
  • Date: 2009-06-17 20:42:47 UTC
  • Revision ID: james.westby@ubuntu.com-20090617204247-dyx3ns7to9g2u0k0
Tags: upstream-0.2
ImportĀ upstreamĀ versionĀ 0.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Before `make install' is performed this script should be runnable with
 
2
# `make test'. After `make install' it should work as `perl WebService-Validator-CSS-W3C.t'
 
3
 
 
4
#########################
 
5
 
 
6
# change 'tests => 3' to 'tests => last_test_to_print';
 
7
 
 
8
use Test;
 
9
BEGIN { plan tests => 3 };
 
10
use WebService::Validator::CSS::W3C;
 
11
ok(1); # If we made it this far, we're ok.
 
12
 my $val = WebService::Validator::CSS::W3C->new;
 
13
ok(2);
 
14
my $success = $val->validate(uri => 'http://www.w3.org/');
 
15
printf "  * %s\n", $_->{message}
 
16
        foreach $val->errors;
 
17
ok(3);
 
18
my $som = $val->som;
 
19
print $som;
 
20
#########################
 
21
 
 
22
# Insert your test code below, the Test::More module is use()ed here so read
 
23
# its man page ( perldoc Test::More ) for help writing this test script.
 
24