Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Cleaned up some tests I broke as a result of the escapejs changes in …


git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 8f5234d commit 384c48e456611ff995f7928b87098716a8e6fbe4 @malcolmt malcolmt committed
Showing with 4 additions and 4 deletions.
  1. +4 −4 tests/regressiontests/defaultfilters/
8 tests/regressiontests/defaultfilters/
@@ -50,16 +50,16 @@
u'Hello world'
>>> escapejs(u'"double quotes" and \'single quotes\'')
-u'\\"double quotes\\" and \\\'single quotes\\\''
+u'\\x22double quotes\\x22 and \\x27single quotes\\x27'
>>> escapejs(ur'\ : backslashes, too')
-u'\\\\ : backslashes, too'
+u'\\x5C : backslashes, too'
>>> escapejs(u'and lots of whitespace: \r\n\t\v\f\b')
-u'and lots of whitespace: \\r\\n\\t\\v\\f\\b'
+u'and lots of whitespace: \\x0D\\x0A\\x09\\x0B\\x0C\\x08'
>>> escapejs(ur'<script>and this</script>')
-u'<script>and this<\\/script>'
+u'\\x3Cscript\\x3Eand this\\x3C/script\\x3E'
>>> fix_ampersands(u'Jack & Jill & Jeroboam')
u'Jack &amp; Jill &amp; Jeroboam'

0 comments on commit 384c48e

Please sign in to comment.
Something went wrong with that request. Please try again.