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

Issue 888743002: Force unitless data-expected attributes (Closed)

Created:
5 years, 10 months ago by rwlbuis
Modified:
5 years, 10 months ago
CC:
blink-reviews, cbiesinger, jfernandez, Manuel Rego, svillar
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Force unitless data-expected attributes When playing around with fast/css/calc-rounding.html I found that using px was making the attribute value irrelevant, because it resulted in NaN and skipped the actual check. So also report an error when the attribute value results in NaN and remove existing px usage for data-expected attributes in the layout tests. Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=189429

Patch Set 1 #

Patch Set 2 : Fix percentage-height-when-height-specified-by-top-bottom.html #

Total comments: 2

Patch Set 3 : Be more strict #

Patch Set 4 : Undo percentage-height-when-height-specified-by-top-bottom.html onload change #

Patch Set 5 : Redo percentage-height-when-height-specified-by-top-bottom.html onload change #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+79 lines, -80 lines) Patch
M LayoutTests/css3/flexbox/flex-algorithm-with-margins.html View 1 chunk +3 lines, -3 lines 0 comments Download
M LayoutTests/css3/flexbox/flexitem.html View 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/block/margin-collapse/self-collapsing-block-with-float-children.html View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
M LayoutTests/fast/block/min-max-height-percent-height-child.html View 4 chunks +15 lines, -15 lines 0 comments Download
M LayoutTests/fast/box-sizing/css-table-collapse.html View 3 chunks +3 lines, -3 lines 0 comments Download
M LayoutTests/fast/box-sizing/css-table-no-collapse.html View 3 chunks +3 lines, -3 lines 0 comments Download
M LayoutTests/fast/box-sizing/table-collapse.html View 3 chunks +3 lines, -3 lines 0 comments Download
M LayoutTests/fast/box-sizing/table-no-collapse.html View 3 chunks +3 lines, -3 lines 0 comments Download
M LayoutTests/fast/css-grid-layout/grid-align.html View 1 2 1 chunk +1 line, -1 line 1 comment Download
M LayoutTests/fast/css-grid-layout/grid-item-named-grid-line-resolution.html View 1 2 1 chunk +10 lines, -10 lines 0 comments Download
M LayoutTests/fast/css-grid-layout/grid-item-with-percent-min-max-height-dynamic.html View 1 2 1 chunk +9 lines, -9 lines 0 comments Download
M LayoutTests/fast/css/calc-rounding.html View 1 chunk +3 lines, -3 lines 0 comments Download
M LayoutTests/fast/inline/out-of-flow-objects-and-whitespace-after-empty-inline.html View 1 chunk +8 lines, -8 lines 0 comments Download
M LayoutTests/fast/replaced/percentage-height-when-height-specified-by-top-bottom.html View 1 4 1 chunk +3 lines, -4 lines 0 comments Download
M LayoutTests/resources/check-layout.js View 1 2 1 chunk +10 lines, -10 lines 1 comment Download

Messages

Total messages: 15 (4 generated)
rwlbuis
@robhogan IIRC fast/replaced/percentage-height-when-height-specified-by-top-bottom.html was your test. I made this CL because I found out that ...
5 years, 10 months ago (2015-01-30 14:14:48 UTC) #2
rwlbuis
On 2015/01/30 14:14:48, rwlbuis wrote: > @robhogan IIRC > fast/replaced/percentage-height-when-height-specified-by-top-bottom.html was > your test. > ...
5 years, 10 months ago (2015-01-30 16:11:55 UTC) #3
rwlbuis
PTAL
5 years, 10 months ago (2015-01-30 18:20:09 UTC) #5
Julien - ping for review
This change will make the tests relevant again but it doesn't cure the underlying issue. ...
5 years, 10 months ago (2015-01-31 07:12:55 UTC) #6
rwlbuis
On 2015/01/31 07:12:55, Julien Chaffraix - CET wrote: > This change will make the tests ...
5 years, 10 months ago (2015-02-02 12:03:11 UTC) #8
rwlbuis
On 2015/01/31 07:12:55, Julien Chaffraix - CET wrote: > https://codereview.chromium.org/888743002/diff/20001/LayoutTests/fast/replaced/percentage-height-when-height-specified-by-top-bottom.html > File > LayoutTests/fast/replaced/percentage-height-when-height-specified-by-top-bottom.html > ...
5 years, 10 months ago (2015-02-02 17:07:02 UTC) #9
Julien - ping for review
lgtm https://codereview.chromium.org/888743002/diff/100001/LayoutTests/fast/css-grid-layout/grid-align.html File LayoutTests/fast/css-grid-layout/grid-align.html (right): https://codereview.chromium.org/888743002/diff/100001/LayoutTests/fast/css-grid-layout/grid-align.html#newcode139 LayoutTests/fast/css-grid-layout/grid-align.html:139: <div class="cell alignSelfSelfEnd secondRowSecondColumn" data-offset-x="80" data-offset-y="360" data-expected-width="20" data-expected-height="40"></div> ...
5 years, 10 months ago (2015-02-03 02:42:53 UTC) #10
rwlbuis
On 2015/02/03 02:42:53, Julien Chaffraix - AEST wrote: > https://codereview.chromium.org/888743002/diff/100001/LayoutTests/resources/check-layout.js > File LayoutTests/resources/check-layout.js (right): > ...
5 years, 10 months ago (2015-02-03 16:58:49 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/888743002/100001
5 years, 10 months ago (2015-02-03 17:00:10 UTC) #13
commit-bot: I haz the power
Committed patchset #5 (id:100001) as https://src.chromium.org/viewvc/blink?view=rev&revision=189429
5 years, 10 months ago (2015-02-03 18:17:11 UTC) #14
Julien - ping for review
5 years, 10 months ago (2015-02-04 20:28:04 UTC) #15
Message was sent while issue was closed.
On 2015/02/03 at 16:58:49, rob.buis wrote:
> On 2015/02/03 02:42:53, Julien Chaffraix - AEST wrote:
> >
https://codereview.chromium.org/888743002/diff/100001/LayoutTests/resources/c...
> > File LayoutTests/resources/check-layout.js (right):
> > 
> >
https://codereview.chromium.org/888743002/diff/100001/LayoutTests/resources/c...
> > LayoutTests/resources/check-layout.js:98: }
> > Should we have testing for that in the harness? (I don't think we have any
kind
> > of testing for check-layout.js but I would be supportive of adding a lot!
> 
> I can do a follow-up patch for that if you tell me how to test. Is it simply
another layout
> test where all the data-expected attributes use "px"?

We have some JS testing framework (qUnit) that we can use to make sure we
correctly handle these cases.

Powered by Google App Engine
This is Rietveld 408576698