test/parser_test.rb in trac-wiki-0.1.7 vs test/parser_test.rb in trac-wiki-0.1.8
- old
+ new
@@ -792,12 +792,16 @@
tc("<p><a href=\"a%2Fb%2Fc\">a/b/c</a></p>\n", "[[a/b/c]]")
tc("<p><a href=\"a%2Fb%2Fc\">a/b/c</a></p>\n", "[a/b/c]")
tc("<p><a href=\"a/b/c\">a/b/c</a></p>\n", "[[a/b/c]]", :no_escape => true)
end
it 'should support merge' do
- tc "<div class='merge merge-orig'>original</div>\n", "======= original", :merge => true
+ tc "<div class='merge merge-orig'>orig</div>\n", "||||||| orig", :merge => true
tc "<div class='merge merge-mine'>mine</div>\n", "<<<<<<< mine", :merge => true
tc "<div class='merge merge-your'>your</div>\n", ">>>>>>> your", :merge => true
tc "<p>bhoj</p>\n<div class='merge merge-your'>your</div>\n<p>ahoj</p>\n", "bhoj\n>>>>>>> your\nahoj", :merge => true
+ tc "<div class='merge merge-split'></div>\n<p>ahoj</p>\n", "=======\nahoj\n", :merge => true
+ tc "<div class='merge merge-split'>split</div>\n", "======= split", :merge => true
+
+ tc "<h6></h6><p>ahoj</p>\n", "=======\nahoj\n", :merge => false
end
end
# vim: tw=0