Ticket #50 (closed defect: fixed)

Opened 6 years ago

Last modified 6 years ago

valueToString in jala.Test.js should encode and truncate output

Reported by: thomas.hammerl@… Owned by:
Priority: normal Milestone:
Keywords: Cc:

Description

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.

Attachments

jala.Test.js.patch (469 bytes) - added by thomas.hammerl@… 6 years ago.

Change History

Changed 6 years ago by thomas.hammerl@…

Changed 6 years ago by robert

  • status changed from new to closed
  • resolution set to fixed

Fixed in [192]

Note: See TracTickets for help on using tickets.