Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(70)

Issue 168583003: Add a layout test for bug 320244 (Closed)

Created:
6 years, 10 months ago by Noel Gordon
Modified:
6 years, 10 months ago
Reviewers:
pdr.
CC:
blink-reviews
Visibility:
Public.

Description

Add a layout test for bug 320244 Images with EXIF orientation are sometimes shown with the wrong orientation inside ImageDocument. The bug does not reproduce in an <iframe> ImageDocument. Add a direct-load test that exhibits the bug. Add a failure expectation to TestExpections, pending a fix to http://crbug/320244 The test image is 82 x 1281 after orientation, and layout tests use an 800 x 600 screen. In ImageDocument the test image should be shown at 38 x 600 (w x h) to maintain aspect ratio. TEST=fast/images/exif-orientation-height-image-document.html BUG=320244 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=167497

Patch Set 1 : #

Total comments: 3

Patch Set 2 : Remove Math.random() #

Patch Set 3 : Make test image smaller (18k rather than 360k) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -2 lines) Patch
M LayoutTests/TestExpectations View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
A LayoutTests/fast/images/exif-orientation-height-image-document.html View 1 1 chunk +8 lines, -0 lines 0 comments Download
A LayoutTests/fast/images/exif-orientation-height-image-document-expected.png View 1 2 Binary file 0 comments Download
A + LayoutTests/fast/images/exif-orientation-height-image-document-expected.txt View 1 2 1 chunk +1 line, -2 lines 0 comments Download
A LayoutTests/fast/images/resources/jpeg-height-exif-orientation.jpg View 1 2 Binary file 0 comments Download

Messages

Total messages: 17 (0 generated)
Noel Gordon
6 years, 10 months ago (2014-02-17 06:57:04 UTC) #1
pdr.
https://codereview.chromium.org/168583003/diff/200001/LayoutTests/TestExpectations File LayoutTests/TestExpectations (right): https://codereview.chromium.org/168583003/diff/200001/LayoutTests/TestExpectations#newcode690 LayoutTests/TestExpectations:690: crbug.com/320244 fast/images/exif-orientation-height-image-document.html [ Failure ] Why are these marked ...
6 years, 10 months ago (2014-02-18 02:59:18 UTC) #2
pdr.
On 2014/02/18 02:59:18, pdr wrote: > https://codereview.chromium.org/168583003/diff/200001/LayoutTests/TestExpectations > File LayoutTests/TestExpectations (right): > > https://codereview.chromium.org/168583003/diff/200001/LayoutTests/TestExpectations#newcode690 > ...
6 years, 10 months ago (2014-02-18 03:02:15 UTC) #3
Noel Gordon
https://codereview.chromium.org/168583003/diff/200001/LayoutTests/fast/images/exif-orientation-height-image-document.html File LayoutTests/fast/images/exif-orientation-height-image-document.html (right): https://codereview.chromium.org/168583003/diff/200001/LayoutTests/fast/images/exif-orientation-height-image-document.html#newcode5 LayoutTests/fast/images/exif-orientation-height-image-document.html:5: testRunner.queueLoad('resources/jpeg-height-exif-orientation.jpg?' + Math.random()); On 2014/02/18 02:59:18, pdr wrote: > ...
6 years, 10 months ago (2014-02-18 03:32:01 UTC) #4
Noel Gordon
> pdr wrote: > Doh, because the code is not fixed. Yeah. I first needed ...
6 years, 10 months ago (2014-02-18 03:32:38 UTC) #5
pdr.
not lgtm. This test depends on the image being large due to a race with ...
6 years, 10 months ago (2014-02-18 04:18:10 UTC) #6
Noel Gordon
- copied slow-png-load.pl to slow-jpeg-load.pl - made slow-jpeg-load.pl return Content-Type: image/jpeg (not that it matters). ...
6 years, 10 months ago (2014-02-18 07:45:01 UTC) #7
Noel Gordon
Seems we do need to test a large image. > not lgtm. This test depends ...
6 years, 10 months ago (2014-02-19 01:22:28 UTC) #8
pdr.
On 2014/02/19 01:22:28, Noel Gordon (Google) wrote: > > This will be a flaky test ...
6 years, 10 months ago (2014-02-19 18:53:44 UTC) #9
Noel Gordon
On 2014/02/19 18:53:44, pdr wrote: > Please explain why this test won't pass with the ...
6 years, 10 months ago (2014-02-20 01:56:04 UTC) #10
Noel Gordon
> On 2014/02/19 18:53:44, pdr wrote: > I suspect you think similarly which is why ...
6 years, 10 months ago (2014-02-20 01:59:02 UTC) #11
pdr.
On 2014/02/20 01:59:02, Noel Gordon (Google) wrote: > > On 2014/02/19 18:53:44, pdr wrote: > ...
6 years, 10 months ago (2014-02-20 04:35:25 UTC) #12
Noel Gordon
> On 2014/02/18 02:59:18, pdr wrote: > > Can you use an existing image that's ...
6 years, 10 months ago (2014-02-20 04:45:59 UTC) #13
pdr.
On 2014/02/20 04:45:59, Noel Gordon (Google) wrote: > > On 2014/02/18 02:59:18, pdr wrote: > ...
6 years, 10 months ago (2014-02-20 04:47:06 UTC) #14
Noel Gordon
The CQ bit was checked by noel@chromium.org
6 years, 10 months ago (2014-02-20 06:35:28 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/noel@chromium.org/168583003/410001
6 years, 10 months ago (2014-02-20 06:35:35 UTC) #16
commit-bot: I haz the power
6 years, 10 months ago (2014-02-20 09:31:53 UTC) #17
Message was sent while issue was closed.
Change committed as 167497

Powered by Google App Engine
This is Rietveld 408576698