From b7838309ed21b7b59f90d210bf45ef8a0adcdca4 Mon Sep 17 00:00:00 2001 From: Alex Schroeder Date: Tue, 6 Jan 2004 00:52:53 +0000 Subject: [PATCH] updated tests --- test-markup.pl | 34 ++++++++++------------------------ 1 file changed, 10 insertions(+), 24 deletions(-) diff --git a/test-markup.pl b/test-markup.pl index 33730f17..78c3063d 100755 --- a/test-markup.pl +++ b/test-markup.pl @@ -637,29 +637,15 @@ close(F); # without new edit, the cached version persists -@Test = split('\n',<<'EOT'); -This is a WikiLink. -EOT - test_page(get_page('CacheTest'), @Test); -# now run maintenance without refreshing the cache - -get_page('action=maintain'); -test_page(get_page('CacheTest'), @Test); - -# a second maintenance run without admin password has no effect, either - -get_page('action=maintain cache=1'); -test_page(get_page('CacheTest'), @Test); - -# new refresh the cache +# refresh the cache using the all action @Test = split('\n',<<'EOT'); -This is a WikiLink\?. +This is a WikiLink\?. EOT -get_page('action=maintain cache=1 pwd=foo'); +get_page('action=all cache=0'); test_page(get_page('CacheTest'), @Test); # -------------------- @@ -937,13 +923,13 @@ This is longer strong text. This is ''emphasized text containing '''longer strong''' text''. This is emphasized text containing longer strong text. WikiWord -WikiWord? +WikiWord? WikiWord: -WikiWord?: +WikiWord?: OddMuse -OddMuse? +OddMuse? OddMuse: -OddMuse?: +OddMuse?: OddMuse:test OddMuse:test OddMuse:test: or not @@ -959,7 +945,7 @@ WikiLink !foo !foo ![[Free Link]] -![Free Link]? +![Free Link]? ||one||
one
introduction\n\n||one||two||three||\n||||one two||three|| @@ -1053,11 +1039,11 @@ update_page('Banana', "This page exists also."); [[SandBox|play here]] play here [[FooBar|do not play here]] -[FooBar? do not play here] +[FooBar? do not play here] [[Banana|Not a pear]] Not a pear [[Appel|Not a pear]] -[Appel? Not a pear] +[Appel? Not a pear] file://home/foo/tutorial.pdf file://home/foo/tutorial.pdf file:///home/foo/tutorial.pdf