mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-07-21 03:12:50 +00:00
Add testcases to control panel
This commit is contained in:
parent
57e74a0ad5
commit
1be73ad664
@ -206,6 +206,12 @@ Stylesheets/Caption: Stylesheets
|
|||||||
Stylesheets/Expand/Caption: Expand All
|
Stylesheets/Expand/Caption: Expand All
|
||||||
Stylesheets/Hint: This is the rendered CSS of the current stylesheet tiddlers tagged with <<tag "$:/tags/Stylesheet">>
|
Stylesheets/Hint: This is the rendered CSS of the current stylesheet tiddlers tagged with <<tag "$:/tags/Stylesheet">>
|
||||||
Stylesheets/Restore/Caption: Restore
|
Stylesheets/Restore/Caption: Restore
|
||||||
|
TestCases/Caption: Test Cases
|
||||||
|
TestCases/Hint: Test cases are self contained examples for testing and learning
|
||||||
|
TestCases/All/Caption: All Test Cases
|
||||||
|
TestCases/All/Hint: All Test Cases
|
||||||
|
TestCases/Failed/Caption: Failed Test Cases
|
||||||
|
TestCases/Failed/Hint: Just Failed Test Cases
|
||||||
Theme/Caption: Theme
|
Theme/Caption: Theme
|
||||||
Theme/Prompt: Current theme:
|
Theme/Prompt: Current theme:
|
||||||
TiddlerFields/Caption: Tiddler Fields
|
TiddlerFields/Caption: Tiddler Fields
|
||||||
|
10
core/ui/ControlPanel/TestCases.tid
Normal file
10
core/ui/ControlPanel/TestCases.tid
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
title: $:/core/ui/ControlPanel/TestCases
|
||||||
|
tags: $:/tags/ControlPanel/Advanced
|
||||||
|
caption: {{$:/language/ControlPanel/TestCases/Caption}}
|
||||||
|
|
||||||
|
\whitespace trim
|
||||||
|
{{$:/language/ControlPanel/TestCases/Hint}}
|
||||||
|
|
||||||
|
<div class="tc-control-panel">
|
||||||
|
<$macrocall $name="tabs" tabsList="[all[shadows+tiddlers]tag[$:/tags/ControlPanel/TestCases]!has[draft.of]]" default="$:/core/ui/ControlPanel/TestCases/All"/>
|
||||||
|
</div>
|
24
core/ui/ControlPanel/TestCasesAll.tid
Normal file
24
core/ui/ControlPanel/TestCasesAll.tid
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
title: $:/core/ui/ControlPanel/TestCases/All
|
||||||
|
tags: $:/tags/ControlPanel/TestCases
|
||||||
|
caption: {{$:/language/ControlPanel/TestCases/All/Caption}}
|
||||||
|
|
||||||
|
\define lingo-base() $:/language/ControlPanel/
|
||||||
|
<<lingo TestCases/All/Hint>>
|
||||||
|
|
||||||
|
<$list filter="[all[tiddlers+shadows]tag[$:/tags/wiki-test-spec]type[text/vnd.tiddlywiki-multiple]]">
|
||||||
|
|
||||||
|
<h2>
|
||||||
|
|
||||||
|
<$link>
|
||||||
|
|
||||||
|
<$text text=<<currentTiddler>>/>
|
||||||
|
|
||||||
|
</$link>
|
||||||
|
|
||||||
|
</h2>
|
||||||
|
|
||||||
|
<$transclude
|
||||||
|
$tiddler="$:/core/ui/TestCaseTemplate"
|
||||||
|
/>
|
||||||
|
|
||||||
|
</$list>
|
15
core/ui/ControlPanel/TestCasesFailed.tid
Normal file
15
core/ui/ControlPanel/TestCasesFailed.tid
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
title: $:/core/ui/ControlPanel/TestCases/Failed
|
||||||
|
tags: $:/tags/ControlPanel/TestCases
|
||||||
|
caption: {{$:/language/ControlPanel/TestCases/Failed/Caption}}
|
||||||
|
|
||||||
|
\define lingo-base() $:/language/ControlPanel/
|
||||||
|
<<lingo TestCases/Failed/Hint>>
|
||||||
|
|
||||||
|
<$list filter="[all[tiddlers+shadows]tag[$:/tags/wiki-test-spec]type[text/vnd.tiddlywiki-multiple]]">
|
||||||
|
|
||||||
|
<$transclude
|
||||||
|
$tiddler="$:/core/ui/TestCaseTemplate"
|
||||||
|
hideIfPass="yes"
|
||||||
|
/>
|
||||||
|
|
||||||
|
</$list>
|
12
core/ui/TestCaseTemplate.tid
Normal file
12
core/ui/TestCaseTemplate.tid
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
title: $:/core/ui/TestCaseTemplate
|
||||||
|
|
||||||
|
\parameters (hideIfPass:"no")
|
||||||
|
<$testcase
|
||||||
|
testOutput="Output"
|
||||||
|
testExpectedResult="ExpectedResult"
|
||||||
|
testActions="Actions"
|
||||||
|
testHideIfPass=<<hideIfPass>>
|
||||||
|
>
|
||||||
|
<$data $compound-tiddler=<<currentTiddler>>/>
|
||||||
|
<$data title="Description" text={{!!description}}/>
|
||||||
|
</$testcase>
|
Loading…
x
Reference in New Issue
Block a user