Ticket #50 (closed defect: fixed)
valueToString in jala.Test.js should encode and truncate output
|Reported by:||thomas.hammerl@…||Owned by:|
when assertEqual or assertStringContains fails jala writes both strings into the response without truncating or escaping them. for instance if you try to assert that some html-page does contain a certain substring and it does not, jala renders the whole html-page without escaping the html-code.
i've attached a patch that would solve the problem by calling the encode-function on the truncated string.