##// END OF EJS Templates
scm: bazaar: run both of "inline" and "side by side" diff in functional test_diff test....
Toshi MARUYAMA -
r5859:958612451bfc
parent child
Show More
@@ -110,15 +110,17 class RepositoriesBazaarControllerTest < ActionController::TestCase
110
110
111 def test_diff
111 def test_diff
112 # Full diff of changeset 3
112 # Full diff of changeset 3
113 get :diff, :id => PRJ_ID, :rev => 3
113 ['inline', 'sbs'].each do |dt|
114 assert_response :success
114 get :diff, :id => PRJ_ID, :rev => 3, :type => dt
115 assert_template 'diff'
115 assert_response :success
116 # Line 11 removed
116 assert_template 'diff'
117 assert_tag :tag => 'th',
117 # Line 11 removed
118 :content => /11/,
118 assert_tag :tag => 'th',
119 :sibling => { :tag => 'td',
119 :content => '11',
120 :attributes => { :class => /diff_out/ },
120 :sibling => { :tag => 'td',
121 :content => /Display more information/ }
121 :attributes => { :class => /diff_out/ },
122 :content => /Display more information/ }
123 end
122 end
124 end
123
125
124 def test_annotate
126 def test_annotate
General Comments 0
You need to be logged in to leave comments. Login now