Bug 507970, reftests for loading new WOFF font format and rejecting invalid fonts, r=jdaggett

--HG--
extra : rebase_source : 8645f63a6db39a0c04e9d59bd4fc486bd61d4d99
This commit is contained in:
Jonathan Kew 2009-09-17 12:17:08 +01:00
Родитель e9ea75cd3f
Коммит 4db5fca12b
21 изменённых файлов: 194 добавлений и 0 удалений

Просмотреть файл

@ -0,0 +1,16 @@
<html>
<head>
<style type="text/css">
@font-face {
font-family: test;
src: url(../fonts/DeLarge/DeLarge-bad-checksums.ttf);
}
body {
font-family: test;
}
</style>
</head>
<body>
HELLO WORLD
</body>
</html>

Просмотреть файл

@ -0,0 +1,16 @@
<html>
<head>
<style type="text/css">
@font-face {
font-family: test;
src: url(../fonts/DeLarge/DeLarge-bad-checksums.woff);
}
body {
font-family: test;
}
</style>
</head>
<body>
HELLO WORLD
</body>
</html>

Просмотреть файл

@ -0,0 +1,16 @@
<html>
<head>
<style type="text/css">
@font-face {
font-family: test;
src: url(../fonts/DeLarge/DeLarge-bad-offset.woff);
}
body {
font-family: test;
}
</style>
</head>
<body>
HELLO WORLD
</body>
</html>

Просмотреть файл

@ -0,0 +1,16 @@
<html>
<head>
<style type="text/css">
@font-face {
font-family: test;
src: url(../fonts/DeLarge/DeLarge-bad-sfnt-version.ttf);
}
body {
font-family: test;
}
</style>
</head>
<body>
HELLO WORLD
</body>
</html>

Просмотреть файл

@ -0,0 +1,16 @@
<html>
<head>
<style type="text/css">
@font-face {
font-family: test;
src: url(../fonts/DeLarge/DeLarge-bad-sfnt-version.woff);
}
body {
font-family: test;
}
</style>
</head>
<body>
HELLO WORLD
</body>
</html>

Просмотреть файл

@ -0,0 +1,16 @@
<html>
<head>
<style type="text/css">
@font-face {
font-family: test;
src: url(../fonts/DeLarge/DeLarge-bad-woff-sig.woff);
}
body {
font-family: test;
}
</style>
</head>
<body>
HELLO WORLD
</body>
</html>

Просмотреть файл

@ -0,0 +1,11 @@
<html>
<head>
<style type="text/css">
body {
}
</style>
</head>
<body>
HELLO WORLD
</body>
</html>

Просмотреть файл

@ -0,0 +1,16 @@
<html>
<head>
<style type="text/css">
@font-face {
font-family: test;
src: url(../fonts/DeLarge/DeLarge.ttf);
}
body {
font-family: test;
}
</style>
</head>
<body>
HELLO WORLD
</body>
</html>

Просмотреть файл

@ -0,0 +1,16 @@
<html>
<head>
<style type="text/css">
@font-face {
font-family: test;
src: url(../fonts/DeLarge/DeLarge.woff) format("not-woff");
}
body {
font-family: test;
}
</style>
</head>
<body>
HELLO WORLD
</body>
</html>

Просмотреть файл

@ -0,0 +1,16 @@
<html>
<head>
<style type="text/css">
@font-face {
font-family: test;
src: url(../fonts/DeLarge/DeLarge.woff) format("woff");
}
body {
font-family: test;
}
</style>
</head>
<body>
HELLO WORLD
</body>
</html>

Просмотреть файл

@ -0,0 +1,16 @@
<html>
<head>
<style type="text/css">
@font-face {
font-family: test;
src: url(../fonts/DeLarge/DeLarge.woff);
}
body {
font-family: test;
}
</style>
</head>
<body>
HELLO WORLD
</body>
</html>

Просмотреть файл

@ -97,3 +97,19 @@ HTTP(..) == load-badchecksum.html load-badchecksum-ref.html
# t2embed lib on windows is picky about fullname
HTTP(..) == load-badfullname.html load-badfullname-ref.html
# 507960-1-* : a collection of tests using DeLarge from openfontlibrary.org
# check that the original DeLarge face (ttf) loads; if this fails,
# none of the following tests are meaningful
HTTP(..) != 507960-1-nofont.html 507960-1-ref.html
# check that the WOFF version loads, with and without a format hint
HTTP(..) == 507960-1-woff.html 507960-1-ref.html
HTTP(..) == 507960-1-woff-hint.html 507960-1-ref.html
# try damaged fonts that should still load (bad checksums)
HTTP(..) == 507960-1-bad-checksums-ttf.html 507960-1-ref.html
HTTP(..) == 507960-1-bad-checksums-woff.html 507960-1-ref.html
# try versions that should NOT load (bad offsets, signatures, hint)
HTTP(..) != 507960-1-bad-sfnt-version-ttf.html 507960-1-ref.html
HTTP(..) != 507960-1-bad-sfnt-version-woff.html 507960-1-ref.html
HTTP(..) != 507960-1-bad-woff-sig.html 507960-1-ref.html
HTTP(..) != 507960-1-bad-offset-woff.html 507960-1-ref.html
HTTP(..) != 507960-1-woff-bad-hint.html 507960-1-ref.html

Двоичные данные
layout/reftests/fonts/DeLarge/DeLarge-bad-checksums.ttf Normal file

Двоичный файл не отображается.

Двоичные данные
layout/reftests/fonts/DeLarge/DeLarge-bad-checksums.woff Normal file

Двоичный файл не отображается.

Двоичные данные
layout/reftests/fonts/DeLarge/DeLarge-bad-offset.woff Normal file

Двоичный файл не отображается.

Двоичные данные
layout/reftests/fonts/DeLarge/DeLarge-bad-sfnt-version.ttf Normal file

Двоичный файл не отображается.

Двоичные данные
layout/reftests/fonts/DeLarge/DeLarge-bad-sfnt-version.woff Normal file

Двоичный файл не отображается.

Двоичные данные
layout/reftests/fonts/DeLarge/DeLarge-bad-woff-sig.woff Normal file

Двоичный файл не отображается.

Двоичные данные
layout/reftests/fonts/DeLarge/DeLarge.ttf Normal file

Двоичный файл не отображается.

Двоичные данные
layout/reftests/fonts/DeLarge/DeLarge.woff Normal file

Двоичный файл не отображается.

Просмотреть файл

@ -0,0 +1,7 @@
DeLarge by PintassilgoPrints, licensed under the Open Font License
(http://scripts.sil.org/OFL)
Downloaded from http://openfontlibrary.org/media/files/PintassilgoPrints/429
In addition to the original .ttf file and a .woff conversion,
there are several "damaged" versions here for testing purposes.