Bug 1794298 - Add a reftest for Twemoji Mozilla keycap on Windows. r=emilio

This depends on Windows emoji font availability, so is skipped on other
platforms. Without the fix here, the testcase will fail to use Twemoji
and so matches the (not-)reference file.

Differential Revision: https://phabricator.services.mozilla.com/D168416
This commit is contained in:
Jonathan Kew 2023-02-01 13:25:39 +00:00
parent e0c4a32c6e
commit cd95200a87
3 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1,3 @@
<!DOCTYPE html>
<meta charset=utf-8>
<div style="font: 100px/2 serif, Segoe UI Emoji">0&#xfe0f;&#x20e3;</div>

View File

@ -0,0 +1,3 @@
<!DOCTYPE html>
<meta charset=utf-8>
<div style="font: 100px/2 serif, Twemoji Mozilla, Segoe UI Emoji">0&#xfe0f;&#x20e3;</div>

View File

@ -137,6 +137,8 @@ skip-if(!cocoaWidget) != apple-symbols-1.html apple-symbols-1-notref.html
skip-if(gtkWidget||/^Windows\x20NT\x206\.1/.test(http.oscpu)) == emoji-fallback-2.html emoji-fallback-2-ref.html
== emoji-fallback-3.html emoji-fallback-3-ref.html
skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) != emoji-keycap.html emoji-keycap-notref.html
# Dependent on Windows emoji font names, so not expected to be meaningful on other platforms:
skip-if(!winWidget||/^Windows\x20NT\x206\.1/.test(http.oscpu)) != emoji-keycap-2.html emoji-keycap-2-notref.html
== emoji-skintone.html emoji-skintone-ref.html
# Random on Android because font availability varies depending on the version/device.
random-if(Android) != emoji-subregion-flag.html emoji-subregion-flag-notref.html