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){