mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-08-30 21:12:40 +00:00
Clarify/simplify some tests
This commit is contained in:
parent
12a87840fd
commit
9d4aa47356
@ -26,7 +26,8 @@ title: TiddlerOne
|
|||||||
<$$mywidget one="BumbleBee">
|
<$$mywidget one="BumbleBee">
|
||||||
Squirrel
|
Squirrel
|
||||||
</$$mywidget>
|
</$$mywidget>
|
||||||
|
<$$mywidget/>
|
||||||
+
|
+
|
||||||
title: ExpectedResult
|
title: ExpectedResult
|
||||||
|
|
||||||
<p>DingoCrocodileBumbleBeeSquirrel</p>
|
<p>DingoCrocodileBumbleBeeSquirrelJaguarWhale</p>
|
@ -12,20 +12,16 @@ title: Output
|
|||||||
title: TiddlerOne
|
title: TiddlerOne
|
||||||
|
|
||||||
\whitespace trim
|
\whitespace trim
|
||||||
<!-- Redefine the <$text> widget by defining a transcludable variable with that name -->
|
<!-- Redefining the text widget only works when it is explicitly invoked with the <$text> syntax, and not implicitly via typed text -->
|
||||||
\widget $text(text:'Jaguar')
|
\widget $text(text:'Jaguar')
|
||||||
\whitespace trim
|
\whitespace trim
|
||||||
<$genesis $type="$text" $remappable="no" text=<<text>>/>
|
<$genesis $type="$text" $remappable="no" text={{{ [<text>addprefix[≤]addsuffix[≥]] }}}/>
|
||||||
<$set name="$text" value="">
|
|
||||||
<$slot $name="ts-raw">
|
|
||||||
Whale
|
|
||||||
</$slot>
|
|
||||||
</$set>
|
|
||||||
\end
|
\end
|
||||||
<$text text="Dingo">
|
|
||||||
Crocodile
|
<$text text="Dingo"/>
|
||||||
</$text>
|
|
||||||
|
Crocodile
|
||||||
+
|
+
|
||||||
title: ExpectedResult
|
title: ExpectedResult
|
||||||
|
|
||||||
<p>DingoCrocodile</p>
|
<p>≤Dingo≥≤Jaguar≥</p>
|
@ -0,0 +1,31 @@
|
|||||||
|
title: Transclude/CustomWidget/TextWidgetOverrideWithSlot
|
||||||
|
description: Custom widget definition redefining the text widget
|
||||||
|
type: text/vnd.tiddlywiki-multiple
|
||||||
|
tags: [[$:/tags/wiki-test-spec]]
|
||||||
|
|
||||||
|
title: Output
|
||||||
|
|
||||||
|
\whitespace trim
|
||||||
|
<$transclude $tiddler='TiddlerOne'>
|
||||||
|
</$transclude>
|
||||||
|
+
|
||||||
|
title: TiddlerOne
|
||||||
|
|
||||||
|
\whitespace trim
|
||||||
|
<!-- Redefine the <$text> widget by defining a transcludable variable with that name -->
|
||||||
|
\widget $text(text:'Jaguar')
|
||||||
|
\whitespace trim
|
||||||
|
<$genesis $type="$text" $remappable="no" text=<<text>>/>
|
||||||
|
<$set name="$text" value="">
|
||||||
|
<$slot $name="ts-raw">
|
||||||
|
Whale
|
||||||
|
</$slot>
|
||||||
|
</$set>
|
||||||
|
\end
|
||||||
|
<$text text="Dingo">
|
||||||
|
Crocodile
|
||||||
|
</$text>
|
||||||
|
+
|
||||||
|
title: ExpectedResult
|
||||||
|
|
||||||
|
<p>DingoCrocodile</p>
|
Loading…
Reference in New Issue
Block a user