Subject: | tests fail on make test |
Date: | Thu, 2 Oct 2014 21:12:54 +0000 |
To: | "bug-HTML-Widget [...] rt.cpan.org" <bug-HTML-Widget [...] rt.cpan.org> |
From: | "Steven Shriver -X (steshriv - INSIGHT GLOBAL INC at Cisco)" <steshriv [...] cisco.com> |
Hey,
These should be super easy to fix:
1. t/04basic.t
# Failed test 'JavScript XML output is ok'
# at t/04basic.t line 85.
# got: '<script type="text/javascript">
# <!--
#
# //-->
# </script>'
# expected: '<script type="text/javascript">
# <!--
#
# //-->
# </script>
# '
# Looks like you failed 1 test of 36.
Possible solution in t/04basic.t is to add a new line:
85 is( $c->javascript_xml . "\n", <<EOF, 'JavScript XML output is ok' );
2. t/06bugs_xml_escape.t
# Failed test ''
# at t/06bugs_xml_escape.t line 26.
# '<form id="widget" method="post"><fieldset class="widget_fieldset"><input class="textfield" id="widget_foo" name="foo" type="text" value="é" /><input class="hidden" id="widget_bar" name="bar" type="hidden" value="" foo >" /></fieldset></form>
# '
# doesn't match '(?^:value="" foo >")'
# Looks like you failed 1 test of 2.
Looks like you encode to names instead of numerically.
3. t/07custom_render.t
# Failed test 'JavScript XML output is ok'
# at t/07custom_render.t line 122.
# got: '<script type="text/javascript">
# <!--
#
# //-->
# </script>'
# expected: '<script type="text/javascript">
# <!--
#
# //-->
# </script>
# '
# Looks like you failed 1 test of 46.
Looks like the same problem as in 04basic.t where the HEREDOC ending produces a new line that your code does not.
122 is( $c->javascript_xml . "\n", <<EOF, 'JavScript XML output is ok' );
Hope this helps!
Smile,
Steve
[http://www.cisco.com/web/europe/images/email/signature/logo03.jpg]
Steven Shriver
Engineer - Software
Information Technology
steshriv@cisco.com<mailto:steshriv@cisco.com>
Phone: +1 919 392 2467
Cisco.com<http://www.cisco.com>
[Think before you print.]Think before you print.
This email may contain confidential and privileged material for the sole use of the intended recipient. Any review, use, distribution or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive for the recipient), please contact the sender by reply email and delete all copies of this message.
For corporate legal information go to:
http://www.cisco.com/web/about/doing_business/legal/cri/index.html
Message body is not shown because it is too large.