Bug 1056516 - add tests to our local reftests folder. r=jfkthame

MozReview-Commit-ID: 1Az4xBe6Nts

--HG--
extra : rebase_source : 1dbac56b33380c37a81070b0439af1750f08ef81
This commit is contained in:
jeremychen@mozilla.com 2017-03-10 00:30:12 +08:00
Родитель 2cb71eafe4
Коммит e1982f47d8
7 изменённых файлов: 185 добавлений и 0 удалений

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

@ -0,0 +1,47 @@
<!DOCTYPE html>
<html>
<head>
<style>
code {
display:block;
hyphens:manual;
border: 1px solid black;
}
</style>
</head>
<body lang="en-us">
<!--
Hyphenation opportunities of the texts in this test are as follows,
frag[A]ilis[A]tic[C]ex[A]pi[A]ali
where [A] is an automatic hyphen, and [C] is a conditional hyphen.
In this test, we set width to somewhere between every pair of adjacent hyphenations,
then we see if lines break correctly.
-->
<code style="width:4ch;">
frag-<br />ilis-<br />tic-<br />ex-<br />pi-<br />ali
</code>
<br />
<code style="width:5ch;">
frag-<br />ilis-<br />tic-<br />expi-<br />ali
</code>
<br />
<code style="width:9ch;">
fragilis-<br />tic-<br />expiali
</code>
<br />
<code style="width:12ch;">
fragilistic-<br />expiali
</code>
<br />
<code style="width:14ch;">
fragilistic-<br />expiali
</code>
<br />
<code style="width:16ch;">
fragilistic-<br />expiali
</code>
</body>
</html>

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

@ -0,0 +1,47 @@
<!DOCTYPE html>
<html>
<head>
<style>
code {
display:block;
hyphens:auto;
border: 1px solid black;
}
</style>
</head>
<body lang="en-us">
<!--
Hyphenation opportunities of the texts in this test are as follows,
frag[A]ilis[A]tic[C]ex[A]pi[A]ali
where [A] is an automatic hyphen, and [C] is a conditional hyphen.
In this test, we set width to somewhere between every pair of adjacent hyphenations,
then we see if lines break correctly.
-->
<code style="width:4ch;">
fragilistic&shy;expiali
</code>
<br />
<code style="width:5ch;">
fragilistic&shy;expiali
</code>
<br />
<code style="width:9ch;">
fragilistic&shy;expiali
</code>
<br />
<code style="width:12ch;">
fragilistic&shy;expiali
</code>
<br />
<code style="width:14ch;">
fragilistic&shy;expiali
</code>
<br />
<code style="width:16ch;">
fragilistic&shy;expiali
</code>
</body>
</html>

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

@ -0,0 +1,22 @@
<!DOCTYPE html>
<html>
<head>
<style>
code {
display:block;
hyphens:manual;
border: 1px solid black;
}
</style>
</head>
<body lang="en-us">
<code style="width:15ch;">
Supercali-<br />fragilistic-<br />expialidocious
</code>
<br />
<code style="width:15ch;">
Supercali&#x2010;<br />fragilistic&#x2010;<br />expialidocious
</code>
<br />
</body>
</html>

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

@ -0,0 +1,27 @@
<!DOCTYPE html>
<html>
<head>
<style>
code {
display:block;
hyphens:auto;
border: 1px solid black;
}
</style>
</head>
<body lang="en-us">
<!--
Test checks that automatic hyphenation opportunities within a word
must be ignored if the word contains an explicit hyphen (U+2010) or hyphen-minus (U+002D),
in favor of the conditional hyphen(s)
-->
<code style="width:15ch;">
Supercali-fragilistic-expialidocious
</code>
<br />
<code style="width:15ch;">
Supercali&#x2010;fragilistic&#x2010;expialidocious
</code>
<br />
</body>
</html>

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

@ -0,0 +1,17 @@
<!DOCTYPE html>
<html>
<head>
<style>
code {
display:block;
hyphens:manual;
border: 1px solid black;
}
</style>
</head>
<body lang="en-us">
<code style="width:100ch;">
ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTU-<br />VWXYZsupercalifragilisticexpialidocious-<br />ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZ
</code>
</body>
</html>

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

@ -0,0 +1,21 @@
<!DOCTYPE html>
<html>
<head>
<style>
code {
display:block;
hyphens:auto;
border: 1px solid black;
}
</style>
</head>
<body lang="en-us">
<!--
Test checks that automatic hyphenation opportunities should honor
manual hyphenation opportunities even if they are within an extreme long word.
-->
<code style="width:100ch;">
ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZsuper&shy;cali&shy;fragi&shy;listic&shy;expiali&shy;docious&shy;ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZ
</code>
</body>
</html>

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

@ -316,6 +316,10 @@ HTTP(..) == graphite-surrogate-selection.html graphite-surrogate-selection-ref.h
== auto-hyphenation-transformed-1.html auto-hyphenation-transformed-1-ref.html
== hyphenation-control-1.html hyphenation-control-1-ref.html
== hyphenation-control-2.html hyphenation-control-2-ref.html
== hyphenation-control-3.html hyphenation-control-3-ref.html
# osx-font-smoothing - with and without subpixel AA, only under OSX
fails-if(!cocoaWidget) != osx-font-smoothing.html osx-font-smoothing-ref.html
fails-if(!cocoaWidget) != osx-font-smoothing-2.html osx-font-smoothing-2-notref.html