Skip to content
Permalink
Browse files

Update the test for the isTopLevel variables.

  • Loading branch information...
perlDreamer committed May 5, 2010
1 parent 491c302 commit 16cca1f99af4f2a30205c0d7002da05dab357763
Showing with 6 additions and 3 deletions.
  1. +6 −3 t/Asset/Wobject/WikiMaster.t
@@ -101,20 +101,23 @@ cmp_deeply(
level => 0,
indent_loop => [],
descendants => 0,
isTopLevel => 1,
},
{
title => 'inmates',
url => '/testwiki?func=byKeyword;keyword=inmates',
level => 0,
indent_loop => [],
descendants => 0,
isTopLevel => 1,
},
{
title => 'staff',
url => '/testwiki?func=byKeyword;keyword=staff',
level => 0,
indent_loop => [],
descendants => 0,
isTopLevel => 1,
},
],
"... variables",
@@ -245,9 +248,9 @@ cmp_deeply(
},
]),
[
{ title => 'title 0', url => 'url 0', level => 0, indent_loop => [], },
{ title => 'title 1', url => 'url 1', level => 1, indent_loop => [{indent => 1}], },
{ title => 'title 2', url => 'url 2', level => 2, indent_loop => [{indent => 1,}, {indent => 2,},], },
{ title => 'title 0', url => 'url 0', level => 0, isTopLevel => 1, indent_loop => [], },
{ title => 'title 1', url => 'url 1', level => 1, isTopLevel => '', indent_loop => [{indent => 1}], },
{ title => 'title 2', url => 'url 2', level => 2, isTopLevel => '', indent_loop => [{indent => 1,}, {indent => 2,},], },
],
'getKeywordVariables: checking deeply'
);

0 comments on commit 16cca1f

Please sign in to comment.
You can’t perform that action at this time.