From 79ad01b9aa00edad048c54203ab6b0d255e789c5 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Tue, 7 Jul 2026 13:21:29 +0300 Subject: [PATCH] tests... Signed-off-by: Alex A. Naanou --- v3/pwiki/test/parser.js | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/v3/pwiki/test/parser.js b/v3/pwiki/test/parser.js index 0a71a06..d27b50b 100755 --- a/v3/pwiki/test/parser.js +++ b/v3/pwiki/test/parser.js @@ -313,8 +313,26 @@ test.Setups({ '<< << recursion found >> >>', ], } }, // quote... - // for inline quoting see: test.Modifiers.quote - // XXX + // NOTE: for inline quoting see: test.Modifiers.quote + quote_a: function(assert, quoted='@include(/page)'){ + return {code: [ + '@quote(text="'+ quoted +'")', + quoted ], } }, + quote_b: function(assert, quoted='@include(/page)'){ + return {code: [ + ''+ quoted +'', + quoted ], } }, + /* XXX this is broken... + quote_quote_a_a: function(assert){ + return this.quote_a(assert, '@qoote(text=\\"text\\")') }, + //*/ + quote_quote_a_b: function(assert){ + return this.quote_b(assert, '@qoote(text="text")') }, + quote_quote_b_a: function(assert){ + return this.quote_a(assert, ' text ') }, + // XXX do we need a non-html way to quote things?? + quote_quote_b_b: function(assert){ + return this.quote_b(assert, ' text </quote>') }, // macro... macro: function(assert, path='/page', res){