From b37925d28e147ae66317d120bcf19ce67430bf83 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Tue, 7 Jul 2026 12:13:45 +0300 Subject: [PATCH] more testing... Signed-off-by: Alex A. Naanou --- v3/pwiki/test/parser.js | 35 +++++++++++++++++++++++++++++------ 1 file changed, 29 insertions(+), 6 deletions(-) diff --git a/v3/pwiki/test/parser.js b/v3/pwiki/test/parser.js index 364ce8d..0a71a06 100755 --- a/v3/pwiki/test/parser.js +++ b/v3/pwiki/test/parser.js @@ -278,17 +278,13 @@ test.Setups({ page: P, code:[ '@include("/isolated") @slot(slot overloaded)', - 'overloaded ', - ], - } }, + 'overloaded ', ], } }, include_isolated: function(assert){ return { page: P, code:[ '@include(isolated /isolated) @slot(slot overloaded)', - 'original overloaded', - ], - } }, + 'original overloaded', ], } }, include_partial_isolated: function(assert){ return { page: P, @@ -335,6 +331,33 @@ test.Setups({ code: [ '[[ @source(./path) ]]ERR', 'ERR', ], } }, + macro_define: function(assert){ + return { + page: P, + code: [ + '[[ @source(./path) ]]ERR', + '', ], } }, + macro_use: function(assert){ + var res = this.macro_define(assert) + return { + page: P, + code: [ + res.code[0] + '', + '[[ /page ]]' ]} }, + macro_use_404: function(assert){ + var res = this.macro_define(assert) + return { + page: P, + code: [ + res.code[0] + '', + 'ERR' ]} }, + macro_use_multi: function(assert){ + var res = this.macro_define(assert) + return { + page: P, + code: [ + res.code[0] + '', + '[[ /async/page ]][[ /multi/page ]][[ /async/multi/page ]]' ]} }, // XXX var... // XXX