[Jifty-commit] r7659 - in jifty/trunk/t/TestApp: lib/TestApp t

Jifty commits jifty-commit at lists.jifty.org
Thu Nov 19 16:23:40 EST 2009


Author: jesse
Date: Thu Nov 19 16:23:39 2009
New Revision: 7659

Added:
   jifty/trunk/t/TestApp/share/web/templates/content-type-bug
Modified:
   jifty/trunk/t/TestApp/lib/TestApp/Dispatcher.pm
   jifty/trunk/t/TestApp/t/css_content_type.t

Log:
make our crazy dispatcher changes only run for our content-type-bug test

Modified: jifty/trunk/t/TestApp/lib/TestApp/Dispatcher.pm
==============================================================================
--- jifty/trunk/t/TestApp/lib/TestApp/Dispatcher.pm	(original)
+++ jifty/trunk/t/TestApp/lib/TestApp/Dispatcher.pm	Thu Nov 19 16:23:39 2009
@@ -107,7 +107,7 @@
 
 
 
-before '*' => run {
+before '/content-type-bug' => run {
     
     Jifty->web->navigation->child( test1 => label => '<i>Italic</i>', escape_label => 0);
 

Added: jifty/trunk/t/TestApp/share/web/templates/content-type-bug
==============================================================================
--- (empty file)
+++ jifty/trunk/t/TestApp/share/web/templates/content-type-bug	Thu Nov 19 16:23:39 2009
@@ -0,0 +1,4 @@
+<&|/_elements/wrapper, title => 'Jifty Test Application' &>
+<img src="/images/pony.jpg" alt="A Pony"/>
+This is content
+</&>

Modified: jifty/trunk/t/TestApp/t/css_content_type.t
==============================================================================
--- jifty/trunk/t/TestApp/t/css_content_type.t	(original)
+++ jifty/trunk/t/TestApp/t/css_content_type.t	Thu Nov 19 16:23:39 2009
@@ -9,7 +9,7 @@
 my $url = $server->started_ok;
 
 my $mech = Jifty::Test::WWW::Mechanize->new;
-$mech->get_ok( $url, 'grab a page' );
+$mech->get_ok( $url."/content-type-bug", 'grab a page' );
 
 my $css_page = '';
 if ( $mech->content =~ qr{type="text/css" href="(.*?)"} ) {


More information about the Jifty-commit mailing list