mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-07 18:04:46 +00:00
Bug 1056516 - add tests to our local reftests folder. r=jfkthame
MozReview-Commit-ID: EBKLIH9H0hf
This commit is contained in:
parent
0316fede8c
commit
c3f809d573
47
layout/reftests/text/hyphenation-control-1-ref.html
Normal file
47
layout/reftests/text/hyphenation-control-1-ref.html
Normal file
@ -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>
|
47
layout/reftests/text/hyphenation-control-1.html
Normal file
47
layout/reftests/text/hyphenation-control-1.html
Normal file
@ -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­expiali
|
||||
</code>
|
||||
<br />
|
||||
<code style="width:5ch;">
|
||||
fragilistic­expiali
|
||||
</code>
|
||||
<br />
|
||||
<code style="width:9ch;">
|
||||
fragilistic­expiali
|
||||
</code>
|
||||
<br />
|
||||
<code style="width:12ch;">
|
||||
fragilistic­expiali
|
||||
</code>
|
||||
<br />
|
||||
<code style="width:14ch;">
|
||||
fragilistic­expiali
|
||||
</code>
|
||||
<br />
|
||||
<code style="width:16ch;">
|
||||
fragilistic­expiali
|
||||
</code>
|
||||
</body>
|
||||
</html>
|
22
layout/reftests/text/hyphenation-control-2-ref.html
Normal file
22
layout/reftests/text/hyphenation-control-2-ref.html
Normal file
@ -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‐<br />fragilistic‐<br />expialidocious
|
||||
</code>
|
||||
<br />
|
||||
</body>
|
||||
</html>
|
27
layout/reftests/text/hyphenation-control-2.html
Normal file
27
layout/reftests/text/hyphenation-control-2.html
Normal file
@ -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‐fragilistic‐expialidocious
|
||||
</code>
|
||||
<br />
|
||||
</body>
|
||||
</html>
|
17
layout/reftests/text/hyphenation-control-3-ref.html
Normal file
17
layout/reftests/text/hyphenation-control-3-ref.html
Normal file
@ -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>
|
21
layout/reftests/text/hyphenation-control-3.html
Normal file
21
layout/reftests/text/hyphenation-control-3.html
Normal file
@ -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­cali­fragi­listic­expiali­docious­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
|
||||
|
Loading…
Reference in New Issue
Block a user