From f6ee0cdf4c0bd19cafbe5aa69d5264837f0406ba Mon Sep 17 00:00:00 2001 From: "jeremy@jermolene.com" Date: Sat, 3 Sep 2022 12:57:45 +0100 Subject: [PATCH] Add test to show that global widgets need not use the _parameters field --- .../tests/data/globals/CustomWidgetAlt.tid | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 editions/test/tiddlers/tests/data/globals/CustomWidgetAlt.tid diff --git a/editions/test/tiddlers/tests/data/globals/CustomWidgetAlt.tid b/editions/test/tiddlers/tests/data/globals/CustomWidgetAlt.tid new file mode 100644 index 000000000..dbd3e75ae --- /dev/null +++ b/editions/test/tiddlers/tests/data/globals/CustomWidgetAlt.tid @@ -0,0 +1,23 @@ +title: Globals/CustomWidgetAlt +description: Global shadow variable defining a custom widget, without using a _parameters field +type: text/vnd.tiddlywiki-multiple +tags: [[$:/tags/wiki-test-spec]] + +title: Output + +\whitespace trim + +<$$mywidget foo="Mahogany"> +Sycamore! + ++ +title: $:/global/$$mywidget +_is_widget: yes + +\parameters (foo:"bar") + +Koala! <$text text=<>/>, <$slot $name="ts-raw"/> ++ +title: ExpectedResult + +

Koala! Mahogany, Sycamore!

\ No newline at end of file