test/parser_test.rb in trac-wiki-0.3.43 vs test/parser_test.rb in trac-wiki-0.3.44
- old
+ new
@@ -676,10 +676,10 @@
it 'should parse wm-table' do
tc "<table><tr><td>Hello</td>\n<th>World!</th>\n</tr>\n<tr><td>Hello</td>\n<td>World!</td>\n</tr>\n</table>\n", "{|\n|Hello\n!World!\n|-\n|Hello\n|World!\n|}\n\n"
tc "<table><tr><td><strong>Hello</strong></td>\n<td>World!</td>\n</tr>\n<tr><td>Hello</td>\n<td>World!</td>\n</tr>\n</table>\n", "{|\n|**Hello**\n|World!\n|-\n|Hello\n|World!\n|}\n\n"
tc "<table><tr><td><strong>Hello</strong></td>\n<td>Wor ld</td>\n</tr>\n</table>\n", "{|\n|**Hello**\n|Wor\nld\n|}\n\n"
- tc("<div class=\"table-div\" data-from-line=\"1\" data-to-line=\"3\"><table><tr><td>A</td>\n</tr>\n</table>\n</div>\n",
+ tc("<div class=\"table-div table-wikimedia\" data-from-line=\"1\" data-to-line=\"3\"><table><tr><td>A</td>\n</tr>\n</table>\n</div>\n",
"{|\n|A\n|}\n", div_around_table: true)
end
it 'should parse table' do
tc "<table><tr><td>Hello</td>\n<td>World!</td>\n</tr>\n</table>\n", "||Hello||World!||"
tc "<table><tr><td>Hello</td>\n<td>World!</td>\n</tr>\n<tr><td>Hello</td>\n<td>World!</td>\n</tr>\n</table>\n", "||Hello||World!||\n||Hello||World!||\n\n"