forked from github/kensanata.oddmuse
fix portrait.t
The test hung because it used the following: *ApplyRules = *OldTocApplyRules; *RunMyRules = *RunMyRulesTocOld; But recent changes in the modules make it necessary to use the "new" style: *ApplyRules = \&OldTocApplyRules; *RunMyRules = \&RunMyRulesTocOld;
This commit is contained in:
@@ -45,8 +45,8 @@ test_page(update_page('headers', "[new]foo\n== one ==\ntext\n== two ==\ntext\n==
|
||||
|
||||
remove_module('toc.pl');
|
||||
# The next two are necessary so that toc.pl can be reloaded safely later!
|
||||
*ApplyRules = *OldTocApplyRules;
|
||||
*RunMyRules = *RunMyRulesTocOld;
|
||||
*ApplyRules = \&OldTocApplyRules;
|
||||
*RunMyRules = \&RunMyRulesTocOld;
|
||||
remove_rule(\&TocRule);
|
||||
remove_module('usemod.pl');
|
||||
remove_rule(\&UsemodRule);
|
||||
|
||||
Reference in New Issue
Block a user