forked from catchpoint/WebPageTest.agent
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from IvanUkhov/iu-metrics
Extend the font metadata in accordance with the 2024 targets Added "head" data
- Loading branch information
Showing
6 changed files
with
1,489 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,22 @@ | ||
pylint | ||
pytest | ||
numpy | ||
selenium | ||
psutil | ||
pillow | ||
requests | ||
nested_diff | ||
black | ||
brotli | ||
dnspython | ||
monotonic | ||
tornado | ||
fonttools | ||
wsaccel | ||
ujson | ||
future | ||
brotli | ||
xvfbwrapper | ||
google-cloud-storage | ||
google-cloud-pubsub | ||
google-cloud-storage | ||
monotonic | ||
nested_diff | ||
numpy | ||
pillow | ||
psutil | ||
pylint | ||
pytest | ||
pytz | ||
tzlocal | ||
requests | ||
selenium | ||
tornado | ||
tzlocal | ||
ujson | ||
wsaccel | ||
xvfbwrapper |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import json | ||
|
||
from .font_metadata import read_metadata | ||
|
||
|
||
def test_read_metadata(): | ||
base = "test/data/SourceSerif4-VariableFont_opsz,wght" | ||
|
||
actual = read_metadata(f"{base}.ttf") | ||
actual = json.loads(json.dumps(actual, default=str)) | ||
|
||
with open(f"{base}.json", encoding="utf-8") as file: | ||
expected = json.load(file) | ||
|
||
assert actual == expected |
Oops, something went wrong.