mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-09-17 17:59:45 +00:00
95dc56d850
* Add initial tm-import-tiddler test * Add failing test for tm-import-tiddlers importTitle #7234 * Add failing test for tm-import-tiddlers autoOpenOnImport #7234 * Use event.paramObject instead of event to access tm-import-tiddlers options. Fixes #7234. * Added a clarifying comment * Allow mixing tm-import-tiddler params in both event and event.paramObject * Added import test using tv-auto-open-on-import variable * Removed stray punctuation
36 lines
808 B
Plaintext
36 lines
808 B
Plaintext
title: Message/tm-import-tiddlers/NoAutoOpenViaVar
|
|
description: tm-import-tiddlers can import and open based on tv-auto-open-on-import
|
|
type: text/vnd.tiddlywiki-multiple
|
|
tags: [[$:/tags/wiki-test-spec]]
|
|
|
|
title: Output
|
|
|
|
text: <$text text={{$:/Import}}/>
|
|
plugin-type: <$text text={{$:/Import!!plugin-type}}/>
|
|
~$:/StoryList: <$text text={{$:/StoryList!!list}}/>
|
|
+
|
|
title: Actions
|
|
|
|
<$let tv-auto-open-on-import="no">
|
|
<$navigator story="$:/StoryList">
|
|
<$action-sendmessage
|
|
$message="tm-import-tiddlers"
|
|
$param='[{"title": "Elephants"}, {"title": "Eagles"}]'/>
|
|
</$navigator>
|
|
</$let>
|
|
|
|
+
|
|
title: ExpectedResult
|
|
|
|
<p>text: {
|
|
"tiddlers": {
|
|
"Elephants": {
|
|
"title": "Elephants"
|
|
},
|
|
"Eagles": {
|
|
"title": "Eagles"
|
|
}
|
|
}
|
|
}
|
|
plugin-type: import
|
|
$:/StoryList: </p> |