mirror of
https://github.com/flynx/pWiki.git
synced 2026-07-10 18:40:56 +00:00
updated tests...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
cc94cdad03
commit
5dda9c3f49
@ -50,6 +50,7 @@ module.exports.P = {
|
||||
//---------------------------------------------------------------------
|
||||
|
||||
test.Setups({
|
||||
// general parser...
|
||||
empty: function(assert){
|
||||
return { code: [ '', '' ] }},
|
||||
|
||||
@ -141,11 +142,7 @@ test.Setups({
|
||||
return {code: [
|
||||
'<slot slot>moo<slot slot>[[ <content/> ]]</slot></slot>',
|
||||
'[[ moo ]]' ]} },
|
||||
|
||||
/* XXX SHOWN_HIDDEN
|
||||
// XXX these need to be revised...
|
||||
// ...do we actually need hidden/shown???
|
||||
//
|
||||
// shown/hidden..
|
||||
slot_shown: function(assert){
|
||||
var ins = this.slot_value(assert).code
|
||||
var expect = ins.pop()
|
||||
@ -170,9 +167,8 @@ test.Setups({
|
||||
var expect = ins.pop()
|
||||
return {code: [
|
||||
...ins.map(function(i){
|
||||
return i +'@slot(slot shown)' }),
|
||||
'' ]} },
|
||||
//*/
|
||||
return i +' | @slot(slot shown)' }),
|
||||
' | value' ]} },
|
||||
|
||||
// XXX var...
|
||||
// XXX
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user