diff options
author | WPT Sync Bot <josh+wptsync@joshmatthews.net> | 2019-08-08 10:23:28 +0000 |
---|---|---|
committer | WPT Sync Bot <josh+wptsync@joshmatthews.net> | 2019-08-08 14:19:30 +0000 |
commit | 9f1d1e8b63592f56aaeba2cfa0eb99edab1531be (patch) | |
tree | 0b8948fb1ac1270c16de298c2856b972f494ecd0 /tests/wpt/web-platform-tests/css/css-layout-api/constraints-data.https.html | |
parent | 555fa75b2c7f4faa0818e86296a4ea3d5b8e4d42 (diff) | |
download | servo-9f1d1e8b63592f56aaeba2cfa0eb99edab1531be.tar.gz servo-9f1d1e8b63592f56aaeba2cfa0eb99edab1531be.zip |
Update web-platform-tests to revision 0d4300c5045a5587c2eb3d1416b11ffeecf5dadc
Diffstat (limited to 'tests/wpt/web-platform-tests/css/css-layout-api/constraints-data.https.html')
-rw-r--r-- | tests/wpt/web-platform-tests/css/css-layout-api/constraints-data.https.html | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/tests/wpt/web-platform-tests/css/css-layout-api/constraints-data.https.html b/tests/wpt/web-platform-tests/css/css-layout-api/constraints-data.https.html index b7b6964acb2..4bea061917a 100644 --- a/tests/wpt/web-platform-tests/css/css-layout-api/constraints-data.https.html +++ b/tests/wpt/web-platform-tests/css/css-layout-api/constraints-data.https.html @@ -35,11 +35,10 @@ const DATA = { }; registerLayout('parent', class { - *intrinsicSizes() {} - *layout() {} - *layout([child], edges, constraints, styleMap) { + async intrinsicSizes() {} + async layout([child], edges, constraints, styleMap) { - const childFragment = yield child.layoutNextFragment({data: DATA}); + const childFragment = await child.layoutNextFragment({data: DATA}); // If the child's block-size is 100 the structured cloning worked. if (childFragment.blockSize === 100) { @@ -51,9 +50,8 @@ registerLayout('parent', class { }); registerLayout('child', class { - *intrinsicSizes() {} - *layout() {} - *layout(children, edges, constraints, styleMap) { + async intrinsicSizes() {} + async layout(children, edges, constraints, styleMap) { // Use JSON.stringify to make sure the structured cloning worked. if (constraints.data !== DATA && JSON.stringify(constraints.data) === JSON.stringify(DATA)) { |