Closed (outdated)
Project:
Drupal core
Version:
11.x-dev
Component:
theme system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
12 Feb 2015 at 19:24 UTC
Updated:
15 Jul 2025 at 00:40 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
rjarteta commentedAdding the original patches.
Comment #2
rjarteta commentedAdding the documentation and conditional modification from one of the original patches.
Comment #3
rjarteta commentedTwo more patches are coming.
But the current patch needs review.
Comment #6
lokapujyaSo far, this looks like the appropriate reroll. We'll still need to review the actual changes. We need to add the tests to the working patch so adding "Needs tests."
For example, I don't know if we need such a long comment and it's repeated in 3 places. We specifically don't need the comment starting on line 80.
Comment #7
rjarteta commentedI moved the code from patch from picture-formatter-tests-2009662-0.patch so applies now.
I know there is a problem when I run the test locally, but I'm uploading anyway as intermediate work. The creation of the field_config entity and its instance is not working.
This is only the test from the original patch.
Comment #9
rjarteta commented@lokapujya, I've been reading this test and it looks like all of the tests in responsive-image-theme-testing-2425493-6.patch are being covered on the ResponsiveImageFieldFormatters file.
Should we keep working on this re-roll?
Comment #10
lokapujyaWhat we need is to apply both the bugfix patch in #2 and the tests in 2009662-wip_0.patch and combine them into one patch.
...and hopefully, the tests that are failing in the test-only patch will pass.
Comment #11
lokapujyaThis is for more than just creating tests. It's fixing a regression/bug with the alt tag.
Comment #12
attiks commentedQuick review, ++ for all comments, I guess only adding tests for the empty alt will be sufficient, as said in #9 most other tests already exist.
theme('picture') no longer exists.
Comment #13
rjarteta commentedHi, I'm uploading the test with some changes from the original, since the conditional for the test was too specific, it failed when the image rendered with height and width.
I had to join both patches since the change on the conditional allowed the test to pass.
I'm updating the summary later.
@attiks I also updated the documentation as you pointed out.
Comment #14
rjarteta commentedRemoving the generic step on the summary and changing the title describing better the scope of this issue.
Comment #16
lokapujyaComment #17
lokapujyaFix some flaws in the test.
Comment #18
lokapujyaredo interdiff.
Comment #19
lokapujyaThe picture element alt tag still has to be tested, and I think doesn't work right. Here is a Work In Progress.
Comment #20
mgiffordPatch no longer applies.
Comment #21
lokapujyaProviding a reroll. Not sure if making the the alt tag required/optional works (and whether or not any tests exist for it.) So, first someone should probably test that manually. This patch is only a clue of where to get started with the code.
Comment #22
lokapujyaComment #23
lokapujyaComment #24
lokapujyaWhen there is no alt tag, I inspect the html and still see alt in chrome, alt="" in firefox. Should we even care? Doesn't seem to be a problem.
Comment #26
lokapujyaActually, I don't remember how to get the picture tag :( So I guess I didn't actually test a picture tag, but a responsive image.
Comment #40
quietone commentedIt has been over 9 years since there was work here. I read the issue and I am not sure what is to be tested here.
In any case, does anyone know if this is still relevant?
I am setting the status to Postponed (maintainer needs more info). If we don't receive additional information to help with the issue, it may be closed after three months.
Thanks
Comment #41
acbramley commentedAs per #40 I'm closing this. I have read through the IS and comments and agree that it's not clear what the issue is here. The patches all contain quite different changes too.
If this is still an issue, please feel free to reopen this with an updated issue summary describing the bug and steps to reproduce it.