##// END OF EJS Templates
scm: mercurial: run both of "inline" and "side by side" diff in functional test_diff test....
Toshi MARUYAMA -
r5863:bc8b1c0b22d2
parent child
Show More
@@ -260,17 +260,19 class RepositoriesMercurialControllerTest < ActionController::TestCase
260 260 @repository.reload
261 261 [4, '4', 'def6d2f1254a'].each do |r1|
262 262 # Full diff of changeset 4
263 get :diff, :id => PRJ_ID, :rev => r1
264 assert_response :success
265 assert_template 'diff'
266 if @diff_c_support
267 # Line 22 removed
268 assert_tag :tag => 'th',
269 :content => '22',
270 :sibling => { :tag => 'td',
271 :attributes => { :class => /diff_out/ },
272 :content => /def remove/ }
273 assert_tag :tag => 'h2', :content => /4:def6d2f1254a/
263 ['inline', 'sbs'].each do |dt|
264 get :diff, :id => PRJ_ID, :rev => r1, :type => dt
265 assert_response :success
266 assert_template 'diff'
267 if @diff_c_support
268 # Line 22 removed
269 assert_tag :tag => 'th',
270 :content => '22',
271 :sibling => { :tag => 'td',
272 :attributes => { :class => /diff_out/ },
273 :content => /def remove/ }
274 assert_tag :tag => 'h2', :content => /4:def6d2f1254a/
275 end
274 276 end
275 277 end
276 278 end
General Comments 0
You need to be logged in to leave comments. Login now