tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit 7a63ee4efdf26669dc74d8966403a925d9d11d6e
parent 527055fac7f9602a28c885dabbdd5f878ec723e6
Author: Jonathan Kew <jkew@mozilla.com>
Date:   Fri,  5 Dec 2025 18:22:47 +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:
Mlayout/reftests/text/graphite-04-snd.html | 4++--
Mlayout/reftests/text/graphite-04-urd.html | 3++-
Mlayout/reftests/text/reftest.list | 6+++---
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 --> &#x6f0;&#x6f1;&#x6f2;&#x6f3;&#x6f4;&#x6f5;&#x6f6;&#x6f7;&#x6f8;&#x6f9; </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 --> &#x6f0;&#x6f1;&#x6f2;&#x6f3;&#x6f4;&#x6f5;&#x6f6;&#x6f7;&#x6f8;&#x6f9; </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)