diff options
author | cvs2git <cvs2git> | 2010-12-27 00:04:45 +0000 |
---|---|---|
committer | cvs2git <cvs2git> | 2010-12-27 00:04:45 +0000 |
commit | c82d349f864e6bd9f96fd1156903bc1f7193a203 (patch) | |
tree | e117a87533656110b6acd56fc0ca64289892a9f5 /rt/t/00-mason-syntax.t | |
parent | 74e058c8a010ef6feb539248a550d0bb169c1e94 (diff) |
This commit was manufactured by cvs2svn to create tag 'TORRUS_1_0_9'.TORRUS_1_0_9
Diffstat (limited to 'rt/t/00-mason-syntax.t')
-rw-r--r-- | rt/t/00-mason-syntax.t | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/rt/t/00-mason-syntax.t b/rt/t/00-mason-syntax.t deleted file mode 100644 index 0584f630f..000000000 --- a/rt/t/00-mason-syntax.t +++ /dev/null @@ -1,44 +0,0 @@ -#!/usr/bin/perl - -use strict; -use warnings; - -use RT::Test tests => 1; - -my $ok = 1; - -use File::Find; -find( { - no_chdir => 1, - wanted => sub { - return if /(?:\.(?:jpe?g|png|gif|rej)|\~)$/i; - return if m{/\.[^/]+\.swp$}; # vim swap files - return unless -f $_; - diag "testing $_" if $ENV{'TEST_VERBOSE'}; - eval { compile_file($_) } and return; - $ok = 0; - diag "error in ${File::Find::name}:\n$@"; - }, -}, RT::Test::get_relocatable_dir('../share/html')); -ok($ok, "mason syntax is ok"); - -use HTML::Mason; -use HTML::Mason::Compiler; -use HTML::Mason::Compiler::ToObject; -BEGIN { require RT::Test; } -use Encode qw(decode_utf8); - -sub compile_file { - my $file = shift; - - my $text = decode_utf8(RT::Test->file_content($file)); - - my $compiler = new HTML::Mason::Compiler::ToObject; - $compiler->compile( - comp_source => $text, - name => 'my', - $HTML::Mason::VERSION >= 1.36? (comp_path => 'my'): (), - ); - return 1; -} - |