Django

Code

Changeset 8599

Show
Ignore:
Timestamp:
08/26/08 15:51:45 (3 months ago)
Author:
mtredinnick
Message:

Cleaned up some tests I broke as a result of the escapejs changes in [8577].

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/tests/regressiontests/defaultfilters/tests.py

    r8535 r8599  
    5151 
    5252>>> escapejs(u'"double quotes" and \'single quotes\'') 
    53 u'\\"double quotes\\" and \\\'single quotes\\\'
     53u'\\x22double quotes\\x22 and \\x27single quotes\\x27
    5454 
    5555>>> escapejs(ur'\ : backslashes, too') 
    56 u'\\\\ : backslashes, too' 
     56u'\\x5C : backslashes, too' 
    5757 
    5858>>> escapejs(u'and lots of whitespace: \r\n\t\v\f\b') 
    59 u'and lots of whitespace: \\r\\n\\t\\v\\f\\b
     59u'and lots of whitespace: \\x0D\\x0A\\x09\\x0B\\x0C\\x08
    6060 
    6161>>> escapejs(ur'<script>and this</script>') 
    62 u'<script>and this<\\/script>
     62u'\\x3Cscript\\x3Eand this\\x3C/script\\x3E
    6363 
    6464>>> fix_ampersands(u'Jack & Jill & Jeroboam')