From dbe34f02a93654a9498dd4a643e94d2ced9687bc Mon Sep 17 00:00:00 2001 From: Xiaocheng Hu Date: Tue, 22 Sep 2020 09:16:59 +0000 Subject: [PATCH] Bug 1666054 [wpt PR 25638] - Upload tests for font metrics override descriptors to WPT, a=testonly Automatic update from web-platform-tests Upload tests for font metrics override descriptors to WPT Following the standardization of @font-face descriptors ascent-override, descent-override and line-gap-override, this patch uploads the existing test cases to WPT as test coverage. This resolves the "Need Testcase (WPT)" label in https://github.com/w3c/csswg-drafts/issues/4792 Bug: 1098355 Change-Id: Iffadff1fb159e52ca5a0675259381401fbe90c99 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2419585 Reviewed-by: Chris Harrelson Commit-Queue: Xiaocheng Hu Cr-Commit-Position: refs/heads/master@{#808665} -- wpt-commits: fba18cc5e2fb20eb8059b3d26009f4921e61a84b wpt-pr: 25638 --- .../ascent-descent-override-ref.html | 47 +++++++++++++++++++ .../css-fonts/ascent-descent-override.html | 43 +++++++++++++++++ .../css/css-fonts/line-gap-override-ref.html | 26 ++++++++++ .../css/css-fonts/line-gap-override.html | 26 ++++++++++ .../metrics-override-normal-keyword-ref.html | 12 +++++ .../metrics-override-normal-keyword.html | 34 ++++++++++++++ 6 files changed, 188 insertions(+) create mode 100644 testing/web-platform/tests/css/css-fonts/ascent-descent-override-ref.html create mode 100644 testing/web-platform/tests/css/css-fonts/ascent-descent-override.html create mode 100644 testing/web-platform/tests/css/css-fonts/line-gap-override-ref.html create mode 100644 testing/web-platform/tests/css/css-fonts/line-gap-override.html create mode 100644 testing/web-platform/tests/css/css-fonts/metrics-override-normal-keyword-ref.html create mode 100644 testing/web-platform/tests/css/css-fonts/metrics-override-normal-keyword.html diff --git a/testing/web-platform/tests/css/css-fonts/ascent-descent-override-ref.html b/testing/web-platform/tests/css/css-fonts/ascent-descent-override-ref.html new file mode 100644 index 000000000000..eeddd2ed86a2 --- /dev/null +++ b/testing/web-platform/tests/css/css-fonts/ascent-descent-override-ref.html @@ -0,0 +1,47 @@ + + +Tests the ascent-override and descent-override descriptors of @font-face + +
+ +
diff --git a/testing/web-platform/tests/css/css-fonts/ascent-descent-override.html b/testing/web-platform/tests/css/css-fonts/ascent-descent-override.html new file mode 100644 index 000000000000..baa047036151 --- /dev/null +++ b/testing/web-platform/tests/css/css-fonts/ascent-descent-override.html @@ -0,0 +1,43 @@ + + + + + +Tests the ascent-override and descent-override descriptors of @font-face + +
+ X +
diff --git a/testing/web-platform/tests/css/css-fonts/line-gap-override-ref.html b/testing/web-platform/tests/css/css-fonts/line-gap-override-ref.html new file mode 100644 index 000000000000..4afa061e833c --- /dev/null +++ b/testing/web-platform/tests/css/css-fonts/line-gap-override-ref.html @@ -0,0 +1,26 @@ + + +Tests the ascent-override and descent-override descriptors of @font-face + +
+ + +
diff --git a/testing/web-platform/tests/css/css-fonts/line-gap-override.html b/testing/web-platform/tests/css/css-fonts/line-gap-override.html new file mode 100644 index 000000000000..d622fb48ac39 --- /dev/null +++ b/testing/web-platform/tests/css/css-fonts/line-gap-override.html @@ -0,0 +1,26 @@ + + + + + +Tests the line-gap-override descriptor of @font-face + + +
+ X
+ X +
diff --git a/testing/web-platform/tests/css/css-fonts/metrics-override-normal-keyword-ref.html b/testing/web-platform/tests/css/css-fonts/metrics-override-normal-keyword-ref.html new file mode 100644 index 000000000000..3a8e89ed80c4 --- /dev/null +++ b/testing/web-platform/tests/css/css-fonts/metrics-override-normal-keyword-ref.html @@ -0,0 +1,12 @@ + + + + + +Tests the 'normal' keyword on descriptors ascent-override, descent-override and line-gap-override + +
Test
Test
+ +
Test
Test
+ +
Test
Test
diff --git a/testing/web-platform/tests/css/css-fonts/metrics-override-normal-keyword.html b/testing/web-platform/tests/css/css-fonts/metrics-override-normal-keyword.html new file mode 100644 index 000000000000..cf8c711ef27e --- /dev/null +++ b/testing/web-platform/tests/css/css-fonts/metrics-override-normal-keyword.html @@ -0,0 +1,34 @@ + + + + + +Tests the 'normal' keyword on descriptors ascent-override, descent-override and line-gap-override + + +
Test
Test
+ +
Test
Test
+ +
Test
Test