scm: mercurial: run both of "inline" and "side by side" diff in functional test_diff_latin_1_path test.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5985 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
45cce005d2
commit
901a937053
@ -302,23 +302,25 @@ class RepositoriesMercurialControllerTest < ActionController::TestCase
|
|||||||
def test_diff_latin_1_path
|
def test_diff_latin_1_path
|
||||||
with_settings :repositories_encodings => 'UTF-8,ISO-8859-1' do
|
with_settings :repositories_encodings => 'UTF-8,ISO-8859-1' do
|
||||||
[21, 'adf805632193'].each do |r1|
|
[21, 'adf805632193'].each do |r1|
|
||||||
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
|
||||||
assert_tag :tag => 'thead',
|
assert_template 'diff'
|
||||||
:descendant => {
|
assert_tag :tag => 'thead',
|
||||||
:tag => 'th',
|
|
||||||
:attributes => { :class => 'filename' } ,
|
|
||||||
:content => /latin-1-dir\/test-#{@char_1}-2.txt/ ,
|
|
||||||
},
|
|
||||||
:sibling => {
|
|
||||||
:tag => 'tbody',
|
|
||||||
:descendant => {
|
:descendant => {
|
||||||
:tag => 'td',
|
:tag => 'th',
|
||||||
:attributes => { :class => /diff_in/ },
|
:attributes => { :class => 'filename' } ,
|
||||||
:content => /It is written in Python/
|
:content => /latin-1-dir\/test-#{@char_1}-2.txt/ ,
|
||||||
|
},
|
||||||
|
:sibling => {
|
||||||
|
:tag => 'tbody',
|
||||||
|
:descendant => {
|
||||||
|
:tag => 'td',
|
||||||
|
:attributes => { :class => /diff_in/ },
|
||||||
|
:content => /It is written in Python/
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user