44 lines
1.4 KiB
Plaintext
44 lines
1.4 KiB
Plaintext
title: $:/core/ui/testcases/DefaultTemplate
|
|
|
|
\whitespace trim
|
|
<$let
|
|
state={{{ [<qualify "$:/state/testcase">] }}}
|
|
>
|
|
<div class="tc-testcase-wrapper">
|
|
<div class="tc-testcase-header">
|
|
<h2>
|
|
<$genesis $type={{{ [<linkTarget>!match[]then[$link]else[div]] }}}>
|
|
<%if [<testResult>!match[]] %>
|
|
<span class={{{ tc-testcase-result-icon [<testResult>!match[fail]then[tc-testcase-result-icon-pass]] [<testResult>match[fail]then[tc-testcase-result-icon-fail]] +[join[ ]] }}}>
|
|
<%if [<testResult>!match[fail]] %>
|
|
{{$:/core/images/done-button}}
|
|
<%else%>
|
|
{{$:/core/images/close-button}}
|
|
<%endif%>
|
|
</span>
|
|
<%endif%>
|
|
<$view tiddler="Description" mode="inline"/>
|
|
</$genesis>
|
|
</h2>
|
|
</div>
|
|
<%if [<testResult>match[fail]] %>
|
|
<div class="tc-testcase-result-fail">
|
|
<div>
|
|
TEST FAILED
|
|
</div>
|
|
<$diff-text source=<<expectedHTML>> dest=<<outputHTML>>/>
|
|
</div>
|
|
<%endif%>
|
|
<div class="tc-testcase-panes">
|
|
<div class="tc-testcase-source">
|
|
<$macrocall $name="tabs" tabsList="[all[tiddlers]sort[]] -[prefix<state>] -Description -ExpectedResult -Output Output +[putfirst[]] -[has[plugin-type]]" state=<<state>> default="Output" template="$:/core/ui/testcases/DefaultTemplate/Source"/>
|
|
</div>
|
|
<div class="tc-testcase-divider">
|
|
</div>
|
|
<div class="tc-testcase-output">
|
|
<$transclude $tiddler="Output" $mode="block"/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</$let>
|