From e62358253646f7cc244db660890118e969c84de3 Mon Sep 17 00:00:00 2001
From: Go MAEDA #{result}
',
+ 'Inline image:
',
'Inline image: !logo.GIF!' =>
- 'Inline image:
',
+ 'Inline image:
',
'No match: !ogo.gif!' => 'No match:
',
'No match: !ogo.GIF!' => 'No match: ',
# link image
'!logo.gif!:http://foo.bar/' =>
- '
',
+ '
',
}
attachments = Attachment.all
to_test.each {|text, result| assert_equal "
")
- assert textilizable(raw, :object => journal).include?("
")
+ assert textilizable(raw, :object => journal).include?("
")
+ assert textilizable(raw, :object => journal).include?("
")
end
def test_attached_images_with_textile_and_non_ascii_filename
@@ -208,7 +208,7 @@ class ApplicationHelperTest < Redmine::HelperTest
with_settings :text_formatting => 'textile' do
to_test.each do |filename, result|
attachment = Attachment.generate!(:filename => filename)
- assert_include %(),
+ assert_include %(
),
textilizable("!#{filename}!", :attachments => [attachment])
end
end
@@ -224,7 +224,7 @@ class ApplicationHelperTest < Redmine::HelperTest
with_settings :text_formatting => 'markdown' do
to_test.each do |filename, result|
attachment = Attachment.generate!(:filename => filename)
- assert_include %(
),
+ assert_include %(
),
textilizable("", :attachments => [attachment])
end
end
@@ -234,7 +234,7 @@ class ApplicationHelperTest < Redmine::HelperTest
attachment = Attachment.generate!(:filename => 'image@2x.png')
assert_equal(
%(

',
+ 'Inline image:
',
'Inline image: !testtest.jpe!' =>
- 'Inline image: #{result}
", textilizable(text, :attachments => attachments)} @@ -1794,7 +1794,7 @@ class ApplicationHelperTest < Redmine::HelperTest a = Attachment.find(3) assert_select_in( thumbnail_tag(a), - 'a[href=?][title=?] img[src=?]', + 'a[href=?][title=?] img[src=?][loading="lazy"]', "/attachments/3", "logo.gif", "/attachments/thumbnail/3") end diff --git a/test/unit/lib/redmine/wiki_formatting/common_mark/application_helper_test.rb b/test/unit/lib/redmine/wiki_formatting/common_mark/application_helper_test.rb index fecafd660..80df0572b 100644 --- a/test/unit/lib/redmine/wiki_formatting/common_mark/application_helper_test.rb +++ b/test/unit/lib/redmine/wiki_formatting/common_mark/application_helper_test.rb @@ -49,7 +49,7 @@ class Redmine::WikiFormatting::CommonMark::ApplicationHelperTest < Redmine::Help with_settings :text_formatting => 'common_mark' do to_test.each do |filename, result| attachment = Attachment.generate!(:filename => filename) - assert_include %(