aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2010-04-21 22:04:03 -0400
committerJoey Hess <joey@kitenet.net>2010-04-21 22:04:03 -0400
commit13325317a32529e02769baa5e61e6c401c675b27 (patch)
tree9a40f1c6212c5386790a03a4e3f02ef38be5b7a6
parent09ff797682fd89380a4a71564ec02649af99851e (diff)
downloadikiwiki-13325317a32529e02769baa5e61e6c401c675b27.tar
ikiwiki-13325317a32529e02769baa5e61e6c401c675b27.tar.gz
backlink influence data seems ok
-rw-r--r--doc/bugs/depends_simple_mixup.mdwn2
-rwxr-xr-xt/pagespec_match_list.t4
2 files changed, 3 insertions, 3 deletions
diff --git a/doc/bugs/depends_simple_mixup.mdwn b/doc/bugs/depends_simple_mixup.mdwn
index 472de6349..e7b48f802 100644
--- a/doc/bugs/depends_simple_mixup.mdwn
+++ b/doc/bugs/depends_simple_mixup.mdwn
@@ -61,4 +61,4 @@ influences should return only the successful influences.
In light of this, commit f2b3d1341447cbf29189ab490daae418fbe5d02d seems
thuroughly wrong. So, what about influence info for other matches
like `!author(foo)` etc? Currently, none is returned, but it should
-be a content influence. What about backlink influence data?
+be a content influence. (Backlink influence data is ok.)
diff --git a/t/pagespec_match_list.t b/t/pagespec_match_list.t
index 05dc012fe..ee5d60f88 100755
--- a/t/pagespec_match_list.t
+++ b/t/pagespec_match_list.t
@@ -1,7 +1,7 @@
#!/usr/bin/perl
use warnings;
use strict;
-use Test::More tests => 94;
+use Test::More tests => 107;
BEGIN { use_ok("IkiWiki"); }
@@ -80,7 +80,7 @@ foreach my $spec ("* and link(bar)", "* or link(bar)") {
}
# a pagespec with backlinks() will add as an influence the page with the links
-foreach my $spec ("bar or (backlink(foo) and !*.png)", "backlink(foo)") {
+foreach my $spec ("bar or (backlink(foo) and !*.png)", "backlink(foo)", "!backlink(foo)") {
pagespec_match_list("foo2", $spec, deptype => deptype("presence"));
ok($IkiWiki::depends{foo2}{$spec} & $IkiWiki::DEPEND_PRESENCE);
ok(! ($IkiWiki::depends{foo2}{$spec} & ($IkiWiki::DEPEND_CONTENT | $IkiWiki::DEPEND_LINKS)));