The Collapse Output Extension makes elements with a specific style class collapsible in the Concordion report. It does so by wrapping the element in a container and adding a link on top of the element with a javascript.
Given our spec reads like this:
<div id="id" class="collapsible">This should be collapsible.</div>
When run with a fixture that sets the name to "Frank", it becomes:
<div class="toggleContainer"> <a href="javascript:Collapsible.collapseExpand('id');">Expand / Collapse</a> <div id="id" class="collapsible" collapsed-height="1.5" collapsed-height-unit="em" style="height: 1.5em;">This should be collapsible.</div> </div>
If the spec does not contain the specified class the output is untouched:
<div id="id" >This should not be collapsible.</div>
When run it becomes:
<div id="id">This should not be collapsible.</div>