diff --git a/editions/test/tiddlers/tests/data/operators/colour/ColourFunctionDiv.tid b/editions/test/tiddlers/tests/data/operators/colour/ColourFunctionDiv.tid new file mode 100644 index 000000000..e6d2b84c7 --- /dev/null +++ b/editions/test/tiddlers/tests/data/operators/colour/ColourFunctionDiv.tid @@ -0,0 +1,18 @@ +title: Operators/Colour/ColourFunctionDiv +description: Simple colour function applied to a DIV +type: text/vnd.tiddlywiki-multiple +tags: [[$:/tags/wiki-test-spec]] + +title: Output + +\parsermode inline +\import [subfilter{$:/core/config/GlobalImportFilter}] +
>> +Something +
++ +title: ExpectedResult + +
+Something +
\ No newline at end of file diff --git a/editions/test/tiddlers/tests/data/operators/colour/ColourFunctionSimple.tid b/editions/test/tiddlers/tests/data/operators/colour/ColourFunctionSimple.tid new file mode 100644 index 000000000..8cb21ef73 --- /dev/null +++ b/editions/test/tiddlers/tests/data/operators/colour/ColourFunctionSimple.tid @@ -0,0 +1,18 @@ +title: Operators/Colour/ColourFunctionSimple +description: Simple colour function +type: text/vnd.tiddlywiki-multiple +tags: [[$:/tags/wiki-test-spec]] + +title: Output + +\parsermode inline +\import [subfilter{$:/core/config/GlobalImportFilter}] +<$text text={{{ [subfilter{Filter}] }}}/> ++ +title: Filter + +[function[colour],[background]] ++ +title: ExpectedResult + +#ffffff \ No newline at end of file diff --git a/plugins/tiddlywiki/jasmine/run-wiki-based-tests.js b/plugins/tiddlywiki/jasmine/run-wiki-based-tests.js index 90d4768e4..2e854cf46 100644 --- a/plugins/tiddlywiki/jasmine/run-wiki-based-tests.js +++ b/plugins/tiddlywiki/jasmine/run-wiki-based-tests.js @@ -30,6 +30,13 @@ describe("Wiki-based tests", function() { wiki.addTiddler(coreTiddler); } wiki.addTiddlers(readMultipleTiddlersTiddler(title)); + // Unpack plugin tiddlers + wiki.readPluginInfo(); + wiki.registerPluginTiddlers("plugin"); + wiki.unpackPluginTiddlers(); + wiki.addIndexersToWiki(); + // Clear changes queue + wiki.clearTiddlerEventQueue(); // Complain if we don't have the ouput and expected results if(!wiki.tiddlerExists("Output")) { throw "Missing 'Output' tiddler";