test/parser_test.rb in trac-wiki-0.3.35 vs test/parser_test.rb in trac-wiki-0.3.36

- old
+ new

@@ -96,11 +96,11 @@ #pp parser.headers parser.headings.should == hash end end -describe TracWiki::Parser do +describe 'TracWiki::Parser' do it 'should not parse linkd' do tc "<p>[[ahoj]]</p>\n", "[ahoj]", :no_link => true tc "<p>[[ahoj]]</p>\n", "[[ahoj]]", :no_link => true tc "<p>[[ahoj|bhoj]]</p>\n", "[[ahoj|bhoj]]", :no_link => true tc "<ul><li>[[ahoj|bhoj]]</li>\n</ul>\n", "* [[ahoj|bhoj]]", :no_link => true @@ -178,10 +178,15 @@ # Italic can be used inside table cells tc("<table><tr><td>This is <em>italic</em></td>\n</tr>\n</table>\n", "||This is ''italic''||") + + # table with div_around_table + tc("<div class=\"table-div\"><table><tr><td>This is <em>italic</em></td>\n</tr>\n</table>\n</div>\n", + "||This is ''italic''||", div_around_table: true + # Links can appear inside italic text: tc("<p>A italic link: <em><a href=\"http://example.org/\">http://example.org/</a> nice! </em></p>\n", "A italic link: ''http://example.org/ nice! ''") # Italic will end at the end of paragraph @@ -362,9 +367,10 @@ # A list end paragraphs too. tc "<p>Hello</p>\n<ul><li>Item</li>\n</ul>\n", "Hello\n* Item\n" # A table end paragraphs too. tc "<p>Hello</p>\n<table><tr><td>Cell</td>\n</tr>\n</table>\n", "Hello\n||Cell||" + # A nowiki end paragraphs too. tc "<p>Hello</p>\n<pre>nowiki</pre>", "Hello\n{{{\nnowiki\n}}}\n" # WARNING: A heading ends a paragraph (not specced)