bug 827779 - reftest for modified hyphen-break rules. r=masayuki

This commit is contained in:
Jonathan Kew 2014-03-25 09:29:18 +00:00
parent 7af873e1c5
commit eb0a2e7f1e
3 changed files with 67 additions and 0 deletions

View File

@ -0,0 +1,33 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<style type="text/css">
p { margin: 5px 1em; }
</style>
</head>
<body>
<!-- bug 827779:
Allow break after hyphen even when there is adjacent closing punctuation
before the hyphen, or opening punctuation after it. -->
<p>
extra-<br>“special”<br>
“extra”-<br>special<br>
“extra”-<br>“special”<br>
extra-<br>«special»<br>
«extra»-<br>special<br>
«extra»-<br>«special»<br>
extra-<br>(special)<br>
(extra)-<br>special<br>
(extra)-<br>(special)
</p>
<!-- but not in variants such as these: -->
<p>
(extra-)special<br>
extra(-special)
</p>
</body>
</html>

View File

@ -0,0 +1,33 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<style type="text/css">
p { margin: 5px 1em; width: 0px; }
</style>
</head>
<body>
<!-- bug 827779:
Allow break after hyphen even when there is adjacent closing punctuation
before the hyphen, or opening punctuation after it. -->
<p>
extra-“special”<br>
“extra”-special<br>
“extra”-“special”<br>
extra-«special»<br>
«extra»-special<br>
«extra»-«special»<br>
extra-(special)<br>
(extra)-special<br>
(extra)-(special)
</p>
<!-- but not in variants such as these: -->
<p>
(extra-)special<br>
extra(-special)
</p>
</body>
</html>

View File

@ -4,6 +4,7 @@
== currency-2.html currency-2-ref.html
== datetime-1.html datetime-1-ref.html
== hyphens-1.html hyphens-1-ref.html
== hyphens-2.html hyphens-2-ref.html
# The following three tests may fail if rendering with Core Text (see bug 389074)
# due to subpixel glyph positioning differences between the reference cases with <br>
# and the automatically-wrapped lines in the test file