View Issue Details

IDProjectCategoryView StatusLast Update
05915Development Survey takingpublic2012-04-11 17:56
ReporterTMSWhite Assigned ToTMSWhite  
PrioritylowSeverityminor 
Status assignedResolutionopen 
Summary05915: EM unit test errors - embedded newlines, and escaping html entities
Description

There are still a few dozen errors on EM unit tests (Unit Tests of Isolated Expressions) that may be fixable. Most seem to relate to string handling (e.g. whether the EM tokenizer, PHP, and JavaScript handle escaped characters equivalently).

Steps To Reproduce

see test cases in Unit Tests of Isolated Expressions, especially

PROBLEMS WITH EMBEDDED NEWLINES:

nl2br('hi\nthere\nhow\nare\nyou?')
nl2br(implode('\n', 'hi', 'there,', 'user!'))

PROBLEMS WITH HTML ENTITIES:

addslashes()
htmlspecialchars()
htmlspecialchars_decode()
htmlentities()
html_entity_decode()

Additional Information

The way that EM tests that the PHP and JavaScript results are the same may partly be a culprit for this behavior; and some of the unit tests may have the wrong expected value.

TagsNo tags attached.

Relationships

related to 05988 closedc_schmitz Bug reports Problem displaying words with French accent within Expression Manager 

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2012-03-14 18:26 TMSWhite New Issue
2012-03-15 01:35 c_schmitz Assigned To => TMSWhite
2012-03-15 01:35 c_schmitz Status new => assigned
2012-04-07 18:44 TMSWhite Relationship added related to 05988
2012-04-11 17:56 TMSWhite Project Bug reports => Development