mirror of
https://github.com/flynx/pWiki.git
synced 2026-07-13 20:10:57 +00:00
more testing...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
d8f8d5cc1e
commit
b37925d28e
@ -278,17 +278,13 @@ test.Setups({
|
|||||||
page: P,
|
page: P,
|
||||||
code:[
|
code:[
|
||||||
'@include("/isolated") @slot(slot overloaded)',
|
'@include("/isolated") @slot(slot overloaded)',
|
||||||
'overloaded ',
|
'overloaded ', ], } },
|
||||||
],
|
|
||||||
} },
|
|
||||||
include_isolated: function(assert){
|
include_isolated: function(assert){
|
||||||
return {
|
return {
|
||||||
page: P,
|
page: P,
|
||||||
code:[
|
code:[
|
||||||
'@include(isolated /isolated) @slot(slot overloaded)',
|
'@include(isolated /isolated) @slot(slot overloaded)',
|
||||||
'original overloaded',
|
'original overloaded', ], } },
|
||||||
],
|
|
||||||
} },
|
|
||||||
include_partial_isolated: function(assert){
|
include_partial_isolated: function(assert){
|
||||||
return {
|
return {
|
||||||
page: P,
|
page: P,
|
||||||
@ -335,6 +331,33 @@ test.Setups({
|
|||||||
code: [
|
code: [
|
||||||
'<macro src="/not_found">[[ @source(./path) ]]<else>ERR</else></macro>',
|
'<macro src="/not_found">[[ @source(./path) ]]<else>ERR</else></macro>',
|
||||||
'ERR', ], } },
|
'ERR', ], } },
|
||||||
|
macro_define: function(assert){
|
||||||
|
return {
|
||||||
|
page: P,
|
||||||
|
code: [
|
||||||
|
'<macro name=show_path>[[ @source(./path) ]]<else>ERR</else></macro>',
|
||||||
|
'', ], } },
|
||||||
|
macro_use: function(assert){
|
||||||
|
var res = this.macro_define(assert)
|
||||||
|
return {
|
||||||
|
page: P,
|
||||||
|
code: [
|
||||||
|
res.code[0] + '<macro name=show_path src="/page"/>',
|
||||||
|
'[[ /page ]]' ]} },
|
||||||
|
macro_use_404: function(assert){
|
||||||
|
var res = this.macro_define(assert)
|
||||||
|
return {
|
||||||
|
page: P,
|
||||||
|
code: [
|
||||||
|
res.code[0] + '<macro name=show_path src="/mooo"/>',
|
||||||
|
'ERR' ]} },
|
||||||
|
macro_use_multi: function(assert){
|
||||||
|
var res = this.macro_define(assert)
|
||||||
|
return {
|
||||||
|
page: P,
|
||||||
|
code: [
|
||||||
|
res.code[0] + '<macro name=show_path src="/*/page"/>',
|
||||||
|
'[[ /async/page ]][[ /multi/page ]][[ /async/multi/page ]]' ]} },
|
||||||
|
|
||||||
// XXX var...
|
// XXX var...
|
||||||
// XXX
|
// XXX
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user