mirror of
https://github.com/redmine/redmine.git
synced 2025-11-08 06:15:59 +01:00
Fix code copying in common browsers (#36580).
Patch by Vitaly vit9696. git-svn-id: http://svn.redmine.org/redmine/trunk@21415 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -181,7 +181,7 @@ class RepositoriesBazaarControllerTest < Redmine::RepositoryControllerTest
|
||||
)
|
||||
assert_response :success
|
||||
# Line 11 removed
|
||||
assert_select 'th.line-num:contains(11) ~ td.diff_out', :text => /Display more information/
|
||||
assert_select 'th.line-num[data-txt=11] ~ td.diff_out', :text => /Display more information/
|
||||
end
|
||||
end
|
||||
|
||||
@@ -196,7 +196,8 @@ class RepositoriesBazaarControllerTest < Redmine::RepositoryControllerTest
|
||||
)
|
||||
assert_response :success
|
||||
|
||||
assert_select "th.line-num", :text => '2' do
|
||||
assert_select "th.line-num" do
|
||||
assert_select 'a[data-txt=?]', '2'
|
||||
assert_select "+ td.revision" do
|
||||
assert_select "a", :text => '3'
|
||||
assert_select "+ td.author", :text => "jsmith@" do
|
||||
@@ -226,7 +227,8 @@ class RepositoriesBazaarControllerTest < Redmine::RepositoryControllerTest
|
||||
)
|
||||
assert_response :success
|
||||
|
||||
assert_select "th.line-num", :text => '1' do
|
||||
assert_select "th.line-num" do
|
||||
assert_select "a[data-txt=?]", '1'
|
||||
assert_select "+ td.revision" do
|
||||
assert_select "a", :text => '2'
|
||||
assert_select "+ td.author", :text => "test &" do
|
||||
@@ -262,7 +264,8 @@ class RepositoriesBazaarControllerTest < Redmine::RepositoryControllerTest
|
||||
)
|
||||
assert_response :success
|
||||
|
||||
assert_select "th.line-num", :text => '1' do
|
||||
assert_select "th.line-num" do
|
||||
assert_select 'a[data-txt=?]', '1'
|
||||
assert_select "+ td.revision" do
|
||||
assert_select "a", :text => '2'
|
||||
assert_select "+ td.author", :text => "test Ü" do
|
||||
|
||||
Reference in New Issue
Block a user