##// END OF EJS Templates
scm: mercurial: run both of "inline" and "side by side" diff in functional test_diff_latin_1_path test....
Toshi MARUYAMA -
r5865:901a93705391
parent child
Show More
@@ -302,23 +302,25 class RepositoriesMercurialControllerTest < ActionController::TestCase
302 def test_diff_latin_1_path
302 def test_diff_latin_1_path
303 with_settings :repositories_encodings => 'UTF-8,ISO-8859-1' do
303 with_settings :repositories_encodings => 'UTF-8,ISO-8859-1' do
304 [21, 'adf805632193'].each do |r1|
304 [21, 'adf805632193'].each do |r1|
305 get :diff, :id => PRJ_ID, :rev => r1
305 ['inline', 'sbs'].each do |dt|
306 assert_response :success
306 get :diff, :id => PRJ_ID, :rev => r1, :type => dt
307 assert_template 'diff'
307 assert_response :success
308 assert_tag :tag => 'thead',
308 assert_template 'diff'
309 :descendant => {
309 assert_tag :tag => 'thead',
310 :tag => 'th',
311 :attributes => { :class => 'filename' } ,
312 :content => /latin-1-dir\/test-#{@char_1}-2.txt/ ,
313 },
314 :sibling => {
315 :tag => 'tbody',
316 :descendant => {
310 :descendant => {
317 :tag => 'td',
311 :tag => 'th',
318 :attributes => { :class => /diff_in/ },
312 :attributes => { :class => 'filename' } ,
319 :content => /It is written in Python/
313 :content => /latin-1-dir\/test-#{@char_1}-2.txt/ ,
314 },
315 :sibling => {
316 :tag => 'tbody',
317 :descendant => {
318 :tag => 'td',
319 :attributes => { :class => /diff_in/ },
320 :content => /It is written in Python/
321 }
320 }
322 }
321 }
323 end
322 end
324 end
323 end
325 end
324 end
326 end
General Comments 0
You need to be logged in to leave comments. Login now