[CSS Grid Layout] Prevent issues with checkLayout() in grid items
authorrego@igalia.com <rego@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 26 Mar 2014 11:11:53 +0000 (11:11 +0000)
committerrego@igalia.com <rego@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 26 Mar 2014 11:11:53 +0000 (11:11 +0000)
commit4a3dc95118ba4c40409c37db496c480dfd9672fb
tree284c021e052330d185bd6a369098b6a7af660282
parent10bbd5ae053d20757e2694117ebb5a63a92e08e1
[CSS Grid Layout] Prevent issues with checkLayout() in grid items
https://bugs.webkit.org/show_bug.cgi?id=130770

Reviewed by Sergio Villar Senin.

When we use checkLayout() on a grid item, the results (PASS or FAIL
messages) are added as new auto-placed items in the grid. Which might
cause some unexpected behavior in the tests.

This patch modifies the related layout tests to use a different
container (usually the parent node of the grid) for the test results.
Avoiding any kind of interference with the grid code.

* fast/css-grid-layout/grid-item-addition-auto-placement-update.html:
  Use parent node of grid when checking grid items. Check layout of the
  whole grid instead of grid item.
* fast/css-grid-layout/grid-item-removal-auto-placement-update.html:
  Check layout of the whole grid instead of grid item.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@166290 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/css-grid-layout/grid-item-addition-auto-placement-update.html
LayoutTests/fast/css-grid-layout/grid-item-removal-auto-placement-update.html