aboutsummaryrefslogtreecommitdiffstats
path: root/tests/wpt/web-platform-tests/css/css-layout-api/constraints-data.https.html
diff options
context:
space:
mode:
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.html12
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)) {