Ticket #8966: 8966_test.diff
File 8966_test.diff, 866 bytes (added by , 16 years ago) |
---|
-
tests/regressiontests/templates/filters.py
277 277 278 278 'escapejs01': (r'{{ a|escapejs }}', {'a': 'testing\r\njavascript \'string" <b>escaping</b>'}, 'testing\\x0D\\x0Ajavascript \\x27string\\x22 \\x3Cb\\x3Eescaping\\x3C/b\\x3E'), 279 279 'escapejs02': (r'{% autoescape off %}{{ a|escapejs }}{% endautoescape %}', {'a': 'testing\r\njavascript \'string" <b>escaping</b>'}, 'testing\\x0D\\x0Ajavascript \\x27string\\x22 \\x3Cb\\x3Eescaping\\x3C/b\\x3E'), 280 281 # length_is filter's boolean return value should not be coerced to a string 282 'length-is': (r'{% if "x"|length_is:5 %}Yes{% else %}No{% endif %}', {}, u'No'), 280 283 } 281 284