##// 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 302 def test_diff_latin_1_path
303 303 with_settings :repositories_encodings => 'UTF-8,ISO-8859-1' do
304 304 [21, 'adf805632193'].each do |r1|
305 get :diff, :id => PRJ_ID, :rev => r1
306 assert_response :success
307 assert_template 'diff'
308 assert_tag :tag => 'thead',
309 :descendant => {
310 :tag => 'th',
311 :attributes => { :class => 'filename' } ,
312 :content => /latin-1-dir\/test-#{@char_1}-2.txt/ ,
313 },
314 :sibling => {
315 :tag => 'tbody',
305 ['inline', 'sbs'].each do |dt|
306 get :diff, :id => PRJ_ID, :rev => r1, :type => dt
307 assert_response :success
308 assert_template 'diff'
309 assert_tag :tag => 'thead',
316 310 :descendant => {
317 :tag => 'td',
318 :attributes => { :class => /diff_in/ },
319 :content => /It is written in Python/
311 :tag => 'th',
312 :attributes => { :class => 'filename' } ,
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 324 end
323 325 end
324 326 end
General Comments 0
You need to be logged in to leave comments. Login now