Ticket #8966: 8966_test.diff

File 8966_test.diff, 866 bytes (added by carljm, 7 years ago)

failing test

  • tests/regressiontests/templates/filters.py

     
    277277
    278278        'escapejs01': (r'{{ a|escapejs }}', {'a': 'testing\r\njavascript \'string" <b>escaping</b>'}, 'testing\\x0D\\x0Ajavascript \\x27string\\x22 \\x3Cb\\x3Eescaping\\x3C/b\\x3E'),
    279279        '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'),
    280283    }
    281284
Back to Top