/[Frey]/trunk/t/02-frey-web.t
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/t/02-frey-web.t

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 446 by dpavlin, Wed Nov 19 03:11:11 2008 UTC revision 532 by dpavlin, Wed Nov 26 07:57:12 2008 UTC
# Line 2  Line 2 
2  use strict;  use strict;
3  use warnings;  use warnings;
4    
5  use Test::More tests => 21;  use Test::More tests => 25;
6  use lib 'lib';  use lib 'lib';
7    
8  use Data::Dump qw/dump/;  use Data::Dump qw/dump/;
9    
10  my $debug = 1 if @ARGV;  my $debug = @ARGV ? 0 : 1;
11    
12  BEGIN {  BEGIN {
13          use_ok('Frey::Web');          use_ok('Frey::Web');
# Line 43  diag $html if $debug; Line 43  diag $html if $debug;
43  like( $html, qr{text/javascript.*\.js}, 'have js' );  like( $html, qr{text/javascript.*\.js}, 'have js' );
44  like( $html, qr{text/css.*\.css}, 'have css' );  like( $html, qr{text/css.*\.css}, 'have css' );
45  like( $html, qr{head html}, 'have html' );  like( $html, qr{head html}, 'have html' );
46    like( $html, qr{icon}, 'have icon' );
47    
48  html_ok( $html, 'html lint' );  html_ok( $html, 'html lint' );
49    
# Line 60  cmp_ok( length( $html ), '<', length( $h Line 61  cmp_ok( length( $html ), '<', length( $h
61    
62  like( $html2, qr{frey\.css}, 'have css' );  like( $html2, qr{frey\.css}, 'have css' );
63  like( $html2, qr{ext}, 'have js' );  like( $html2, qr{ext}, 'have js' );
64    
65    ok( my $error = $o->error('test,ignore'), 'error' );
66    diag $error if $debug;
67    like( $error, qr{test,ignore.*$0}s, "have $0" );
68    
69    ok( $o->dump_max_bytes, 'dump_max_bytes' );

Legend:
Removed from v.446  
changed lines
  Added in v.532

  ViewVC Help
Powered by ViewVC 1.1.26