aboutsummaryrefslogtreecommitdiffstats
path: root/tests/wpt/web-platform-tests/css/css-layout-api/fragment-data-function-failure.https.html
diff options
context:
space:
mode:
Diffstat (limited to 'tests/wpt/web-platform-tests/css/css-layout-api/fragment-data-function-failure.https.html')
-rw-r--r--tests/wpt/web-platform-tests/css/css-layout-api/fragment-data-function-failure.https.html7
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/wpt/web-platform-tests/css/css-layout-api/fragment-data-function-failure.https.html b/tests/wpt/web-platform-tests/css/css-layout-api/fragment-data-function-failure.https.html
index 5e21be0bfd6..8496967be06 100644
--- a/tests/wpt/web-platform-tests/css/css-layout-api/fragment-data-function-failure.https.html
+++ b/tests/wpt/web-platform-tests/css/css-layout-api/fragment-data-function-failure.https.html
@@ -29,10 +29,9 @@
<script id="code" type="text/worklet">
registerLayout('fallback-fn', class {
- *intrinsicSizes() {}
- *layout() {}
- *layout(children, edges, constraints, styleMap) {
- const childFragments = yield children.map(child => child.layoutNextFragment());
+ async intrinsicSizes() {}
+ async layout(children, edges, constraints, styleMap) {
+ const childFragments = await children.map(child => child.layoutNextFragment());
return {autoBlockSize: 0, childFragments, data: {fn: function() {}}};
}
});