gecko-dev/testing/web-platform/tests/css/css-grid/grid-definition
Blink WPT Bot 6ed9c6e8d6 Bug 1632282 [wpt PR 23184] - [wpt] enhanceents to check-layout-th.js, a=testonly
Automatic update from web-platform-tests
[wpt] enhanceents to check-layout-th.js (#23184)

There are 3 enhancements that I've found useful.

1. Warn if there are any unexpected  data-* attributes

A common error is to have a typo in data-* attribute name.
When this happens, test will pass, because attribute is never read.
This enhancement prints a warning if unexpected attribute is found.

Running this over the entire test suite, I've found several errors:

css/css-grid/grid-definition/grid-auto-repeat-intrinsic-001.html
css/css-grid/grid-items/grid-items-percentage-margins-vertical-rl-001.html
css/css-grid/grid-items/grid-items-percentage-margins-vertical-rl-002.html
css/css-grid/grid-items/grid-items-relative-offsets-001.html
css/css-grid/grid-items/grid-items-relative-offsets-002.html
have data-expected-x, data-expected-y
Tried replacing some of these with data-offset-x, and tests fail.

css/css-grid/grid-definition/grid-percentage-rows-indefinite-height-002
has data-offset-top

2. highlight error on failure flag. Defaults to false.

If set, this flag will draw an outline around failed Element.
Useful when debugging pages with many elements.

3. toggle printing dom on error.

Sometimes, it is useful not to print dom on error for clarity.

Change-Id: I8424aa2dc002f63fde18d0fc54bdfe77666ce951
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2161379
Reviewed-by: Philip Jägenstedt <foolip@chromium.org>
Reviewed-by: Manuel Rego <rego@igalia.com>
Commit-Queue: Aleks Totic <atotic@chromium.org>
Cr-Commit-Position: refs/heads/master@{#763069}

Co-authored-by: Aleks Totic <atotic@chromium.org>
--

wpt-commits: a5a3b7353c884ebcca0230818632a42ad2fbd9b2
wpt-pr: 23184
2020-04-28 11:47:43 +00:00
..
support
explicit-grid-size-001.html
flex-content-distribution-001.html
flex-content-resolution-columns-001.html
flex-content-resolution-columns-002.html
flex-content-resolution-rows-001.html
flex-content-resolution-rows-002.html
flex-factor-sum-less-than-1-001.html
flex-item-grid-container-percentage-rows-001.html
fr-unit-with-percentage.html
fr-unit.html
grid-add-item-with-positioned-items-crash.html
grid-add-positioned-block-item-after-inline-item-crash.html
grid-auto-fill-columns-001.html
grid-auto-fill-rows-001.html
grid-auto-fit-columns-001.html
grid-auto-fit-rows-001.html
grid-auto-repeat-intrinsic-001.html Bug 1632282 [wpt PR 23184] - [wpt] enhanceents to check-layout-th.js, a=testonly 2020-04-28 11:47:43 +00:00
grid-auto-repeat-max-size-001.html
grid-auto-repeat-max-size-002.html
grid-auto-repeat-min-max-size-001.html
grid-auto-repeat-min-size-001.html
grid-auto-repeat-min-size-002.html
grid-auto-repeat-multiple-values-001.html
grid-auto-repeat-multiple-values-002-ref.html
grid-auto-repeat-multiple-values-002.html
grid-auto-repeat-multiple-values-003-ref.html
grid-auto-repeat-multiple-values-003.html
grid-auto-repeat-positioned-container-001-ref.html
grid-auto-repeat-positioned-container-001.html
grid-change-auto-repeat-tracks.html
grid-change-fit-content-argument-001.html
grid-change-intrinsic-size-with-auto-repeat-tracks-001.html
grid-inline-auto-repeat-001.html
grid-inline-support-flexible-lengths-001.html
grid-inline-support-grid-template-areas-001.html
grid-inline-support-grid-template-columns-rows-001.html
grid-inline-support-named-grid-lines-001.html
grid-inline-support-repeat-001.html
grid-inline-template-columns-rows-resolved-values-001.html
grid-layout-auto-tracks.html
grid-layout-basic.html
grid-layout-repeat-notation.html
grid-limits-001.html
grid-percentage-rows-indefinite-height-001.html
grid-percentage-rows-indefinite-height-002.html Bug 1632282 [wpt PR 23184] - [wpt] enhanceents to check-layout-th.js, a=testonly 2020-04-28 11:47:43 +00:00
grid-shorthand-001.html
grid-support-flexible-lengths-001.html
grid-support-grid-template-areas-001.html
grid-support-grid-template-columns-rows-001.html
grid-support-named-grid-lines-001.html
grid-support-named-grid-lines-002-ref.html
grid-support-named-grid-lines-002.html
grid-support-named-grid-lines-003-ref.html
grid-support-named-grid-lines-003.html
grid-support-repeat-001.html
grid-support-repeat-002.html
grid-template-columns-fit-content-001-ref.html
grid-template-columns-fit-content-001.html
grid-template-columns-rows-changes-001.html Bug 1630909 [wpt PR 23050] - [css-grid] Migrate grid-dynamic-updates-relayout.html to WPT, a=testonly 2020-04-28 11:29:30 +00:00
grid-template-columns-rows-resolved-values-001.html
grid-template-rows-fit-content-001-ref.html
grid-template-rows-fit-content-001.html