Commit 5a9c7e42 authored by Kent Tamura's avatar Kent Tamura Committed by Commit Bot

Ruby: Add a test for modern Japanese fonts

web_tests depends on third_party/test_fonts since this CL.
This CL has no behavior changes in production.

Bug: 1082087
Change-Id: Ibe1dde711426c7b0f0ed2dad4b2435e820648dd1
Cq-Include-Trybots: luci.chromium.try:linux_layout_tests_layout_ng_disabled
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2249272Reviewed-by: default avatarTakuto Ikuta <tikuta@chromium.org>
Reviewed-by: default avatarKoji Ishii <kojii@chromium.org>
Reviewed-by: default avatarYoshifumi Inoue <yosin@chromium.org>
Commit-Queue: Kent Tamura <tkent@chromium.org>
Cr-Commit-Position: refs/heads/master@{#779755}
parent 314cf6dd
...@@ -1109,6 +1109,7 @@ if (!is_ios) { ...@@ -1109,6 +1109,7 @@ if (!is_ios) {
"//third_party/blink/web_tests/resources/", "//third_party/blink/web_tests/resources/",
"//third_party/blink/web_tests/wpt_internal/", "//third_party/blink/web_tests/wpt_internal/",
"//third_party/pywebsocket3/src/mod_pywebsocket/", "//third_party/pywebsocket3/src/mod_pywebsocket/",
"//third_party/test_fonts/test_fonts/",
# Needed by run_web_tests.py to detect DCHECK build. # Needed by run_web_tests.py to detect DCHECK build.
"$root_out_dir/args.gn", "$root_out_dir/args.gn",
......
<!DOCTYPE html>
<meta charset="utf-8">
<style>
@font-face {
font-family: NotoSansCJK;
src: url("../../../../../third_party/test_fonts/test_fonts/NotoSansCJKjp-Regular.otf") format("opentype");
}
body {
font-size: 60px;
}
.container-modern {
font-family: NotoSansCJK;
border: 1px solid lime;
}
.container-legacy {
font-family: 'Hiragino Maru Gothic ProN', 'MS Gothic';
border: 1px solid lime;
}
.v {
writing-mode: vertical-rl;
}
</style>
<body>
<!--
All gaps between a ruby base and a ruby annotation text should have similar
size. crbug.com/1082087
-->
<table border=0>
<tr>
<td class="container-modern"><ruby>焼肉定食<rt>じゃくにくきょうしょく</ruby>
<td class="container-legacy"><ruby>焼肉定食<rt>じゃくにくきょうしょく</ruby>
<tr>
<td><div class="container-modern v"><ruby>弱肉強食<rt>やきにくていしょく</ruby></div>
<td><div class="container-legacy v"><ruby>弱肉強食<rt>やきにくていしょく</ruby></div>
</table>
<script>
if (window.testRunner) {
testRunner.waitUntilDone();
document.fonts.ready.then(function() {
testRunner.notifyDone();
});
}
</script>
</body>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment