mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-02-24 15:00:03 +00:00

* add tc-tesc-case class to testcase-widget * add default and custom class to testcase-widget * Testcase widget update tests for default and custom class definitions
27 lines
809 B
Plaintext
27 lines
809 B
Plaintext
title: Data/ImportCompound
|
|
type: text/vnd.tiddlywiki-multiple
|
|
tags: [[$:/tags/wiki-test-spec]]
|
|
description: Importing a compound payload tiddler and adding custom fields
|
|
|
|
title: Description
|
|
text: Importing a compound payload tiddler and adding custom fields
|
|
+
|
|
title: Output
|
|
|
|
\whitespace trim
|
|
<$testcase template="$:/core/ui/testcases/RawJSONTemplate">
|
|
<$data $compound-tiddler="Compound" custom="Alpha"/>
|
|
</$testcase>
|
|
+
|
|
title: Compound
|
|
type: text/vnd.tiddlywiki-multiple
|
|
tags: [[$:/tags/wiki-test-spec]]
|
|
|
|
title: Payload Tiddler
|
|
tags: Alpha Beta Gamma
|
|
|
|
This is a payload tiddler from a compound tiddler
|
|
+
|
|
title: ExpectedResult
|
|
|
|
<p><div class="tc-test-case "><div>[{"title":"Payload Tiddler","tags":"Alpha Beta Gamma","text":"This is a payload tiddler from a compound tiddler","custom":"Alpha"}]</div></div></p> |