changeset 2909:c39426a679b4

test_text_html_text_moin_wiki: further tests for table cells and <br \>
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Sun, 28 Oct 2007 18:50:49 +0100
parents 0bc6871c65de
children 9dd063760883
files MoinMoin/converter/_tests/test_text_html_text_moin_wiki.py
diffstat 1 files changed, 46 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/converter/_tests/test_text_html_text_moin_wiki.py	Sun Oct 28 18:47:48 2007 +0100
+++ b/MoinMoin/converter/_tests/test_text_html_text_moin_wiki.py	Sun Oct 28 18:50:49 2007 +0100
@@ -1247,4 +1247,50 @@
 """
 
         self.do(test, output)
+
+    def testTable08(self):
+        # tests line break between two lines in formatted text
+        test = u"<table><tbody><tr><td><strong>first line<br />second line</strong></td></tr></tbody></table>"
+        output = u"||'''first line<<BR>>second line'''||"
+
+        self.do(test, output)
+
+    def testTable09(self):
+        # tests line break at beginning of line and formatted text
+        test = u"<table><tbody><tr><td><strong><br />line</strong></td></tr></tbody></table>"
+        output = u"||'''<<BR>>line'''||"
+
+    def testTable10(self):
+        # tests line break at end of line and formatted text
+        test = u"<table><tbody><tr><td><strong>line<br /></strong></td></tr></tbody></table>"
+        output = u"||'''line<<BR>>'''||"
+
+    def testTable11(self):
+        # tests line break at beginning before formatted text
+        test = u"<table><tbody><tr><td><br /><strong>line</strong></td></tr></tbody></table>"
+        output = u"||'<<BR>'''line'''||"
+
+    def testTable12(self):
+        # tests line break after formatted text
+        test = u"<table><tbody><tr><td><strong>line</strong><br /></td></tr></tbody></table>"
+        output = u"||'''line'''<<BR>>||"
+
+    def testTable13(self):
+        # tests formatted br
+        test = u"<table><tbody><tr><td><strong><br /></strong></td></tr></tbody></table>"
+        output = u"||''''''||"
+
+    def testTable14(self):
+        # tests br
+        test = u"<table><tbody><tr><td><br /></td></tr></tbody></table>"
+        output = u"||<<BR>>||"
+
+    def testTable15(self):
+        # tests many br
+        test = u"<table><tbody><tr><td><br /><br /><br /></td></tr></tbody></table>"
+        output = u"||<<BR>><<BR>><<BR>>||"
+
+        self.do(test, output)
+
 coverage_modules = ['MoinMoin.converter.text_html_text_moin_wiki']
+