chore: clean up some spec things (#28680)
This commit is contained in:
parent
99fc054ce9
commit
6327a5a4a2
2 changed files with 10 additions and 2 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -68,4 +68,6 @@ ts-gen
|
||||||
.depshash-target
|
.depshash-target
|
||||||
|
|
||||||
# Used to accelerate builds after sync
|
# Used to accelerate builds after sync
|
||||||
patches/mtime-cache.json
|
patches/mtime-cache.json
|
||||||
|
|
||||||
|
spec/fixtures/logo.png
|
|
@ -1454,7 +1454,13 @@ describe('font fallback', () => {
|
||||||
const fonts = await getRenderedFonts(html);
|
const fonts = await getRenderedFonts(html);
|
||||||
expect(fonts).to.be.an('array');
|
expect(fonts).to.be.an('array');
|
||||||
expect(fonts).to.have.length(1);
|
expect(fonts).to.have.length(1);
|
||||||
if (process.platform === 'win32') { expect(fonts[0].familyName).to.equal('Arial'); } else if (process.platform === 'darwin') { expect(fonts[0].familyName).to.equal('Helvetica'); } else if (process.platform === 'linux') { expect(fonts[0].familyName).to.equal('DejaVu Sans'); } // I think this depends on the distro? We don't specify a default.
|
if (process.platform === 'win32') {
|
||||||
|
expect(fonts[0].familyName).to.equal('Arial');
|
||||||
|
} else if (process.platform === 'darwin') {
|
||||||
|
expect(fonts[0].familyName).to.equal('Helvetica');
|
||||||
|
} else if (process.platform === 'linux') {
|
||||||
|
expect(fonts[0].familyName).to.equal('DejaVu Sans');
|
||||||
|
} // I think this depends on the distro? We don't specify a default.
|
||||||
});
|
});
|
||||||
|
|
||||||
ifit(process.platform !== 'linux')('should fall back to Japanese font for sans-serif Japanese script', async function () {
|
ifit(process.platform !== 'linux')('should fall back to Japanese font for sans-serif Japanese script', async function () {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue