mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-24 10:37:20 +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
|
||||
<!-- Define the <$action-mywidget> widget by defining a transcludable variable with that name -->
|
||||
<$set name="<$action-mywidget>" value="""\whitespace trim
|
||||
<$parameters one='Jaguar'>
|
||||
<$action-setfield $tiddler="Result" $field="text" $value=<<one>>/>
|
||||
</$parameters>"""
|
||||
>
|
||||
<$action-mywidget one="Dingo">
|
||||
Crocodile
|
||||
</$action-mywidget>
|
||||
</$set>
|
||||
\function <$action-mywidget>(one:'Jaguar')
|
||||
\whitespace trim
|
||||
<$action-setfield $tiddler="Result" $field="text" $value=<<one>>/>
|
||||
\end
|
||||
|
||||
<$action-mywidget one="Dingo">
|
||||
Crocodile
|
||||
</$action-mywidget>
|
||||
_
|
||||
title: ExpectedResult
|
||||
|
||||
|
@ -17,18 +17,16 @@ title: TiddlerOne
|
||||
|
||||
\whitespace trim
|
||||
<!-- Redefine the <$transclude> widget by defining a transcludable variable with that name -->
|
||||
<$set name="<$transclude>" value="""\whitespace trim
|
||||
<$parameters one='Jaguar'>
|
||||
<$text text=<<one>>/>
|
||||
<$slot $name="body">
|
||||
Whale
|
||||
</$slot>
|
||||
</$parameters>"""
|
||||
>
|
||||
<$transclude $tiddler="TiddlerZero">
|
||||
Crocodile
|
||||
</$transclude>
|
||||
</$set>
|
||||
\function <$transclude>(one:'Jaguar')
|
||||
\whitespace trim
|
||||
<$text text=<<one>>/>
|
||||
<$slot $name="body">
|
||||
Whale
|
||||
</$slot>
|
||||
\end
|
||||
<$transclude $tiddler="TiddlerZero">
|
||||
Crocodile
|
||||
</$transclude>
|
||||
_
|
||||
title: ExpectedResult
|
||||
|
||||
|
@ -13,18 +13,16 @@ title: TiddlerOne
|
||||
|
||||
\whitespace trim
|
||||
<!-- Define the <$mywidget> widget by defining a transcludable variable with that name -->
|
||||
<$set name="<$mywidget>" value="""\whitespace trim
|
||||
<$parameters one='Jaguar'>
|
||||
<$text text=<<one>>/>
|
||||
<$slot $name="ts-body">
|
||||
Whale
|
||||
</$slot>
|
||||
</$parameters>"""
|
||||
>
|
||||
<$mywidget one="Dingo">
|
||||
Crocodile
|
||||
</$mywidget>
|
||||
</$set>
|
||||
\function <$mywidget>(one:'Jaguar')
|
||||
\whitespace trim
|
||||
<$text text=<<one>>/>
|
||||
<$slot $name="ts-body">
|
||||
Whale
|
||||
</$slot>
|
||||
\end
|
||||
<$mywidget one="Dingo">
|
||||
Crocodile
|
||||
</$mywidget>
|
||||
_
|
||||
title: ExpectedResult
|
||||
|
||||
|
@ -13,18 +13,16 @@ title: TiddlerOne
|
||||
|
||||
\whitespace trim
|
||||
<!-- Redefine the <$text> widget by defining a transcludable variable with that name -->
|
||||
<$set name="<$text>" value="""\whitespace trim
|
||||
<$parameters text='Jaguar'>
|
||||
<$text text=<<text>>/>
|
||||
<$slot $name="ts-body">
|
||||
Whale
|
||||
</$slot>
|
||||
</$parameters>"""
|
||||
>
|
||||
<$text text="Dingo">
|
||||
Crocodile
|
||||
</$text>
|
||||
</$set>
|
||||
\function <$text>(text:'Jaguar')
|
||||
\whitespace trim
|
||||
<$text text=<<text>>/>
|
||||
<$slot $name="ts-body">
|
||||
Whale
|
||||
</$slot>
|
||||
\end
|
||||
<$text text="Dingo">
|
||||
Crocodile
|
||||
</$text>
|
||||
_
|
||||
title: ExpectedResult
|
||||
|
||||
|
@ -13,18 +13,16 @@ title: TiddlerOne
|
||||
|
||||
\whitespace trim
|
||||
<!-- Redefine the <$mywidget> widget by defining a transcludable variable with that name -->
|
||||
<$set name="<$mywidget>" value="""\whitespace trim
|
||||
<$parameters $variable='Jaguar'>
|
||||
<$text text=<<$variable>>/>
|
||||
<$slot $name="ts-body">
|
||||
Whale
|
||||
</$slot>
|
||||
</$parameters>"""
|
||||
>
|
||||
<$mywidget $variable="Dingo">
|
||||
Crocodile
|
||||
</$mywidget>
|
||||
</$set>
|
||||
\function <$mywidget>($variable:'Jaguar')
|
||||
\whitespace trim
|
||||
<$text text=<<$variable>>/>
|
||||
<$slot $name="ts-body">
|
||||
Whale
|
||||
</$slot>
|
||||
\end
|
||||
<$mywidget $variable="Dingo">
|
||||
Crocodile
|
||||
</$mywidget>
|
||||
_
|
||||
title: ExpectedResult
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user