/[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 647 by dpavlin, Wed Nov 26 20:48:07 2008 UTC revision 648 by dpavlin, Sun Nov 30 19:21:52 2008 UTC
# Line 2  Line 2 
2  use strict;  use strict;
3  use warnings;  use warnings;
4    
5  use Test::More tests => 27;  use Test::More tests => 29;
6  use lib 'lib';  use lib 'lib';
7    
8  use Data::Dump qw/dump/;  use Data::Dump qw/dump/;
# Line 10  use Data::Dump qw/dump/; Line 10  use Data::Dump qw/dump/;
10  my $debug = @ARGV ? 0 : 1;  my $debug = @ARGV ? 0 : 1;
11    
12  BEGIN {  BEGIN {
13            use_ok('Frey::Bootstrap');
14          use_ok('Frey::Web');          use_ok('Frey::Web');
15          use_ok('Frey');          use_ok('Frey');
16          use_ok('Test::HTML::Lint');          use_ok('Test::HTML::Lint');
# Line 38  ok( $o->add_head( '/static/introspect.cs Line 39  ok( $o->add_head( '/static/introspect.cs
39  ok( $o->add_head( "<!--\nhead comment\n-->" ), 'add_head comment' );  ok( $o->add_head( "<!--\nhead comment\n-->" ), 'add_head comment' );
40  ok( $o->add_head( "<span>head html</span>>" ), 'add_head html' );  ok( $o->add_head( "<span>head html</span>>" ), 'add_head html' );
41    
42    html_ok( $o->warnings_html, 'warnings_html' );
43    
44  ok( my $html = $o->page( title => 'Test', body => '<!-- in-body -->' ), 'page' );  ok( my $html = $o->page( title => 'Test', body => '<!-- in-body -->' ), 'page' );
45  diag $html if $debug;  diag $html if $debug;
46    
# Line 69  diag $error if $debug; Line 72  diag $error if $debug;
72  like( $error, qr{test,ignore.*$0}s, "have $0" );  like( $error, qr{test,ignore.*$0}s, "have $0" );
73    
74  ok( $o->dump_max_bytes, 'dump_max_bytes' );  ok( $o->dump_max_bytes, 'dump_max_bytes' );
75    

Legend:
Removed from v.647  
changed lines
  Added in v.648

  ViewVC Help
Powered by ViewVC 1.1.26