diff options
author | Go MAEDA <maeda@farend.jp> | 2021-12-14 01:24:13 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2021-12-14 01:24:13 +0000 |
commit | e62358253646f7cc244db660890118e969c84de3 (patch) | |
tree | b53249d9fa50004d082995cf37b3b28b8fa26fe3 /test/unit | |
parent | 9955844da1d209778f06ad9a3583949048b8ee88 (diff) | |
download | redmine-e62358253646f7cc244db660890118e969c84de3.tar.gz redmine-e62358253646f7cc244db660890118e969c84de3.zip |
Lazy load inline images (#36294).
Patch by Mizuki ISHIKAWA.
git-svn-id: http://svn.redmine.org/redmine/trunk@21313 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit')
-rw-r--r-- | test/unit/lib/redmine/wiki_formatting/common_mark/application_helper_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 %(<img src="/attachments/download/#{attachment.id}/#{result}" alt="">), textilizable("![](#{filename})", :attachments => [attachment]) + assert_include %(<img src="/attachments/download/#{attachment.id}/#{result}" alt="" loading="lazy">), textilizable("![](#{filename})", :attachments => [attachment]) end end end |