WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
93310
[chromium] Rebaseline canvas-toDataURL-webp test expectations
https://bugs.webkit.org/show_bug.cgi?id=93310
Summary
[chromium] Rebaseline canvas-toDataURL-webp test expectations
jzern
Reported
2012-08-06 17:11:57 PDT
Encoder changes from 0.1.3 to 0.2.0 will cause the test to fail due to excessive image differences. 0.2.0 will be posted to:
https://code.google.com/p/webp/downloads/list
Attachments
Patch
(4.43 KB, patch)
2013-03-18 16:09 PDT
,
jzern
no flags
Details
Formatted Diff
Diff
Patch
(4.42 KB, patch)
2013-03-18 16:47 PDT
,
jzern
no flags
Details
Formatted Diff
Diff
Patch
(1.99 KB, patch)
2013-03-19 00:00 PDT
,
jzern
no flags
Details
Formatted Diff
Diff
Patch
(4.37 KB, patch)
2013-03-19 00:07 PDT
,
jzern
no flags
Details
Formatted Diff
Diff
Patch
(2.15 KB, patch)
2013-03-19 00:10 PDT
,
jzern
no flags
Details
Formatted Diff
Diff
Patch for landing
(2.16 KB, patch)
2013-03-19 05:28 PDT
,
noel gordon
no flags
Details
Formatted Diff
Diff
Patch
(2.26 KB, patch)
2013-03-21 13:51 PDT
,
jzern
no flags
Details
Formatted Diff
Diff
Patch
(2.18 KB, patch)
2013-03-21 23:10 PDT
,
noel gordon
no flags
Details
Formatted Diff
Diff
Patch after r146639
(1.52 KB, patch)
2013-03-22 19:25 PDT
,
noel gordon
no flags
Details
Formatted Diff
Diff
Show Obsolete
(8)
View All
Add attachment
proposed patch, testcase, etc.
jzern
Comment 1
2013-03-18 16:09:37 PDT
Created
attachment 193679
[details]
Patch
Pascal Massimino
Comment 2
2013-03-18 16:30:22 PDT
Comment on
attachment 193679
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=193679&action=review
> LayoutTests/fast/canvas/canvas-toDataURL-webp.html:14 > + document.getElementById('log').textContent += "FAIL: picture sizes differ";
sizes -> dimensions ? (to avoid the confusion with filesize)
> LayoutTests/fast/canvas/canvas-toDataURL-webp.html:19 > + line_offset = y * pic1.width * 4;
'var line_offset' ?
> LayoutTests/fast/canvas/canvas-toDataURL-webp.html:21 > + // skip alpha
comment could go at line 22
> LayoutTests/fast/canvas/canvas-toDataURL-webp.html:22 > + if ((x + 1) % 4 == 0) continue;
i'd write it as: "if (x % 4 == 3)" rather. Btw, is the output format RGBA or ARGB ? (or else?) always on all platforms?
jzern
Comment 3
2013-03-18 16:47:07 PDT
Created
attachment 193689
[details]
Patch
jzern
Comment 4
2013-03-18 16:48:18 PDT
Comment on
attachment 193679
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=193679&action=review
>> LayoutTests/fast/canvas/canvas-toDataURL-webp.html:14 >> + document.getElementById('log').textContent += "FAIL: picture sizes differ"; > > sizes -> dimensions ? > > (to avoid the confusion with filesize)
done.
>> LayoutTests/fast/canvas/canvas-toDataURL-webp.html:19 >> + line_offset = y * pic1.width * 4; > > 'var line_offset' ?
missed that one or left it in another tree, thanks!
>> LayoutTests/fast/canvas/canvas-toDataURL-webp.html:21 >> + // skip alpha > > comment could go at line 22
done
>> LayoutTests/fast/canvas/canvas-toDataURL-webp.html:22 >> + if ((x + 1) % 4 == 0) continue; > > i'd write it as: "if (x % 4 == 3)" rather. > > Btw, is the output format RGBA or ARGB ? (or else?) always on all platforms?
Seems so:
http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html#dom-imagedata-data
Pascal Massimino
Comment 5
2013-03-18 16:58:31 PDT
lgtm
noel gordon
Comment 6
2013-03-18 21:20:13 PDT
We are not the only port using webp. I would disable the test for chromium by adding the following line to LayoutTests/platform/chromium/TestExpectations
webkit.org/b/93310
fast/canvas/canvas-toDataURL-webp.html [ ImageOnlyFailure ] and land that change. Then land libwebp 0.2.0 in chromium. Once the chromium change has rolled into webkit, and the webkit bots have cycled, rebaseline the test images and re-enable the test in chromium TestExpectations.
jzern
Comment 7
2013-03-18 22:31:35 PDT
(In reply to
comment #6
)
> We are not the only port using webp. I would disable the test for chromium by adding the following line to LayoutTests/platform/chromium/TestExpectations > >
webkit.org/b/93310
fast/canvas/canvas-toDataURL-webp.html [ ImageOnlyFailure ] > > and land that change. Then land libwebp 0.2.0 in chromium. > > Once the chromium change has rolled into webkit, and the webkit bots have cycled, rebaseline the test images and re-enable the test in chromium TestExpectations.
The point of this change is to avoid that cycle. This works with current chromium (0.2.1 -some encoder changes, so roughly =0.1.3) and the current 0.3.0 branch.
noel gordon
Comment 8
2013-03-18 22:48:18 PDT
(In reply to
comment #7
)
> The point of this change is to avoid that cycle. This works with current chromium (0.2.1 -some encoder changes, so roughly =0.1.3) and the current 0.3.0 branch.
Does it work on GTK and QT?
jzern
Comment 9
2013-03-18 22:56:25 PDT
(In reply to
comment #8
)
> (In reply to
comment #7
) > > > The point of this change is to avoid that cycle. This works with current chromium (0.2.1 -some encoder changes, so roughly =0.1.3) and the current 0.3.0 branch. > > Does it work on GTK and QT?
The bots seem down with it.
jzern
Comment 10
2013-03-19 00:00:06 PDT
Created
attachment 193746
[details]
Patch
jzern
Comment 11
2013-03-19 00:02:18 PDT
(In reply to
comment #9
)
> (In reply to
comment #8
) > > (In reply to
comment #7
) > > > > > The point of this change is to avoid that cycle. This works with current chromium (0.2.1 -some encoder changes, so roughly =0.1.3) and the current 0.3.0 branch. > > > > Does it work on GTK and QT? > > The bots seem down with it.
OK Noel set me straight with regard to the process in these things...
jzern
Comment 12
2013-03-19 00:07:58 PDT
Created
attachment 193748
[details]
Patch
jzern
Comment 13
2013-03-19 00:10:43 PDT
Created
attachment 193749
[details]
Patch
noel gordon
Comment 14
2013-03-19 05:25:39 PDT
Looks good James, thanks. I'll modify the Changelog so any committer can cq+ this change.
noel gordon
Comment 15
2013-03-19 05:28:54 PDT
Created
attachment 193801
[details]
Patch for landing
noel gordon
Comment 16
2013-03-19 18:14:00 PDT
James, let me know when you ready and I'll submit your patch.
jzern
Comment 17
2013-03-19 18:15:09 PDT
(In reply to
comment #16
)
> James, let me know when you ready and I'll submit your patch.
Looks good. Thanks again for helping with the process.
jzern
Comment 18
2013-03-19 18:18:01 PDT
(In reply to
comment #17
)
> (In reply to
comment #16
) > > James, let me know when you ready and I'll submit your patch. > > Looks good. Thanks again for helping with the process.
Which is to say, yes I'm ready to submit.
WebKit Review Bot
Comment 19
2013-03-19 18:50:19 PDT
Comment on
attachment 193801
[details]
Patch for landing Clearing flags on attachment: 193801 Committed
r146288
: <
http://trac.webkit.org/changeset/146288
>
WebKit Review Bot
Comment 20
2013-03-19 18:50:23 PDT
All reviewed patches have been landed. Closing bug.
noel gordon
Comment 21
2013-03-19 19:01:20 PDT
Reopened to do the rebaseline once
bug 112761
is complete.
jzern
Comment 22
2013-03-21 13:51:35 PDT
Created
attachment 194327
[details]
Patch
noel gordon
Comment 23
2013-03-21 22:52:31 PDT
Looks fine to me.
noel gordon
Comment 24
2013-03-21 23:10:23 PDT
Created
attachment 194448
[details]
Patch
jzern
Comment 25
2013-03-21 23:22:32 PDT
(In reply to
comment #24
)
> Created an attachment (id=194448) [details] > Patch
Looks good, thanks. Can be submitted anytime.
WebKit Review Bot
Comment 26
2013-03-22 00:12:22 PDT
Comment on
attachment 194448
[details]
Patch Clearing flags on attachment: 194448 Committed
r146566
: <
http://trac.webkit.org/changeset/146566
>
WebKit Review Bot
Comment 27
2013-03-22 00:12:26 PDT
All reviewed patches have been landed. Closing bug.
noel gordon
Comment 28
2013-03-22 00:19:55 PDT
Reopened to do the rebaseline once
bug 112761
is complete.
noel gordon
Comment 29
2013-03-22 17:59:21 PDT
Android expectations were removed in
http://trac.webkit.org/changeset/146639
. There is no explanation in the ChangeLog as to why. The
r146639
change undid the work on this bug, so we'll need to bring it back. Let me prepare a patch.
Peter Kasting
Comment 30
2013-03-22 18:36:24 PDT
(In reply to
comment #29
)
> Android expectations were removed in
http://trac.webkit.org/changeset/146639
. There is no explanation in the ChangeLog as to why.
Android doesn't want its test expectations in the Chromium files at all for now, so I removed them on their behalf. I sent an email to the Chromium WebKit gardening list about this and Peter Beverloo sent one to the Android developers. There wasn't anything really to say in the ChangeLog other than "Remove these for now", especially when I didn't have the longer context Peter did.
> The
r146639
change undid the work on this bug, so we'll need to bring it back. Let me prepare a patch.
Sorry! I missed the two lines here. (In fairness, having them in the midst of a huge block of [ Android ] lines, in a section that said "ANDROID PORT TESTS", was perhaps asking for trouble...) Please feel free to re-add them to TestExpectations, or let me know you'd like me to do it and I'll take care of it once I'm back at my main workstation later tonight.
noel gordon
Comment 31
2013-03-22 18:53:07 PDT
Appreciate the (longer) explanation. We didn't expect to be in the Android section very long (a day or so), and we certainly didn't anticipate the total removal of Android expectations. No mind, I'm preparing a patch.
noel gordon
Comment 32
2013-03-22 19:25:22 PDT
Created
attachment 194680
[details]
Patch after
r146639
jzern
Comment 33
2013-03-22 19:28:39 PDT
(In reply to
comment #32
)
> Created an attachment (id=194680) [details] > Patch after
r146639
lgtm
jzern
Comment 34
2013-03-22 19:31:50 PDT
(In reply to
comment #31
)
> Appreciate the (longer) explanation. We didn't expect to be in the Android section very long (a day or so), and we certainly didn't anticipate the total removal of Android expectations. No mind, I'm preparing a patch.
Nice catch by the way. The chromium change is in the commit-queue with local expectations set, but a later WebKit roll might knock those out without this change now -- assuming it lands.
WebKit Review Bot
Comment 35
2013-03-22 20:36:41 PDT
Comment on
attachment 194680
[details]
Patch after
r146639
Clearing flags on attachment: 194680 Committed
r146709
: <
http://trac.webkit.org/changeset/146709
>
WebKit Review Bot
Comment 36
2013-03-22 20:36:45 PDT
All reviewed patches have been landed. Closing bug.
noel gordon
Comment 37
2013-03-22 20:54:33 PDT
Reopened to do the rebaseline once
bug 112761
is complete.
noel gordon
Comment 38
2013-03-24 21:31:36 PDT
Landed
http://trac.webkit.org/changeset/146743
Mark canvas-toDataURL-webp.html imageOnlyFailure to start generating new test images on the bots now that libwebp 0.3.0 has landed in chromium webkit.
Urvang Joshi
Comment 39
2013-03-25 00:19:59 PDT
I believe the webkit_revision in DEPS file (
http://src.chromium.org/viewvc/chrome/trunk/src/DEPS?view=markup
) needs an update too (so that new TestExpectations file from Webkit gets pulled)?
noel gordon
Comment 40
2013-03-25 00:48:35 PDT
That's done by the webkit gardener.
http://www.chromium.org/developers/how-tos/webkit-gardening
noel gordon
Comment 41
2013-03-25 21:07:10 PDT
Landed new expectations on
http://trac.webkit.org/changeset/146848
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug