diff options
Diffstat (limited to 'tests/wpt/web-platform-tests/css/css-layout-api/constraints-data-function-failure.https.html')
-rw-r--r-- | tests/wpt/web-platform-tests/css/css-layout-api/constraints-data-function-failure.https.html | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/tests/wpt/web-platform-tests/css/css-layout-api/constraints-data-function-failure.https.html b/tests/wpt/web-platform-tests/css/css-layout-api/constraints-data-function-failure.https.html index 394f68c6141..2d5e5240d79 100644 --- a/tests/wpt/web-platform-tests/css/css-layout-api/constraints-data-function-failure.https.html +++ b/tests/wpt/web-platform-tests/css/css-layout-api/constraints-data-function-failure.https.html @@ -29,18 +29,17 @@ <script id="code" type="text/worklet"> registerLayout('parent', class { - *intrinsicSizes() {} - *layout() {} - *layout([child], edges, constraints, styleMap) { + async intrinsicSizes() {} + async layout([child], edges, constraints, styleMap) { let childFragment = null; try { - childFragment = yield child.layoutNextFragment({ + childFragment = await child.layoutNextFragment({ data: { fn: function() {} } }); } catch(e) { // Success! The structured cloning algorithm should have thrown an error. - childFragment = yield child.layoutNextFragment({}); + childFragment = await child.layoutNextFragment({}); return {autoBlockSize: 100, childFragments: [childFragment]}; } @@ -49,9 +48,8 @@ registerLayout('parent', class { }); registerLayout('child', class { - *intrinsicSizes() {} - *layout() {} - *layout() { + async intrinsicSizes() {} + async layout() { return {autoBlockSize: 0}; } }); |