commit 997f833bc32e69c0bf4628f4d54a4149e4e73be7
parent e4f1380f8cd0bb93ca1f3eacb4374748d8627a0c
Author: Jonathan Kew <jkew@mozilla.com>
Date: Sat, 6 Dec 2025 00:21:51 +0000
Bug 2003721 - Update reftests for language-dependent rendering with non-canonical lang tags. r=layout-reviewers,emilio
Differential Revision: https://phabricator.services.mozilla.com/D275268
Diffstat:
3 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/layout/reftests/text/graphite-04-snd.html b/layout/reftests/text/graphite-04-snd.html
@@ -13,8 +13,8 @@ body {
</style>
</head>
<body lang="snd">
-<!-- Sindhi incorrectly tagged with iso-639-3 code instead of bcp47/iso-639-1;
- rendering should therefore match the default "en", NOT the correctly-tagged "sd" version -->
+<!-- Sindhi tagged with iso-639-3 code instead of bcp47/iso-639-1;
+ rendering should match the canonically-tagged "sd" version -->
۰۱۲۳۴۵۶۷۸۹
</body>
</html>
diff --git a/layout/reftests/text/graphite-04-urd.html b/layout/reftests/text/graphite-04-urd.html
@@ -13,7 +13,8 @@ body {
</style>
</head>
<body lang="urd">
-<!-- incorrectly-tagged Urdu should match the default rendering -->
+<!-- ISO 639-3 tag for Urdu is mapped to the canonical tag, so language-specific
+ rendering occurs as expected -->
۰۱۲۳۴۵۶۷۸۹
</body>
</html>
diff --git a/layout/reftests/text/reftest.list b/layout/reftests/text/reftest.list
@@ -182,12 +182,12 @@ pref(gfx.font_rendering.graphite.enabled,false) != graphite-02.html graphite-02-
pref(gfx.font_rendering.graphite.enabled,false) != graphite-03a.html graphite-03-notref.html
pref(gfx.font_rendering.graphite.enabled,false) == graphite-03b.html graphite-03-notref.html
-# tests for graphite rendering with valid and invalid lang tags
+# tests for graphite rendering with canonical and non-canonical lang tags
pref(gfx.font_rendering.graphite.enabled,true) == graphite-04-fa.html graphite-04-ref.html
pref(gfx.font_rendering.graphite.enabled,true) != graphite-04-sd.html graphite-04-ref.html
-pref(gfx.font_rendering.graphite.enabled,true) == graphite-04-snd.html graphite-04-ref.html
+pref(gfx.font_rendering.graphite.enabled,true) == graphite-04-snd.html graphite-04-sd.html
pref(gfx.font_rendering.graphite.enabled,true) != graphite-04-ur.html graphite-04-ref.html
-pref(gfx.font_rendering.graphite.enabled,true) == graphite-04-urd.html graphite-04-ref.html
+pref(gfx.font_rendering.graphite.enabled,true) == graphite-04-urd.html graphite-04-ur.html
pref(gfx.font_rendering.graphite.enabled,true) != graphite-04-sd.html graphite-04-ur.html
# tests to compare graphite to opentype (will trivially pass when graphite not enabled)