diff options
author | Josh Matthews <josh@joshmatthews.net> | 2025-06-09 04:13:05 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-06-09 08:13:05 +0000 |
commit | 27527adf358f996f70bb7b8b8fda613c8e3cc9d2 (patch) | |
tree | eb2f1887b9c7b213ab8d703a5a5479ae2c8fa5e5 /python | |
parent | 4e9993128b81b5a3757970786d47fb165ed3ebca (diff) | |
download | servo-27527adf358f996f70bb7b8b8fda613c8e3cc9d2.tar.gz servo-27527adf358f996f70bb7b8b8fda613c8e3cc9d2.zip |
tests: Use Ahem font provided by WPT harness. (#37054)
#37021 exposed that our tests are trying to load a local file path for
Ahem.ttf, but this stops working when we implement the specified CORS
protections for our font requests. Luckily, the WPT suite already
provides a same-origin version of the same font, so we can just update
our CSS to use that font face instead.
Testing: Existing WPT coverage.
Signed-off-by: Josh Matthews <josh@joshmatthews.net>
Diffstat (limited to 'python')
-rw-r--r-- | python/wpt/run.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/wpt/run.py b/python/wpt/run.py index 4d221f816e3..d44d24f5882 100644 --- a/python/wpt/run.py +++ b/python/wpt/run.py @@ -66,7 +66,7 @@ def run_tests(default_binary_path: str, **kwargs): # chunks and leads to more consistent timing on GitHub Actions. set_if_none(kwargs, "chunk_type", "id_hash") - kwargs["user_stylesheets"].append(os.path.join(SERVO_ROOT, "resources", "ahem.css")) + kwargs["user_stylesheets"].append(os.path.join(SERVO_ROOT, "tests", "wpt", "tests", "fonts", "ahem.css")) set_if_none(kwargs, "binary", default_binary_path) set_if_none(kwargs, "webdriver_binary", default_binary_path) |