Bug 481948. Indic cluster reftests. r=roc

--HG--
extra : rebase_source : 4da52abab824881623a239f35626f13b00949513
This commit is contained in:
Jonathan Kew 2009-04-25 20:26:59 +12:00
parent ea5d72e887
commit b16ecd7e9a
7 changed files with 114 additions and 0 deletions

View File

@ -0,0 +1,13 @@
<!-- test for bug 481948: check whether Indic cluster shows all glyphs -->
<html>
<head>
<style type="text/css">
body {
font-size: 24pt;
}
</style>
</head>
<body>
<p>&#x0930;&#x094d;&#x0915;&#x094d;&#x0915;&#x094d;&#x0915;</p>
</body>
</html>

View File

@ -0,0 +1,15 @@
<!-- test for bug 481948: check whether Indic cluster shows all glyphs -->
<html>
<head>
<style type="text/css">
body {
font-size: 24pt;
}
</style>
</head>
<body>
<!-- The cluster here is longer than in the reference, so display should be different.
In FF3.0.x on Mac OS X, they look identical. -->
<p>&#x0930;&#x094d;&#x0915;&#x094d;&#x0915;&#x094d;&#x0915;&#x094d;&#x0915;</p>
</body>
</html>

View File

@ -0,0 +1,20 @@
<html>
<head>
<style type="text/css">
body {
/* try for some likely fonts that might implement the "fi" ligature */
font-family: Times, Calibri, Palatino Linotype, DejaVu Serif, serif;
font-size: 40pt;
}
.R {
color: #FF0000;
}
.G {
color: #00FF00;
}
</style>
</head>
<body>
<span class="R">fi</span>
</body>
</html>

View File

@ -0,0 +1,24 @@
<html>
<head>
<style type="text/css">
body {
/* try for some likely fonts that might implement the "fi" ligature */
font-family: Times, Calibri, Palatino Linotype, DejaVu Serif, serif;
font-size: 40pt;
}
.R {
color: #FF0000;
}
.G {
color: #00FF00;
}
</style>
</head>
<!--
The reference has "fi" in a single red span; the expected result is
NOT EQUAL, provided we successfully paint the ligature in two halves.
-->
<body>
<span class="R">f</span><span class="G">i</span>
</body>
</html>

View File

@ -0,0 +1,17 @@
<html>
<head>
<style type="text/css">
.R { color: #FF0000; }
.G { color: #00FF00; }
.B { color: #0000FF; }
.K { color: #000000; }
</style>
</head>
<body>
<p>There should be only red and black text here</p>
<p style="font-size: 24pt;">
<span class="R">&#x0930;&#x094d;&#x0915;&#x094d;&#x0915;</span><span
class="K">&#x0915;</span>
</p>
</body>
</html>

View File

@ -0,0 +1,22 @@
<html>
<head>
<style type="text/css">
.R { color: #FF0000; }
.G { color: #00FF00; }
.B { color: #0000FF; }
.K { color: #000000; }
</style>
</head>
<body>
<p>There should be only red and black text here</p>
<p style="font-size: 24pt;">
<!-- The first three spans here become a single Devanagari cluster,
so the entire cluster is painted with the color of the first
character. Currently NOT true on Linux, see bug 488364. -->
<span class="R">&#x0930;&#x094d;</span><span
class="G">&#x0915;&#x094d;</span><span
class="B">&#x0915;</span><span
class="K">&#x0915;</span>
</p>
</body>
</html>

View File

@ -1189,6 +1189,9 @@ fails == 472020-2.xul 472020-2-ref.xul
== 480880-2a.html about:blank
== 480880-2b.html about:blank
== 480880-2c.html about:blank
!= 481948-1.html 481948-1-ref.html
!= 481948-2.html 481948-2-ref.html
fails-if(MOZ_WIDGET_TOOLKIT=="gtk2") == 481948-3.html 481948-3-ref.html # different behavior on Linux, see bug 488364
== 482398-1.html 482398-1-ref.html
== 482592-1a.xhtml 482592-1-ref.html
== 482592-1b.xhtml 482592-1-ref.html