aboutsummaryrefslogtreecommitdiffstats
path: root/tests/wpt/web-platform-tests/css/css-layout-api/fragment-data.https.html
diff options
context:
space:
mode:
Diffstat (limited to 'tests/wpt/web-platform-tests/css/css-layout-api/fragment-data.https.html')
-rw-r--r--tests/wpt/web-platform-tests/css/css-layout-api/fragment-data.https.html12
1 files changed, 5 insertions, 7 deletions
diff --git a/tests/wpt/web-platform-tests/css/css-layout-api/fragment-data.https.html b/tests/wpt/web-platform-tests/css/css-layout-api/fragment-data.https.html
index 589ee9c76fd..ffc360ab35c 100644
--- a/tests/wpt/web-platform-tests/css/css-layout-api/fragment-data.https.html
+++ b/tests/wpt/web-platform-tests/css/css-layout-api/fragment-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();
+ const childFragment = await child.layoutNextFragment();
// Use JSON.stringify to make sure the structured cloning worked.
if (childFragment.data !== DATA &&
@@ -52,9 +51,8 @@ registerLayout('parent', class {
});
registerLayout('child', class {
- *intrinsicSizes() {}
- *layout() {}
- *layout(children, edges, constraints, styleMap) {
+ async intrinsicSizes() {}
+ async layout(children, edges, constraints, styleMap) {
return {autoBlockSize: 10, data: DATA};
}
});