Bug 204407

Summary: [css-grid] Move some alignment tests to the WPT folder
Product: WebKit Reporter: rmonteriso
Component: Tools / TestsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, ews-watchlist, jfernandez, rego, rmonteriso, svillar, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch
none
Patch
none
Patch
none
Patch
none
Patch none

Description rmonteriso 2019-11-20 04:26:46 PST
The following tests have been moved:

grid-align-content.html
grid-align-justify-margin-border-padding-vertical-lr.html
grid-align-justify-margin-border-padding-vertical-rl.html
grid-align-justify-margin-border-padding.html
grid-align-justify-overflow.html
grid-align-justify-stretch-with-orthogonal-flows.html
grid-align-justify-stretch.html
grid-align.html
Comment 1 rmonteriso 2019-11-20 05:18:22 PST
Created attachment 383957 [details]
Patch
Comment 2 Manuel Rego Casasnovas 2019-11-20 05:52:06 PST
Comment on attachment 383957 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=383957&action=review

Thanks for working on this, but you need to do some changes on this patch.

> LayoutTests/ChangeLog:8
> +        Replacing some tests from fast/css-grid/alignment to the web platform test folder

The tests are already upstream in WPT, so this is basically importing them and removing the duplicates in WebKit local tests.
It'd be nice if you explain that on the ChangeLog properly.

> LayoutTests/ChangeLog:10
> +        * fast/css-grid-layout/grid-align-justify-stretch-with-orthogonal-flows.html: Removed.

This doesn't seem accurate.

ChangeLog is auto-generated, so it should include automatically all the tests you're removing.

> LayoutTests/ChangeLog:662
> +        <rdar://problem/56801615>

Your patch shouldn't include changes in other parts of the ChangeLog.
I guess your editor was removing trailing white-spaces or something like that and causing the changes here.
Comment 3 Manuel Rego Casasnovas 2019-11-20 05:52:14 PST
View in context: https://bugs.webkit.org/attachment.cgi?id=383957&action=review

Thanks for working on this, but you need to do some changes on this patch.

> LayoutTests/ChangeLog:8
> +        Replacing some tests from fast/css-grid/alignment to the web platform test folder

The tests are already upstream in WPT, so this is basically importing them and removing the duplicates in WebKit local tests.
It'd be nice if you explain that on the ChangeLog properly.

> LayoutTests/ChangeLog:10
> +        * fast/css-grid-layout/grid-align-justify-stretch-with-orthogonal-flows.html: Removed.

This doesn't seem accurate.

ChangeLog is auto-generated, so it should include automatically all the tests you're removing.

> LayoutTests/ChangeLog:662
> +        <rdar://problem/56801615>

Your patch shouldn't include changes in other parts of the ChangeLog.
I guess your editor was removing trailing white-spaces or something like that and causing the changes here.
Comment 4 Manuel Rego Casasnovas 2019-11-20 05:52:59 PST
Sorry about the duplicated comment, it was not my intention. O:-)
Comment 5 rmonteriso 2019-11-21 06:40:13 PST
Created attachment 384049 [details]
Patch
Comment 6 rmonteriso 2019-11-21 06:48:41 PST
Created attachment 384050 [details]
Patch
Comment 7 Manuel Rego Casasnovas 2019-11-28 02:19:22 PST
Comment on attachment 384050 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=384050&action=review

> LayoutTests/ChangeLog:10
> +        * fast/css-grid-layout/grid-align-content.html: Removed.

You need to remove the -expected.txt files too.

> LayoutTests/imported/w3c/ChangeLog:11
> +        * web-platform-tests/css/css-grid/alignment/grid-align-content.html:

We need to include in the patch the new results for the tests.
Comment 8 rmonteriso 2019-12-19 06:21:57 PST
Created attachment 386098 [details]
Patch
Comment 9 Manuel Rego Casasnovas 2019-12-19 13:13:48 PST
Comment on attachment 386098 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=386098&action=review

> LayoutTests/ChangeLog:8
> +        Remove some tests from fast/css-grid/alignment, that are being replaced by adapted tests in the corresponding Wpt test folder

Nit: s/Wpt/WPT/
Nit: Add a dot at the end of the sentence.

> LayoutTests/imported/w3c/ChangeLog:8
> +        Add some css alignment tests from WebKit, checked and adapted to Wpt, in the corresponding css-grid/alignment folder.

Nit: s/Wpt/WPT/.

> LayoutTests/imported/w3c/ChangeLog:11
> +        * web-platform-tests/css/css-grid/alignment/grid-align-content.html:

You miss the new -expected.txt results for all these tests.
Comment 10 Javier Fernandez 2019-12-24 02:50:13 PST
Comment on attachment 386098 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=386098&action=review

> LayoutTests/imported/w3c/web-platform-tests/css/css-grid/alignment/grid-align-justify-margin-border-padding-vertical-lr.html:11
> +<link rel="stylesheet" href="/css/support/width-keyword-classes.css">

This test is failing for several cases, probably because this 'css' resource file is not located where you expect.

> LayoutTests/imported/w3c/web-platform-tests/css/css-grid/alignment/grid-align-justify-margin-border-padding-vertical-rl.html:11
> +<link rel="stylesheet" href="/css/support/width-keyword-classes.css">

Ditto

> LayoutTests/imported/w3c/web-platform-tests/css/css-grid/alignment/grid-align-justify-margin-border-padding.html:10
> +<link rel="stylesheet" href="/css/support/width-keyword-classes.css">

Ditto

> LayoutTests/imported/w3c/web-platform-tests/css/css-grid/alignment/grid-align-justify-overflow.html:11
> +<link rel="stylesheet" href="/css/support/width-keyword-classes.css">

Ditto

> LayoutTests/imported/w3c/web-platform-tests/css/css-grid/alignment/grid-align-justify-stretch-with-orthogonal-flows.html:11
> +<link rel="stylesheet" href="/css/support/width-keyword-classes.css">

Ditto

> LayoutTests/imported/w3c/web-platform-tests/css/css-grid/alignment/grid-align-justify-stretch.html:14
> +<link rel="stylesheet" href="/css/support/width-keyword-classes.css">

Ditto

> LayoutTests/imported/w3c/web-platform-tests/css/css-grid/alignment/grid-align.html:12
> +<link rel="stylesheet" href="/css/support/width-keyword-classes.css">

Ditto

> LayoutTests/imported/w3c/web-platform-tests/css/css-grid/alignment/w3c-import.log:14
> +None

This changes seems unrelated and should be be part of the patch.
Comment 11 rmonteriso 2019-12-26 03:26:06 PST
Created attachment 386418 [details]
Patch
Comment 12 rmonteriso 2019-12-26 08:50:07 PST
Created attachment 386419 [details]
Patch
Comment 13 WebKit Commit Bot 2019-12-27 08:09:10 PST
Comment on attachment 386419 [details]
Patch

Clearing flags on attachment: 386419

Committed r253922: <https://trac.webkit.org/changeset/253922>
Comment 14 WebKit Commit Bot 2019-12-27 08:09:12 PST
All reviewed patches have been landed.  Closing bug.
Comment 15 Radar WebKit Bug Importer 2019-12-27 08:10:19 PST
<rdar://problem/58218115>