Bug 1260825 - Reftest for highlighting of text involving surrogate pairs with graphite shaping. r=jrmuizel

This commit is contained in:
Jonathan Kew 2016-05-18 15:22:59 +01:00
Родитель 67ee2ed03b
Коммит e08d24f30d
4 изменённых файлов: 48 добавлений и 0 удалений

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

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

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

@ -0,0 +1,23 @@
<!DOCTYPE html>
<html>
<head>
<title>Bug 1260825 reference</title>
<meta charset="utf-8">
<style>
@font-face { font-family: test; src: url(../fonts/MiaoUnicode-Regular.ttf); }
#test { font-family: test, serif; font-size: 60px; }
.sel { background: cyan; }
.inv { color: transparent; }
</style>
</head>
<body>
All lines should show the same single glyph &amp; background area:
<div id="test">
<span class="sel">&#x16f50;</span><br>
<span class="sel">&#x16f50;</span><br>
<span class="sel">&#x16f50;</span><br>
<span class="sel">&#x16f50;</span><br>
<span class="sel">&#x16f50;</span><br>
</div>
</body>
</html>

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

@ -0,0 +1,23 @@
<!DOCTYPE html>
<html>
<head>
<title>Bug 1260825 testcase</title>
<meta charset="utf-8">
<style>
@font-face { font-family: test; src: url(../fonts/MiaoUnicode-Regular.ttf); }
#test { font-family: test, serif; font-size: 60px; }
.sel { background: cyan; }
.inv { color: transparent; }
</style>
</head>
<body>
All lines should show the same single glyph &amp; background area:
<div id="test">
<span class="sel">&#x16f50;</span><br>
<span class="sel">&#x16f50;</span><span class="inv">&#x16f50;</span><br>
<span class="sel">&#x16f50;</span><span class="inv">&#x16f50;&#x16f50;</span><br>
<span class="sel">&#x16f50;</span><span class="inv">&#x16f0a;</span><br>
<span class="sel">&#x16f50;</span><span class="inv">&#x16f0a;&#x16f6a;</span><br>
</div>
</body>
</html>

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

@ -228,6 +228,8 @@ pref(gfx.font_rendering.graphite.enabled,true) HTTP(..) == glyph-decomposition-g
# test for bidi bug in graphite 1.3.2, fixed in 1.3.3 (bug 1207061)
HTTP(..) == graphite-bidi-1.html graphite-bidi-1-ref.html
HTTP(..) == graphite-surrogate-selection.html graphite-surrogate-selection-ref.html
# Tests for hyphenation with hyphens property
== auto-hyphenation-1.html auto-hyphenation-1-ref.html
!= auto-hyphenation-1.html auto-hyphenation-1-notref.html