Concordion > Displaying Results >

Failures

Failures are indicated by adding a class="failure" attribute to the element, and replacing the contents with a <del> and <ins> elements containing the expected value and the actual value respectively.

Example

The output of running this:

<p concordion:assertTrue="isPalindrome(#TEXT)">ABB</p>

Looks like this:

<p concordion:assertTrue="isPalindrome(#TEXT)" class="failure"> _
<del class="expected">ABB</del>
<ins class="actual">== false</ins> _
</p>

Note: The underscores indicate line continuations for readability only. They are not output. In reality, it is all in one long line.