aboutsummaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2013-11-16 12:43:46 -0400
committerJoey Hess <joey@kitenet.net>2013-11-16 12:43:46 -0400
commitfae7ed14293a43b5096cb2644b996d136a2b76f7 (patch)
treea04ecf1ea5e3bbf72bffe7b1efe6d0e294d1afa1 /t
parent992d4f52ff2801a48d85b65209cccc26efe8bd8c (diff)
downloadikiwiki-fae7ed14293a43b5096cb2644b996d136a2b76f7.tar
ikiwiki-fae7ed14293a43b5096cb2644b996d136a2b76f7.tar.gz
remove test for page state saved for disabled plugin
My change did cause this state to be retained. I hope this is not a problem. Afaik, plugins test if they were disabled before by looking at the toplevel plugin state, not the per-page plugin state. So the only remaining problem might be a) A plugin is disabled but its state keeps being saved. Which is not ideal, perhaps, but the large speedup of my optimisation seems worth it. b) A plugin might have been enabled, be disabled, and get re-enabled, and see old state from before. I don't see how this would be different from the plugin seeing any other old state, though, so hopefully no breakage. My optmisation looks a little more risky, but I still hope I can keep it.
Diffstat (limited to 't')
-rwxr-xr-xt/index.t2
1 files changed, 0 insertions, 2 deletions
diff --git a/t/index.t b/t/index.t
index 392a167e9..3f4b7d9b1 100755
--- a/t/index.t
+++ b/t/index.t
@@ -38,8 +38,6 @@ $depends{"bar"}={"foo*" => 1};
$depends{"bar.png"}={};
$pagestate{"bar"}{meta}{title}="a page about bar";
$pagestate{"bar"}{meta}{moo}="mooooo";
-# only loaded plugins save state, so this should not be saved out
-$pagestate{"bar"}{nosuchplugin}{moo}="mooooo";
ok(saveindex(), "save index");
ok(-s "$config{wikistatedir}/indexdb", "index file created");