mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-11 13:48:23 +02:00
Automatic update from web-platform-testsRemove duplicated fonts and put them under /fonts/ (#9718) This patch removes the duplicated fonts we have in the repository by copying them under /fonts/ and removing the duplicates. The paths are updated accordingly to point to the new location. In addition this patch moves the content of /css/fonts/ under /fonts/, so there is a single common "fonts" folder on the repository. wpt-commits: e45d0cf81b1ed64f877279a75c0ffd112fa7741e wpt-pr: 9718 wpt-commits: e45d0cf81b1ed64f877279a75c0ffd112fa7741e wpt-pr: 9718 --HG-- rename : testing/web-platform/tests/css/CSS2/visudet/support/AD.woff => testing/web-platform/tests/fonts/AD.woff rename : testing/web-platform/tests/css/fonts/CSSTest/LICENSE => testing/web-platform/tests/fonts/CSSTest/LICENSE rename : testing/web-platform/tests/css/fonts/CSSTest/README => testing/web-platform/tests/fonts/CSSTest/README rename : testing/web-platform/tests/css/fonts/CSSTest/csstest-ascii.ttf => testing/web-platform/tests/fonts/CSSTest/csstest-ascii.ttf rename : testing/web-platform/tests/css/fonts/CSSTest/csstest-basic-bold.ttf => testing/web-platform/tests/fonts/CSSTest/csstest-basic-bold.ttf rename : testing/web-platform/tests/css/fonts/CSSTest/csstest-basic-bolditalic.ttf => testing/web-platform/tests/fonts/CSSTest/csstest-basic-bolditalic.ttf rename : testing/web-platform/tests/css/fonts/CSSTest/csstest-basic-italic.ttf => testing/web-platform/tests/fonts/CSSTest/csstest-basic-italic.ttf rename : testing/web-platform/tests/css/fonts/CSSTest/csstest-basic-regular.ttf => testing/web-platform/tests/fonts/CSSTest/csstest-basic-regular.ttf rename : testing/web-platform/tests/css/fonts/CSSTest/csstest-fallback.ttf => testing/web-platform/tests/fonts/CSSTest/csstest-fallback.ttf rename : testing/web-platform/tests/css/fonts/CSSTest/csstest-familyname-bold.ttf => testing/web-platform/tests/fonts/CSSTest/csstest-familyname-bold.ttf rename : testing/web-platform/tests/css/fonts/CSSTest/csstest-familyname-funkyA.ttf => testing/web-platform/tests/fonts/CSSTest/csstest-familyname-funkyA.ttf rename : testing/web-platform/tests/css/fonts/CSSTest/csstest-familyname-funkyB.ttf => testing/web-platform/tests/fonts/CSSTest/csstest-familyname-funkyB.ttf rename : testing/web-platform/tests/css/fonts/CSSTest/csstest-familyname-funkyC.ttf => testing/web-platform/tests/fonts/CSSTest/csstest-familyname-funkyC.ttf rename : testing/web-platform/tests/css/fonts/CSSTest/csstest-familyname.ttf => testing/web-platform/tests/fonts/CSSTest/csstest-familyname.ttf rename : testing/web-platform/tests/css/fonts/CSSTest/csstest-verify.ttf => testing/web-platform/tests/fonts/CSSTest/csstest-verify.ttf rename : testing/web-platform/tests/css/fonts/CSSTest/csstest-weights-100.ttf => testing/web-platform/tests/fonts/CSSTest/csstest-weights-100.ttf rename : testing/web-platform/tests/css/fonts/CSSTest/csstest-weights-1479-w1.ttf => testing/web-platform/tests/fonts/CSSTest/csstest-weights-1479-w1.ttf rename : testing/web-platform/tests/css/fonts/CSSTest/csstest-weights-1479-w4.ttf => testing/web-platform/tests/fonts/CSSTest/csstest-weights-1479-w4.ttf rename : testing/web-platform/tests/css/fonts/CSSTest/csstest-weights-1479-w7.ttf => testing/web-platform/tests/fonts/CSSTest/csstest-weights-1479-w7.ttf rename : testing/web-platform/tests/css/fonts/CSSTest/csstest-weights-1479-w9.ttf => testing/web-platform/tests/fonts/CSSTest/csstest-weights-1479-w9.ttf rename : testing/web-platform/tests/css/fonts/CSSTest/csstest-weights-15-w1.ttf => testing/web-platform/tests/fonts/CSSTest/csstest-weights-15-w1.ttf rename : testing/web-platform/tests/css/fonts/CSSTest/csstest-weights-15-w5.ttf => testing/web-platform/tests/fonts/CSSTest/csstest-weights-15-w5.ttf rename : testing/web-platform/tests/css/fonts/CSSTest/csstest-weights-200.ttf => testing/web-platform/tests/fonts/CSSTest/csstest-weights-200.ttf rename : testing/web-platform/tests/css/fonts/CSSTest/csstest-weights-24-w2.ttf => testing/web-platform/tests/fonts/CSSTest/csstest-weights-24-w2.ttf rename : testing/web-platform/tests/css/fonts/CSSTest/csstest-weights-24-w4.ttf => testing/web-platform/tests/fonts/CSSTest/csstest-weights-24-w4.ttf rename : testing/web-platform/tests/css/fonts/CSSTest/csstest-weights-2569-w2.ttf => testing/web-platform/tests/fonts/CSSTest/csstest-weights-2569-w2.ttf rename : testing/web-platform/tests/css/fonts/CSSTest/csstest-weights-2569-w5.ttf => testing/web-platform/tests/fonts/CSSTest/csstest-weights-2569-w5.ttf rename : testing/web-platform/tests/css/fonts/CSSTest/csstest-weights-2569-w6.ttf => testing/web-platform/tests/fonts/CSSTest/csstest-weights-2569-w6.ttf rename : testing/web-platform/tests/css/fonts/CSSTest/csstest-weights-2569-w9.ttf => testing/web-platform/tests/fonts/CSSTest/csstest-weights-2569-w9.ttf rename : testing/web-platform/tests/css/fonts/CSSTest/csstest-weights-258-w2.ttf => testing/web-platform/tests/fonts/CSSTest/csstest-weights-258-w2.ttf rename : testing/web-platform/tests/css/fonts/CSSTest/csstest-weights-258-w5.ttf => testing/web-platform/tests/fonts/CSSTest/csstest-weights-258-w5.ttf rename : testing/web-platform/tests/css/fonts/CSSTest/csstest-weights-258-w8.ttf => testing/web-platform/tests/fonts/CSSTest/csstest-weights-258-w8.ttf rename : testing/web-platform/tests/css/fonts/CSSTest/csstest-weights-300.ttf => testing/web-platform/tests/fonts/CSSTest/csstest-weights-300.ttf rename : testing/web-platform/tests/css/fonts/CSSTest/csstest-weights-3589-w3.ttf => testing/web-platform/tests/fonts/CSSTest/csstest-weights-3589-w3.ttf rename : testing/web-platform/tests/css/fonts/CSSTest/csstest-weights-3589-w5.ttf => testing/web-platform/tests/fonts/CSSTest/csstest-weights-3589-w5.ttf rename : testing/web-platform/tests/css/fonts/CSSTest/csstest-weights-3589-w8.ttf => testing/web-platform/tests/fonts/CSSTest/csstest-weights-3589-w8.ttf rename : testing/web-platform/tests/css/fonts/CSSTest/csstest-weights-3589-w9.ttf => testing/web-platform/tests/fonts/CSSTest/csstest-weights-3589-w9.ttf rename : testing/web-platform/tests/css/fonts/CSSTest/csstest-weights-400.ttf => testing/web-platform/tests/fonts/CSSTest/csstest-weights-400.ttf rename : testing/web-platform/tests/css/fonts/CSSTest/csstest-weights-47-w4.ttf => testing/web-platform/tests/fonts/CSSTest/csstest-weights-47-w4.ttf rename : testing/web-platform/tests/css/fonts/CSSTest/csstest-weights-47-w7.ttf => testing/web-platform/tests/fonts/CSSTest/csstest-weights-47-w7.ttf rename : testing/web-platform/tests/css/fonts/CSSTest/csstest-weights-500.ttf => testing/web-platform/tests/fonts/CSSTest/csstest-weights-500.ttf rename : testing/web-platform/tests/css/fonts/CSSTest/csstest-weights-600.ttf => testing/web-platform/tests/fonts/CSSTest/csstest-weights-600.ttf rename : testing/web-platform/tests/css/fonts/CSSTest/csstest-weights-700.ttf => testing/web-platform/tests/fonts/CSSTest/csstest-weights-700.ttf rename : testing/web-platform/tests/css/fonts/CSSTest/csstest-weights-800.ttf => testing/web-platform/tests/fonts/CSSTest/csstest-weights-800.ttf rename : testing/web-platform/tests/css/fonts/CSSTest/csstest-weights-900.ttf => testing/web-platform/tests/fonts/CSSTest/csstest-weights-900.ttf rename : testing/web-platform/tests/css/fonts/CSSTest/csstest-weights-full-w1.ttf => testing/web-platform/tests/fonts/CSSTest/csstest-weights-full-w1.ttf rename : testing/web-platform/tests/css/fonts/CSSTest/csstest-weights-full-w2.ttf => testing/web-platform/tests/fonts/CSSTest/csstest-weights-full-w2.ttf rename : testing/web-platform/tests/css/fonts/CSSTest/csstest-weights-full-w3.ttf => testing/web-platform/tests/fonts/CSSTest/csstest-weights-full-w3.ttf rename : testing/web-platform/tests/css/fonts/CSSTest/csstest-weights-full-w4.ttf => testing/web-platform/tests/fonts/CSSTest/csstest-weights-full-w4.ttf rename : testing/web-platform/tests/css/fonts/CSSTest/csstest-weights-full-w5.ttf => testing/web-platform/tests/fonts/CSSTest/csstest-weights-full-w5.ttf rename : testing/web-platform/tests/css/fonts/CSSTest/csstest-weights-full-w6.ttf => testing/web-platform/tests/fonts/CSSTest/csstest-weights-full-w6.ttf rename : testing/web-platform/tests/css/fonts/CSSTest/csstest-weights-full-w7.ttf => testing/web-platform/tests/fonts/CSSTest/csstest-weights-full-w7.ttf rename : testing/web-platform/tests/css/fonts/CSSTest/csstest-weights-full-w8.ttf => testing/web-platform/tests/fonts/CSSTest/csstest-weights-full-w8.ttf rename : testing/web-platform/tests/css/fonts/CSSTest/csstest-weights-full-w9.ttf => testing/web-platform/tests/fonts/CSSTest/csstest-weights-full-w9.ttf rename : testing/web-platform/tests/css/fonts/CSSTest/csstest-weights.ttf => testing/web-platform/tests/fonts/CSSTest/csstest-weights.ttf rename : testing/web-platform/tests/preload/resources/CanvasTest.ttf.sub.headers => testing/web-platform/tests/fonts/CanvasTest.ttf.sub.headers rename : testing/web-platform/tests/css/css-text/i18n/support/GentiumPlus-R.woff => testing/web-platform/tests/fonts/GentiumPlus-R.woff rename : testing/web-platform/tests/css/CSS2/visudet/support/Revalia.woff => testing/web-platform/tests/fonts/Revalia.woff rename : testing/web-platform/tests/css/css-writing-modes/support/adobe-fonts/CSSFWOrientationTest.otf => testing/web-platform/tests/fonts/adobe-fonts/CSSFWOrientationTest.otf rename : testing/web-platform/tests/css/css-writing-modes/support/adobe-fonts/CSSHWOrientationTest.otf => testing/web-platform/tests/fonts/adobe-fonts/CSSHWOrientationTest.otf rename : testing/web-platform/tests/css/css-writing-modes/support/adobe-fonts/LICENSE => testing/web-platform/tests/fonts/adobe-fonts/LICENSE rename : testing/web-platform/tests/css/css-writing-modes/support/adobe-fonts/README.md => testing/web-platform/tests/fonts/adobe-fonts/README.md rename : testing/web-platform/tests/css/fonts/ahem-extra/AHEM_Ahem!.TTF => testing/web-platform/tests/fonts/ahem-extra/AHEM_Ahem!.TTF rename : testing/web-platform/tests/css/fonts/ahem-extra/AHEM_MissingItalicOblique.TTF => testing/web-platform/tests/fonts/ahem-extra/AHEM_MissingItalicOblique.TTF rename : testing/web-platform/tests/css/fonts/ahem-extra/AHEM_MissingNormal.TTF => testing/web-platform/tests/fonts/ahem-extra/AHEM_MissingNormal.TTF rename : testing/web-platform/tests/css/fonts/ahem-extra/AHEM_SmallCaps.TTF => testing/web-platform/tests/fonts/ahem-extra/AHEM_SmallCaps.TTF rename : testing/web-platform/tests/css/fonts/ahem-extra/AHEM_WhiteSpace.TTF => testing/web-platform/tests/fonts/ahem-extra/AHEM_WhiteSpace.TTF rename : testing/web-platform/tests/css/fonts/ahem-extra/AHEM_cursive.TTF => testing/web-platform/tests/fonts/ahem-extra/AHEM_cursive.TTF rename : testing/web-platform/tests/css/fonts/ahem-extra/AHEM_default.TTF => testing/web-platform/tests/fonts/ahem-extra/AHEM_default.TTF rename : testing/web-platform/tests/css/fonts/ahem-extra/AHEM_fantasy.TTF => testing/web-platform/tests/fonts/ahem-extra/AHEM_fantasy.TTF rename : testing/web-platform/tests/css/fonts/ahem-extra/AHEM_inherit.TTF => testing/web-platform/tests/fonts/ahem-extra/AHEM_inherit.TTF rename : testing/web-platform/tests/css/fonts/ahem-extra/AHEM_initial.TTF => testing/web-platform/tests/fonts/ahem-extra/AHEM_initial.TTF rename : testing/web-platform/tests/css/fonts/ahem-extra/AHEM_monospace.TTF => testing/web-platform/tests/fonts/ahem-extra/AHEM_monospace.TTF rename : testing/web-platform/tests/css/fonts/ahem-extra/AHEM_sans-serif.TTF => testing/web-platform/tests/fonts/ahem-extra/AHEM_sans-serif.TTF rename : testing/web-platform/tests/css/fonts/ahem-extra/AHEM_serif.TTF => testing/web-platform/tests/fonts/ahem-extra/AHEM_serif.TTF rename : testing/web-platform/tests/css/css-text/i18n/reference/support/mplus-1p-regular.woff => testing/web-platform/tests/fonts/mplus-1p-regular.woff rename : testing/web-platform/tests/css/fonts/noto/NotoSansAdlam-hinted/LICENSE_OFL.txt => testing/web-platform/tests/fonts/noto/NotoSansAdlam-hinted/LICENSE_OFL.txt rename : testing/web-platform/tests/css/fonts/noto/NotoSansAdlam-hinted/NotoSansAdlam-Regular.ttf => testing/web-platform/tests/fonts/noto/NotoSansAdlam-hinted/NotoSansAdlam-Regular.ttf rename : testing/web-platform/tests/css/fonts/noto/NotoSansAdlam-hinted/README => testing/web-platform/tests/fonts/noto/NotoSansAdlam-hinted/README rename : testing/web-platform/tests/css/fonts/noto/NotoSansCypriot-hinted/LICENSE_OFL.txt => testing/web-platform/tests/fonts/noto/NotoSansCypriot-hinted/LICENSE_OFL.txt rename : testing/web-platform/tests/css/fonts/noto/NotoSansCypriot-hinted/NotoSansCypriot-Regular.ttf => testing/web-platform/tests/fonts/noto/NotoSansCypriot-hinted/NotoSansCypriot-Regular.ttf rename : testing/web-platform/tests/css/fonts/noto/NotoSansCypriot-hinted/README => testing/web-platform/tests/fonts/noto/NotoSansCypriot-hinted/README rename : testing/web-platform/tests/css/fonts/NotoSansDeseret-Regular.ttf => testing/web-platform/tests/fonts/noto/NotoSansDeseret-Regular.ttf rename : testing/web-platform/tests/css/css-writing-modes/reference/support/sileot-webfont.woff => testing/web-platform/tests/fonts/sileot-webfont.woff rename : testing/web-platform/tests/css/css-writing-modes/reference/support/tcu-font.woff => testing/web-platform/tests/fonts/tcu-font.woff
57 lines
1.9 KiB
HTML
57 lines
1.9 KiB
HTML
<!DOCTYPE HTML>
|
|
<html>
|
|
<head>
|
|
<title>CSS Test: Supported format specifiers should load</title>
|
|
<link rel="help" href="https://drafts.csswg.org/css-fonts-4/#src-desc"/>
|
|
<meta name="assert" content="Supported format specifiers should load"/>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
<script src="/resources/testharness.js"></script>
|
|
<script src="/resources/testharnessreport.js"></script>
|
|
</head>
|
|
<body>
|
|
<script>
|
|
setup({
|
|
explicit_done: true
|
|
});
|
|
|
|
var formatSpecifiers = [
|
|
"woff",
|
|
"truetype",
|
|
"opentype",
|
|
"woff2",
|
|
"woff-variations",
|
|
"truetype-variations",
|
|
"opentype-variations",
|
|
"woff2-variations"
|
|
];
|
|
|
|
var defaultAhemSrc = 'url("/fonts/Ahem.ttf") format("INSERT_FORMAT")';
|
|
|
|
function runTestOnFormatSpecifiers(formats, expectFail) {
|
|
for (var i = 0; i < formats.length; ++i) {
|
|
promise_test((testDetails) => {
|
|
var familyName = "load_ahem_" + i;
|
|
var ahemSrcFormat = defaultAhemSrc.replace("INSERT_FORMAT", testDetails.properties.format);
|
|
var fontFace = new FontFace(familyName, ahemSrcFormat);
|
|
if (!expectFail) {
|
|
return fontFace.load();
|
|
} else {
|
|
return promise_rejects(testDetails, "NetworkError", fontFace.load());
|
|
}
|
|
}, (expectFail ? "Do not load" : "Load") + " Ahem with format " + formats[i], {
|
|
"format": formats[i]
|
|
});
|
|
}
|
|
}
|
|
|
|
runTestOnFormatSpecifiers(formatSpecifiers, false);
|
|
runTestOnFormatSpecifiers(formatSpecifiers.map(x => "xyz" + x), true);
|
|
runTestOnFormatSpecifiers(formatSpecifiers.map(x => x + "xyz"), true);
|
|
runTestOnFormatSpecifiers(formatSpecifiers.map(x => x.slice(0, -2)), true);
|
|
runTestOnFormatSpecifiers(formatSpecifiers.map(x => x.slice(2)), true);
|
|
runTestOnFormatSpecifiers(formatSpecifiers.map(x => x.slice(0, x.length / 3) + x.slice(x.length / 3 + 1)), true);
|
|
|
|
done();
|
|
</script>
|
|
</body>
|
|
</html>
|