scm: mercurial: run both of "inline" and "side by side" diff in functional test_diff test.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5983 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
c361ef5a5f
commit
bc8b1c0b22
|
@ -260,17 +260,19 @@ class RepositoriesMercurialControllerTest < ActionController::TestCase
|
||||||
@repository.reload
|
@repository.reload
|
||||||
[4, '4', 'def6d2f1254a'].each do |r1|
|
[4, '4', 'def6d2f1254a'].each do |r1|
|
||||||
# Full diff of changeset 4
|
# Full diff of changeset 4
|
||||||
get :diff, :id => PRJ_ID, :rev => r1
|
['inline', 'sbs'].each do |dt|
|
||||||
assert_response :success
|
get :diff, :id => PRJ_ID, :rev => r1, :type => dt
|
||||||
assert_template 'diff'
|
assert_response :success
|
||||||
if @diff_c_support
|
assert_template 'diff'
|
||||||
# Line 22 removed
|
if @diff_c_support
|
||||||
assert_tag :tag => 'th',
|
# Line 22 removed
|
||||||
:content => '22',
|
assert_tag :tag => 'th',
|
||||||
:sibling => { :tag => 'td',
|
:content => '22',
|
||||||
:attributes => { :class => /diff_out/ },
|
:sibling => { :tag => 'td',
|
||||||
:content => /def remove/ }
|
:attributes => { :class => /diff_out/ },
|
||||||
assert_tag :tag => 'h2', :content => /4:def6d2f1254a/
|
:content => /def remove/ }
|
||||||
|
assert_tag :tag => 'h2', :content => /4:def6d2f1254a/
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue