Bug 761442 - additional reftests for space lookups. r=jkew

This commit is contained in:
John Daggett 2013-04-19 17:23:09 +09:00
parent 4fd9de13e1
commit 0ad45414c1
14 changed files with 482 additions and 83 deletions

View File

@ -1,41 +0,0 @@
<!DOCTYPE HTML>
<html>
<head>
<title>ligature-across-space test</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
@font-face {
font-family: ligsym;
src: url(../fonts/LigatureSymbolsWithSpaces.woff);
}
td {
padding: 10px 5px;
}
.test {
font-family: ligsym;
font-size: 150%;
}
</style>
</head>
<body>
<table>
<tr><td>calendar</td><td class="test">&#xe15e;</td></tr>
<tr><td>daily calendar</td><td class="test">daily &#xe15e;</td></tr>
<tr><td>align left</td><td class="test">align &#xe080;</td></tr>
<tr><td>align center</td><td class="test">align center</td></tr>
<tr><td>align right</td><td class="test">align &#xe112;</td></tr>
<tr><td>volume</td><td class="test">&#xe13b;</td></tr>
<tr><td>volume down</td><td class="test">&#xe13b; &#xe03e;</td></tr>
<tr><td>volume up</td><td class="test">&#xe13b; &#xe135;</td></tr>
<tr><td>zoom in</td><td class="test">&#xe142; &#xe087;</td></tr>
<tr><td>zoom out</td><td class="test">&#xe142; &#xe088;</td></tr>
<tr><td>heart</td><td class="test">&#xe06e;</td></tr>
<tr><td>heart empty</td><td class="test">&#xe06e; empty</td></tr>
</table>
</body>
</html>

View File

@ -1,41 +0,0 @@
<!DOCTYPE HTML>
<html>
<head>
<title>ligature-across-space test</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
@font-face {
font-family: ligsym;
src: url(../fonts/LigatureSymbolsWithSpaces.woff);
}
td {
padding: 10px 5px;
}
.test {
font-family: ligsym;
font-size: 150%;
}
</style>
</head>
<body>
<table>
<tr><td>calendar</td><td class="test">calendar</td></tr>
<tr><td>daily calendar</td><td class="test">daily calendar</td></tr>
<tr><td>align left</td><td class="test">align left</td></tr>
<tr><td>align center</td><td class="test">align center</td></tr>
<tr><td>align right</td><td class="test">align right</td></tr>
<tr><td>volume</td><td class="test">volume</td></tr>
<tr><td>volume down</td><td class="test">volume down</td></tr>
<tr><td>volume up</td><td class="test">volume up</td></tr>
<tr><td>zoom in</td><td class="test">zoom in</td></tr>
<tr><td>zoom out</td><td class="test">zoom out</td></tr>
<tr><td>heart</td><td class="test">heart</td></tr>
<tr><td>heart empty</td><td class="test">heart empty</td></tr>
</table>
</body>
</html>

View File

@ -0,0 +1,37 @@
<!DOCTYPE HTML>
<html lang="ja">
<head>
<title>Full-width variations of regular spaces</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
body {
margin: 5px;
}
#test, #test pre {
font: 150% Hiragino Kaku Gothic ProN, Meiryo, sans-serif;
}
#test pre span {
background-color: red;
}
pre {
margin: 0;
padding: 0;
}
</style>
</head>
<body>
<p>Rows should all be the same length:</p>
<div id="test">
<pre><span>&#x3000;&#xff41;&#x3000;&#xff42;&#x3000;&#xff43;&#x3000;&#xff21;&#x3000;&#xff22;&#x3000;&#xff23;&#x3000;</span></pre>
<pre><span>&#x3000;&#xff41;&#x3000;&#xff42;&#x3000;&#xff43;&#x3000;&#xff21;&#x3000;&#xff22;&#x3000;&#xff23;&#x3000;</span></pre>
<pre><span>&#xff42;&#xff41;&#x3000;&#xff42;&#xff21;&#x3000;&#xff42;&#xff42;&#x3000;&#xff42;&#xff22;&#x3000;&#xff43;</span></pre>
<pre><span>&#xff42;&#xff41;&#x3000;&#xff42;&#xff21;&#x3000;&#xff42;&#xff42;&#x3000;&#xff42;&#xff22;&#x3000;&#xff43;</span></pre>
</div>
</body>
</html>

View File

@ -0,0 +1,40 @@
<!DOCTYPE HTML>
<html lang="ja">
<head>
<title>Full-width variations of regular spaces</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
body {
margin: 5px;
}
#test, #test pre {
font: 150% Hiragino Kaku Gothic ProN, Meiryo, sans-serif;
-moz-font-feature-settings: "fwid" on;
-webkit-font-feature-settings: "fwid" on;
font-feature-settings: "fwid" on;
}
#test pre span {
background-color: red;
}
pre {
margin: 0;
padding: 0;
}
</style>
</head>
<body>
<p>Rows should all be the same length:</p>
<div id="test">
<pre><span> a b c A B C </span></pre>
<pre><span>&#x3000;a&#x3000;b&#x3000;c&#x3000;A&#x3000;B&#x3000;C&#x3000;</span></pre>
<pre><span>ba bA bb bB c</span></pre>
<pre><span>ba&#x3000;bA&#x3000;bb&#x3000;bB&#x3000;c</span></pre>
</div>
</body>
</html>

View File

@ -0,0 +1,37 @@
<!DOCTYPE HTML>
<html>
<head>
<title>kerning sanity checks</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
@font-face {
font-family: LinuxLibertine;
src: url(../fonts/LinLibertine_Re-4.7.5.woff);
}
body {
margin: 5px;
}
div#test, div#test pre {
font-family: Arial, LinuxLibertine, sans-serif;
font-size: 300%;
line-height: 1.1em;
/* font-feature-settings == default */
}
pre {
margin: 0;
padding: 0;
}
</style>
</head>
<body>
<div id="test">
<pre><span>AWAY</span></pre>
</div>
</body>
</html>

View File

@ -0,0 +1,39 @@
<!DOCTYPE HTML>
<html>
<head>
<title>kerning sanity checks</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
@font-face {
font-family: LinuxLibertine;
src: url(../fonts/LinLibertine_Re-4.7.5.woff);
}
body {
margin: 5px;
}
div#test, div#test pre {
font-family: Arial, LinuxLibertine, sans-serif;
font-size: 300%;
line-height: 1.1em;
-moz-font-feature-settings: "kern" on;
-webkit-font-feature-settings: "kern" on;
font-feature-settings: "kern" on;
}
pre {
margin: 0;
padding: 0;
}
</style>
</head>
<body>
<div id="test">
<pre><span>AWAY</span></pre>
</div>
</body>
</html>

View File

@ -0,0 +1,39 @@
<!DOCTYPE HTML>
<html>
<head>
<title>kerning sanity checks</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
@font-face {
font-family: LinuxLibertine;
src: url(../fonts/LinLibertine_Re-4.7.5.woff);
}
body {
margin: 5px;
}
div#test, div#test pre {
font-family: Arial, LinuxLibertine, sans-serif;
font-size: 300%;
line-height: 1.1em;
-moz-font-feature-settings: "kern" off;
-webkit-font-feature-settings: "kern" off;
font-feature-settings: "kern" off;
}
pre {
margin: 0;
padding: 0;
}
</style>
</head>
<body>
<div id="test">
<pre><span>AWAY</span></pre>
</div>
</body>
</html>

View File

@ -0,0 +1,44 @@
<!DOCTYPE HTML>
<html>
<head>
<title>testing contextual kerning with spaces</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
body {
margin: 5px;
}
div#test, div#test pre {
font-family: Arial, sans-serif;
font-size: 150%;
line-height: 1.1em;
/* font-feature-settings == default */
}
pre {
margin: 0;
padding: 0;
}
</style>
</head>
<body>
<div id="test">
<pre><span>Q A Q</span></pre>
<pre><span>Q L Q</span></pre>
<pre><span>Q P Q</span></pre>
<pre><span>Q T Q</span></pre>
<pre><span>Q Y Q</span></pre>
<pre><span>Q Α Q</span></pre>
<pre><span>Q Δ Q</span></pre>
<pre><span>Q Λ Q</span></pre>
<pre><span>Q Ρ Q</span></pre>
<pre><span>Q Τ Q</span></pre>
<pre><span>Q Υ Q</span></pre>
<pre><span>Q Ϋ Q</span></pre>
<pre><span>Q Q</span></pre>
</div>
</body>
</html>

View File

@ -0,0 +1,46 @@
<!DOCTYPE HTML>
<html>
<head>
<title>testing contextual kerning with spaces</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
body {
margin: 5px;
}
div#test, div#test pre {
font-family: Arial, sans-serif;
font-size: 150%;
line-height: 1.1em;
-moz-font-feature-settings: "kern" on;
-webkit-font-feature-settings: "kern" on;
font-feature-settings: "kern" on;
}
pre {
margin: 0;
padding: 0;
}
</style>
</head>
<body>
<div id="test">
<pre><span>Q A Q</span></pre>
<pre><span>Q L Q</span></pre>
<pre><span>Q P Q</span></pre>
<pre><span>Q T Q</span></pre>
<pre><span>Q Y Q</span></pre>
<pre><span>Q Α Q</span></pre>
<pre><span>Q Δ Q</span></pre>
<pre><span>Q Λ Q</span></pre>
<pre><span>Q Ρ Q</span></pre>
<pre><span>Q Τ Q</span></pre>
<pre><span>Q Υ Q</span></pre>
<pre><span>Q Ϋ Q</span></pre>
<pre><span>Q Q</span></pre>
</div>
</body>
</html>

View File

@ -0,0 +1,46 @@
<!DOCTYPE HTML>
<html>
<head>
<title>testing contextual kerning with spaces</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
body {
margin: 5px;
}
div#test, div#test pre {
font-family: Arial, sans-serif;
font-size: 150%;
line-height: 1.1em;
-moz-font-feature-settings: "kern" off;
-webkit-font-feature-settings: "kern" off;
font-feature-settings: "kern" off;
}
pre {
margin: 0;
padding: 0;
}
</style>
</head>
<body>
<div id="test">
<pre><span>Q A Q</span></pre>
<pre><span>Q L Q</span></pre>
<pre><span>Q P Q</span></pre>
<pre><span>Q T Q</span></pre>
<pre><span>Q Y Q</span></pre>
<pre><span>Q Α Q</span></pre>
<pre><span>Q Δ Q</span></pre>
<pre><span>Q Λ Q</span></pre>
<pre><span>Q Ρ Q</span></pre>
<pre><span>Q Τ Q</span></pre>
<pre><span>Q Υ Q</span></pre>
<pre><span>Q Ϋ Q</span></pre>
<pre><span>Q Q</span></pre>
</div>
</body>
</html>

View File

@ -0,0 +1,46 @@
<!DOCTYPE HTML>
<html>
<head>
<title>testing contextual kerning with spaces</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
body {
margin: 5px;
}
div#test, div#test pre {
font-family: Times New Roman, sans-serif;
font-size: 150%;
line-height: 1.1em;
/* font-feature-settings == default */
}
pre {
margin: 0;
padding: 0;
}
</style>
</head>
<body>
<div id="test">
<pre><span>Q A Q</span></pre>
<pre><span>Q L Q</span></pre>
<pre><span>Q P Q</span></pre>
<pre><span>Q T Q</span></pre>
<pre><span>Q V Q</span></pre>
<pre><span>Q W Q</span></pre>
<pre><span>Q Y Q</span></pre>
<pre><span>Q Ά Q</span></pre>
<pre><span>Q Α Q</span></pre>
<pre><span>Q Δ Q</span></pre>
<pre><span>Q Λ Q</span></pre>
<pre><span>Q Τ Q</span></pre>
<pre><span>Q Υ Q</span></pre>
<pre><span>Q Ϋ Q</span></pre>
<pre><span>Q Q</span></pre>
</div>
</body>
</html>

View File

@ -0,0 +1,48 @@
<!DOCTYPE HTML>
<html>
<head>
<title>testing contextual kerning with spaces</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
body {
margin: 5px;
}
div#test, div#test pre {
font-family: Times New Roman, sans-serif;
font-size: 150%;
line-height: 1.1em;
-moz-font-feature-settings: "kern" on;
-webkit-font-feature-settings: "kern" on;
font-feature-settings: "kern" on;
}
pre {
margin: 0;
padding: 0;
}
</style>
</head>
<body>
<div id="test">
<pre><span>Q A Q</span></pre>
<pre><span>Q L Q</span></pre>
<pre><span>Q P Q</span></pre>
<pre><span>Q T Q</span></pre>
<pre><span>Q V Q</span></pre>
<pre><span>Q W Q</span></pre>
<pre><span>Q Y Q</span></pre>
<pre><span>Q Ά Q</span></pre>
<pre><span>Q Α Q</span></pre>
<pre><span>Q Δ Q</span></pre>
<pre><span>Q Λ Q</span></pre>
<pre><span>Q Τ Q</span></pre>
<pre><span>Q Υ Q</span></pre>
<pre><span>Q Ϋ Q</span></pre>
<pre><span>Q Q</span></pre>
</div>
</body>
</html>

View File

@ -0,0 +1,48 @@
<!DOCTYPE HTML>
<html>
<head>
<title>testing contextual kerning with spaces</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
body {
margin: 5px;
}
div#test, div#test pre {
font-family: Times New Roman, sans-serif;
font-size: 150%;
line-height: 1.1em;
-moz-font-feature-settings: "kern" off;
-webkit-font-feature-settings: "kern" off;
font-feature-settings: "kern" off;
}
pre {
margin: 0;
padding: 0;
}
</style>
</head>
<body>
<div id="test">
<pre><span>Q A Q</span></pre>
<pre><span>Q L Q</span></pre>
<pre><span>Q P Q</span></pre>
<pre><span>Q T Q</span></pre>
<pre><span>Q V Q</span></pre>
<pre><span>Q W Q</span></pre>
<pre><span>Q Y Q</span></pre>
<pre><span>Q Ά Q</span></pre>
<pre><span>Q Α Q</span></pre>
<pre><span>Q Δ Q</span></pre>
<pre><span>Q Λ Q</span></pre>
<pre><span>Q Τ Q</span></pre>
<pre><span>Q Υ Q</span></pre>
<pre><span>Q Ϋ Q</span></pre>
<pre><span>Q Q</span></pre>
</div>
</body>
</html>

View File

@ -51,6 +51,17 @@ skip-if(B2G) HTTP(..) == font-features-turkish-override-5.html font-features-tur
HTTP(..) == font-features-order-1.html font-features-ref.html
HTTP(..) == font-features-order-2.html font-features-noliga.html
# sanity check for kerning - with no spaces, kerning should occur (XP version of Arial doesn't contain kerning data)
HTTP(..) == kerning-sanity-check-kern.html kerning-sanity-check-default.html
fails-if(/^Windows\x20NT\x205\.1/.test(http.oscpu)) HTTP(..) != kerning-sanity-check-nokern.html kerning-sanity-check-default.html
# OpenType features should work across inter-word spaces
HTTP(..) == font-features-across-space-1.html font-features-across-space-1-ref.html
HTTP(..) == font-features-across-space-2.html font-features-across-space-2-ref.html
# requires Japanese font with feature support, WinXP lacks one
random-if(!winWidget&&!cocoaWidget) fails-if(/^Windows\x20NT\x205\.1/.test(http.oscpu)) HTTP(..) == fwid-spaces.html fwid-spaces-ref.html
# Arial/Times New Roman on Win7+/OSX 10.6+ have kerning pairs that include spaces
random-if(!winWidget&&!cocoaWidget) fails-if(winWidget||cocoaWidget) random-if(/^Windows\x20NT\x205\.1/.test(http.oscpu)) HTTP(..) != kerning-spaces-arial-nokern.html kerning-spaces-arial-default.html
random-if(!winWidget&&!cocoaWidget) fails-if(winWidget||cocoaWidget) random-if(/^Windows\x20NT\x205\.1/.test(http.oscpu)) HTTP(..) == kerning-spaces-arial-kern.html kerning-spaces-arial-default.html
random-if(!winWidget&&!cocoaWidget) fails-if(winWidget||cocoaWidget) random-if(/^Windows\x20NT\x205\.1/.test(http.oscpu)) HTTP(..) != kerning-spaces-tnr-nokern.html kerning-spaces-tnr-default.html
random-if(!winWidget&&!cocoaWidget) fails-if(winWidget||cocoaWidget) random-if(/^Windows\x20NT\x205\.1/.test(http.oscpu)) HTTP(..) == kerning-spaces-tnr-kern.html kerning-spaces-tnr-default.html