Use the testcase widget for the $reveal widget examples (#8406)

* Use the testcase widget for the $reveal widget examples

* Convert $reveal testcase widget examples into testcase tiddlers

* Add expected results to $reveal test case tiddlers

These examples are intended to be interactive and the expect results
only test the initial rendering. Still that seems like useful verification
This commit is contained in:
btheado
2024-07-22 04:05:40 -04:00
committed by GitHub
parent 3d2e6e4895
commit adfb69a68c
5 changed files with 112 additions and 52 deletions

View File

@@ -0,0 +1,23 @@
created: 20240721163229297
description: Reveal widget text references
modified: 20240721174826529
tags: $:/tags/wiki-test-spec
title: TestCases/RevealWidget/TextReference
type: text/vnd.tiddlywiki-multiple
title: Narrative
The state attribute of the reveal widget can use the text reference syntax to refer to a specific field. In this example if the field ``jeremy`` contains the text ``tiddlywiki``, then the reveal widget's content will be displayed.
+
title: Output
jeremy: tiddlywiki
<$reveal type="match" state="!!jeremy" text="tiddlywiki">
~TiddlyWiki!
</$reveal>
+
title: ExpectedResult
<p><span class=" tc-reveal">
TiddlyWiki!
</span></p>