Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the HTML-Packer CPAN distribution.

Report information
The Basics
Id: 68090
Status: resolved
Priority: 0/
Queue: HTML-Packer

People
Owner: Nobody in particular
Requestors: KENTNL [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.001_001
Fixed in: 1.001_002



Subject: Test failure with JavaScript::Packer not installed.
Looking at the code, it appears that when JavaScript::Packer is not available, you for test

  is( $js_html5_input, $js_expected_nocomp, )

A cursory glance makes me ask "Shouldn't that be html5_nocomp" ? Unless you expect that without compression turned on it will inject a 'type=javascript" attribute =)

Hope this helps.


t/00-load.t ....... 1/1 # Testing HTML::Packer 1.001_001, Perl 5.014000, /usr/bin/perl5.14.0
t/00-load.t ....... ok  
t/01-interface.t .. ok    
t/02-io.t ......... 1/10
Show quoted text
#   Failed test 'Test html5 option.'
#   at t/02-io.t line 146.

Show quoted text
#   Failed test 'Test do_javascript 2. JavaScript::Packer >= 1.002001 not installed.'
#   at t/02-io.t line 86.
#          got: '<script>
#
#
#
#   alert('test');</script><a href="/">link 1 </a> <a href="/"> link 2 </a>'
#     expected: '<script type="javascript">
#
#
#
#   alert('test');</script><a href="/">link 1 </a> <a href="/"> link 2 </a>'
# Looks like you failed 2 tests of 10.
t/02-io.t ......... Dubious, test returned 2 (wstat 512, 0x200)
Failed 2/10 subtests
t/pod.t ........... ok  

Test Summary Report
-------------------
t/02-io.t       (Wstat: 512 Tests: 10 Failed: 2)
  Failed tests:  7, 9
  Non-zero exit status: 2
Files=4, Tests=51,  0 wallclock secs ( 0.04 usr  0.01 sys +  0.21 cusr  0.05 csys =  0.31 CPU)
Result: FAIL
Failed 1/4 test programs. 2/51 subtests failed.
make: *** [test_dynamic] Error 255


Should work now.