Chromium Code Reviews
DescriptionHacking format of Expect failure messages to play nice with rendered HTML.
The culprits are the '<' and '>' in this bit:
_fail("Expect.equals(expected: <$expected>, actual: <$actual>$msg) fails.")
in Expect.equals(..) which cause $expected and $actual to get treated as tags when
the message is shoveled (untreated) into an HTML page as one might do when rendering
test run results in an HTML page (e.g., http://codereview.chromium.org/9034030/).
This here *hack* sidesteps the issue but it's neither elegant nor properly
placed (methinks). The question is, how should this problem get fixed for real?
Thoughts/redirects greatly appreciated!
Committed: https://code.google.com/p/dart/source/detail?r=2954
Patch Set 1 #Patch Set 2 : '' #Patch Set 3 : '' #Patch Set 4 : '' #
Total comments: 2
Patch Set 5 : '' #Messages
Total messages: 3 (0 generated)
|