mirror of
https://github.com/flynx/pWiki.git
synced 2026-07-13 20:10:57 +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({
|
test.Setups({
|
||||||
|
// general parser...
|
||||||
empty: function(assert){
|
empty: function(assert){
|
||||||
return { code: [ '', '' ] }},
|
return { code: [ '', '' ] }},
|
||||||
|
|
||||||
@ -141,11 +142,7 @@ test.Setups({
|
|||||||
return {code: [
|
return {code: [
|
||||||
'<slot slot>moo<slot slot>[[ <content/> ]]</slot></slot>',
|
'<slot slot>moo<slot slot>[[ <content/> ]]</slot></slot>',
|
||||||
'[[ moo ]]' ]} },
|
'[[ moo ]]' ]} },
|
||||||
|
// shown/hidden..
|
||||||
/* XXX SHOWN_HIDDEN
|
|
||||||
// XXX these need to be revised...
|
|
||||||
// ...do we actually need hidden/shown???
|
|
||||||
//
|
|
||||||
slot_shown: function(assert){
|
slot_shown: function(assert){
|
||||||
var ins = this.slot_value(assert).code
|
var ins = this.slot_value(assert).code
|
||||||
var expect = ins.pop()
|
var expect = ins.pop()
|
||||||
@ -170,9 +167,8 @@ test.Setups({
|
|||||||
var expect = ins.pop()
|
var expect = ins.pop()
|
||||||
return {code: [
|
return {code: [
|
||||||
...ins.map(function(i){
|
...ins.map(function(i){
|
||||||
return i +'@slot(slot shown)' }),
|
return i +' | @slot(slot shown)' }),
|
||||||
'' ]} },
|
' | value' ]} },
|
||||||
//*/
|
|
||||||
|
|
||||||
// XXX var...
|
// XXX var...
|
||||||
// XXX
|
// XXX
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user