Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
better html_escape tests
  • Loading branch information
kraih committed Sep 26, 2012
1 parent 93ed965 commit 5c8169c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions Changes
Expand Up @@ -3,6 +3,7 @@
- Improved javascript and stylesheet helpers to not generate type
attributes.
- Improved documentation.
- Improved tests.

3.43 2012-09-22
- Updated jQuery to version 1.8.2.
Expand Down
4 changes: 2 additions & 2 deletions t/mojo/util.t
Expand Up @@ -130,8 +130,8 @@ is html_unescape('&Ltf&amp&0oo&nbspba;&ltr'), "&Ltf&&0oo\x{00a0}ba;<r",
'right html unescaped result';

# UTF-8 html_escape
is html_escape("fo\nobar<baz>&\"\x{152}"),
"fo\nobar&LT;baz&GT;&AMP;&QUOT;&OElig;", 'right html escaped result';
is html_escape("fo\nobar<baz>&\"\x{152}\x{02ae4}"),
"fo\nobar&LT;baz&GT;&AMP;&QUOT;&OElig;&Dashv;", 'right html escaped result';

# UTF-8 html_unescape
is html_unescape(decode 'UTF-8', 'foo&lt;baz&gt;&#x26;&#34;&OElig;&Foo;'),
Expand Down

0 comments on commit 5c8169c

Please sign in to comment.