From 6eb4b61b016f28234bd31d90d8e4e7ca2037375a Mon Sep 17 00:00:00 2001 From: Rune Lillesveen Date: Mon, 15 Apr 2024 01:09:42 -0700 Subject: [PATCH] Await web font loading in css-scoping tests Some tests did not pass because the web font did not finish loading before the rendered widths were checked. Await document.fonts.ready to make the tests predictable. Bug: 333457515 Change-Id: I830cc11b4ba7a4c8a5579777712085cb3f7e5a1e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5447137 Commit-Queue: Rune Lillesveen Reviewed-by: Munira Tursunova Cr-Commit-Position: refs/heads/main@{#1287178} --- css/css-scoping/font-face-001.html | 4 +++- css/css-scoping/font-face-002.html | 4 +++- css/css-scoping/font-face-003.html | 4 +++- css/css-scoping/font-face-004.html | 4 +++- css/css-scoping/font-face-005.html | 4 +++- css/css-scoping/font-face-006.html | 2 +- css/css-scoping/font-face-007.html | 4 +++- css/css-scoping/font-face-008.html | 4 +++- css/css-scoping/font-face-009.html | 4 +++- 9 files changed, 25 insertions(+), 9 deletions(-) diff --git a/css/css-scoping/font-face-001.html b/css/css-scoping/font-face-001.html index 7e47d18cbaa240..4496786449f7fa 100644 --- a/css/css-scoping/font-face-001.html +++ b/css/css-scoping/font-face-001.html @@ -12,7 +12,7 @@
1234567890