--- trunk/t/02-frey-web.t 2008/11/26 07:57:12 532 +++ trunk/t/02-Frey-Web.t 2008/12/14 15:02:43 836 @@ -2,7 +2,7 @@ use strict; use warnings; -use Test::More tests => 25; +use Test::More tests => 29; use lib 'lib'; use Data::Dump qw/dump/; @@ -10,6 +10,7 @@ my $debug = @ARGV ? 0 : 1; BEGIN { + use_ok('Frey::Bootstrap'); use_ok('Frey::Web'); use_ok('Frey'); use_ok('Test::HTML::Lint'); @@ -34,14 +35,18 @@ diag dump( @head ) if $debug; -ok( $o->add_head( '/static/introspect.css' ), 'add_head css' ); -ok( $o->add_head( "" ), 'add_head html' ); +ok( $o->add_head( '/static/introspect.css' ), 'add_head css' ); +ok( $o->add_head( "" ), 'add_head comment' ); +ok( $o->add_head( "head html>" ), 'add_head html' ); + +html_ok( $o->warnings_html, 'warnings_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 comment}, 'have comment' ); like( $html, qr{head html}, 'have html' ); like( $html, qr{icon}, 'have icon' ); @@ -67,3 +72,4 @@ like( $error, qr{test,ignore.*$0}s, "have $0" ); ok( $o->dump_max_bytes, 'dump_max_bytes' ); +