title: $:/core/ui/testcases/DefaultTemplate code-body: yes \whitespace trim \function tf.state() "$:/state/testcase" \procedure linkcatcherActions() <%if [has[title]] %> <$action-setfield $tiddler=<> text=<>/> <%endif%> \end \procedure testcase-header()

<$genesis $type={{{ [!match[]then[$link]else[span]] }}} to=<>> <%if [!match[]] %> !match[fail]then[tc-test-case-result-icon-pass]] [match[fail]then[tc-test-case-result-icon-fail]] +[join[ ]] }}} > <%if [!match[fail]] %> {{$:/core/images/done-button}} <%else%> {{$:/core/images/close-button}} <%endif%> <%endif%> <$view tiddler="Description" mode="inline"/> <>

\end \procedure testcase-toolbar() <$button popup=`$(tf.state)$-more` tooltip={{$:/language/Buttons/More/Hint}} aria-label={{$:/language/Buttons/More/Caption}} class="tc-btn-invisible" selectedClass="tc-selected" > {{$:/core/images/down-arrow}} <$let tv-config-toolbar-icons="yes" tv-config-toolbar-text="yes" tv-config-toolbar-class="tc-btn-invisible" > <$reveal state=`$(tf.state)$-more` type="popup" position="belowleft" animate="yes">
<$list filter="[all[shadows+tiddlers]tag[$:/tags/TestCase/Actions]!has[draft.of]]" variable="listItem" > <$transclude $tiddler=<> $mode="inline"/>
\end \procedure testcase-narrative()
<$transclude $tiddler="Narrative" $mode="block"/>
\end \procedure testcase-fail()
TEST FAILED
<$diff-text source=<> dest=<>/>
\end \procedure testcase-output-wikified() <$linkcatcher actions=<>> <$tiddler tiddler="Output"> <$transclude $tiddler="Output" $mode="block"/> \end \procedure testcase-output()
<%if [!match[]else[wikitext]match[plaintext]] %>
<$view tiddler="Output" format="plainwikified" mode="block"/>
<%else%> <> <%endif%>
\end \procedure testcase-tabsList() [all[tiddlers]sort[]] Output +[putfirst[]] -Description -Narrative -[[$:/temp/testcase/draft-title]] -[has[plugin-type]] -[prefix] -[prefix[$:/state/popup/export]] -[prefix[$:/HistoryList]] -[prefix[$:/StoryList]] \end \procedure testcase-source()
<$macrocall $name="tabs" tabsList=<> explicitState=<> default="Output" template="$:/core/ui/testcases/DefaultTemplate/SourceTabs" />
\end \procedure testcase-panes()
<>
<>
\end \procedure testcase-body()
<> <$let testcase-source-state = <>> <$navigator story="$:/StoryList" history="$:/HistoryList"> <%if [[Narrative]is[tiddler]] %> <> <%endif%> <%if [match[fail]] %> <> <%endif%> <>
\end <>