[Jifty-commit] r3936 - jifty/trunk/t/clientside

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Wed Aug 22 11:22:40 EDT 2007


Author: clkao
Date: Wed Aug 22 11:22:40 2007
New Revision: 3936

Modified:
   jifty/trunk/t/clientside/td.t

Log:
properly skip client side td test if new B is not found.

Modified: jifty/trunk/t/clientside/td.t
==============================================================================
--- jifty/trunk/t/clientside/td.t	(original)
+++ jifty/trunk/t/clientside/td.t	Wed Aug 22 11:22:40 2007
@@ -47,6 +47,8 @@
 eval 'use Jifty::View::Declare::Compile; 1'
     or plan skip_all => "Can't load Jifty::View::Declare::Compile";
 
+plan skip_all => "require new B::Deparse" unless B::Deparse->can('e_method');
+
 my $jsbin = can_run('js')
     or plan skip_all => "Can't find spidermonkey js binary";
 
@@ -66,6 +68,7 @@
 sub is_compatible {
     my $template = shift;
     my $js = js_output( js_code( Foo->can($template) ) );
+    diag js_code( Foo->can($template) );
     my $td = Template::Declare->show($template);
     $js =~ s/\s*//g;
     $td =~ s/\s*//g;


More information about the Jifty-commit mailing list