mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-19 08:14:50 +00:00
Rewrite some tests to use the shortcut syntaxes
This commit is contained in:
parent
ea7199600d
commit
689a6c5b6a
@ -13,15 +13,14 @@ title: Actions
|
|||||||
|
|
||||||
\whitespace trim
|
\whitespace trim
|
||||||
<!-- Define the <$action-mywidget> widget by defining a transcludable variable with that name -->
|
<!-- Define the <$action-mywidget> widget by defining a transcludable variable with that name -->
|
||||||
<$set name="<$action-mywidget>" value="""\whitespace trim
|
\function <$action-mywidget>(one:'Jaguar')
|
||||||
<$parameters one='Jaguar'>
|
\whitespace trim
|
||||||
<$action-setfield $tiddler="Result" $field="text" $value=<<one>>/>
|
<$action-setfield $tiddler="Result" $field="text" $value=<<one>>/>
|
||||||
</$parameters>"""
|
\end
|
||||||
>
|
|
||||||
<$action-mywidget one="Dingo">
|
<$action-mywidget one="Dingo">
|
||||||
Crocodile
|
Crocodile
|
||||||
</$action-mywidget>
|
</$action-mywidget>
|
||||||
</$set>
|
|
||||||
_
|
_
|
||||||
title: ExpectedResult
|
title: ExpectedResult
|
||||||
|
|
||||||
|
@ -17,18 +17,16 @@ title: TiddlerOne
|
|||||||
|
|
||||||
\whitespace trim
|
\whitespace trim
|
||||||
<!-- Redefine the <$transclude> widget by defining a transcludable variable with that name -->
|
<!-- Redefine the <$transclude> widget by defining a transcludable variable with that name -->
|
||||||
<$set name="<$transclude>" value="""\whitespace trim
|
\function <$transclude>(one:'Jaguar')
|
||||||
<$parameters one='Jaguar'>
|
\whitespace trim
|
||||||
<$text text=<<one>>/>
|
<$text text=<<one>>/>
|
||||||
<$slot $name="body">
|
<$slot $name="body">
|
||||||
Whale
|
Whale
|
||||||
</$slot>
|
</$slot>
|
||||||
</$parameters>"""
|
\end
|
||||||
>
|
<$transclude $tiddler="TiddlerZero">
|
||||||
<$transclude $tiddler="TiddlerZero">
|
Crocodile
|
||||||
Crocodile
|
</$transclude>
|
||||||
</$transclude>
|
|
||||||
</$set>
|
|
||||||
_
|
_
|
||||||
title: ExpectedResult
|
title: ExpectedResult
|
||||||
|
|
||||||
|
@ -13,18 +13,16 @@ title: TiddlerOne
|
|||||||
|
|
||||||
\whitespace trim
|
\whitespace trim
|
||||||
<!-- Define the <$mywidget> widget by defining a transcludable variable with that name -->
|
<!-- Define the <$mywidget> widget by defining a transcludable variable with that name -->
|
||||||
<$set name="<$mywidget>" value="""\whitespace trim
|
\function <$mywidget>(one:'Jaguar')
|
||||||
<$parameters one='Jaguar'>
|
\whitespace trim
|
||||||
<$text text=<<one>>/>
|
<$text text=<<one>>/>
|
||||||
<$slot $name="ts-body">
|
<$slot $name="ts-body">
|
||||||
Whale
|
Whale
|
||||||
</$slot>
|
</$slot>
|
||||||
</$parameters>"""
|
\end
|
||||||
>
|
<$mywidget one="Dingo">
|
||||||
<$mywidget one="Dingo">
|
Crocodile
|
||||||
Crocodile
|
</$mywidget>
|
||||||
</$mywidget>
|
|
||||||
</$set>
|
|
||||||
_
|
_
|
||||||
title: ExpectedResult
|
title: ExpectedResult
|
||||||
|
|
||||||
|
@ -13,18 +13,16 @@ title: TiddlerOne
|
|||||||
|
|
||||||
\whitespace trim
|
\whitespace trim
|
||||||
<!-- Redefine the <$text> widget by defining a transcludable variable with that name -->
|
<!-- Redefine the <$text> widget by defining a transcludable variable with that name -->
|
||||||
<$set name="<$text>" value="""\whitespace trim
|
\function <$text>(text:'Jaguar')
|
||||||
<$parameters text='Jaguar'>
|
\whitespace trim
|
||||||
<$text text=<<text>>/>
|
<$text text=<<text>>/>
|
||||||
<$slot $name="ts-body">
|
<$slot $name="ts-body">
|
||||||
Whale
|
Whale
|
||||||
</$slot>
|
</$slot>
|
||||||
</$parameters>"""
|
\end
|
||||||
>
|
<$text text="Dingo">
|
||||||
<$text text="Dingo">
|
Crocodile
|
||||||
Crocodile
|
</$text>
|
||||||
</$text>
|
|
||||||
</$set>
|
|
||||||
_
|
_
|
||||||
title: ExpectedResult
|
title: ExpectedResult
|
||||||
|
|
||||||
|
@ -13,18 +13,16 @@ title: TiddlerOne
|
|||||||
|
|
||||||
\whitespace trim
|
\whitespace trim
|
||||||
<!-- Redefine the <$mywidget> widget by defining a transcludable variable with that name -->
|
<!-- Redefine the <$mywidget> widget by defining a transcludable variable with that name -->
|
||||||
<$set name="<$mywidget>" value="""\whitespace trim
|
\function <$mywidget>($variable:'Jaguar')
|
||||||
<$parameters $variable='Jaguar'>
|
\whitespace trim
|
||||||
<$text text=<<$variable>>/>
|
<$text text=<<$variable>>/>
|
||||||
<$slot $name="ts-body">
|
<$slot $name="ts-body">
|
||||||
Whale
|
Whale
|
||||||
</$slot>
|
</$slot>
|
||||||
</$parameters>"""
|
\end
|
||||||
>
|
<$mywidget $variable="Dingo">
|
||||||
<$mywidget $variable="Dingo">
|
Crocodile
|
||||||
Crocodile
|
</$mywidget>
|
||||||
</$mywidget>
|
|
||||||
</$set>
|
|
||||||
_
|
_
|
||||||
title: ExpectedResult
|
title: ExpectedResult
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user