--- trunk/t/02-frey-web.t 2008/07/17 19:33:51 161 +++ trunk/t/02-frey-web.t 2008/11/20 12:56:37 476 @@ -2,7 +2,7 @@ use strict; use warnings; -use Test::More tests => 18; +use Test::More tests => 24; use lib 'lib'; use Data::Dump qw/dump/; @@ -35,12 +35,14 @@ diag dump( @head ) if $debug; ok( $o->add_head( '/static/introspect.css' ), 'add_head css' ); +ok( $o->add_head( "" ), 'add_head html' ); ok( my $html = $o->page( title => 'Test', body => '' ), 'page' ); diag $html if $debug; like( $html, qr{text/javascript.*\.js}, 'have js' ); like( $html, qr{text/css.*\.css}, 'have css' ); +like( $html, qr{head html}, 'have html' ); html_ok( $html, 'html lint' ); @@ -49,6 +51,8 @@ ok( $s = $o->add_head( 'static/js/ext-2.1/ext-all.js' ), 'add_head js' ); diag $s if $debug; +ok( $o->title, 'has title' ); + ok( my $html2 = $o->page( title => 'Test2', body => '' ), 'page' ); diag $html2 if $debug; @@ -56,3 +60,9 @@ like( $html2, qr{frey\.css}, 'have css' ); like( $html2, qr{ext}, 'have js' ); + +ok( my $error = $o->error('test,ignore'), 'error' ); +diag $error if $debug; +like( $error, qr{test,ignore.*$0}s, "have $0" ); + +ok( $o->dump_max_bytes, 'dump_max_bytes' );