Fixed second long table test.

This commit is contained in:
Alex Schroeder
2005-04-16 01:35:32 +00:00
parent 2b0e651179
commit 1db26cb844

View File

@@ -2397,8 +2397,8 @@ add_module('tables-long.pl');
update_page("TablePage", "<table a,b>\na=a\nb=b\na=one\nb=two\n----\n\nDone.");
test_page(get_page('TablePage'), '<table class="user long"><tr><th>a</th><th>b</th></tr><tr><td>one</td><td>two</td></tr></table>');
update_page("TablePage", "Here is a table:\n<table a,b>\na=a\nb=b\na=one\ntwo\nand a half\nb=three\na=foo\nb=bar\n----\n\nDone.");
test_page(get_page('TablePage'), '<p>Here is a table: </p><table class="user long"><tr><th>a</th><th>b</th></tr><tr><td>one two and a half</td><td>three</td></tr><tr><td>foo</td><td>bar</td></tr></table><p>Done.</p>');
update_page("TablePage", "Here is a table:\n<table a,b>\na=a\nb=b\na=one\ntwo\nand a half\nb=three\na=foo\nb=bar\n----\n\nDone.\n<table foo,bar>\nfoo=test\nbar=test as well\nfoo=what we test\n----\nthe end.");
test_page(get_page('TablePage'), '<p>Here is a table: </p><table class="user long"><tr><th>a</th><th>b</th></tr><tr><td>one two and a half</td><td>three</td></tr><tr><td>foo</td><td>bar</td></tr></table><p>Done. </p><table class="user long"><tr><th>test</th><th>test as well</th></tr><tr><td colspan="2">what we test</td></tr></table><p>the end.</p>');
remove_rule(\&TablesLongRule);