-# adding a pagespec that requires page metadata should cause a fallback to
-# a content dependency
-foreach my $spec ("* and ! link(bar)", "* or link(bar)", "unknownspec()",
- "title(hi)",
- "* or backlink(yo)", # this one could actually be acceptably be
- # detected to not need a content dep .. in
- # theory!
- ) {
- ok(add_depends("foo3", $spec, presence => 1));
- ok($IkiWiki::depends{foo3}{$spec} & $IkiWiki::DEPEND_CONTENT);
- ok(! ($IkiWiki::depends{foo3}{$spec} & ($IkiWiki::DEPEND_PRESENCE | $IkiWiki::DEPEND_LINKS)));
-}
-