Reftests for bidi diacritics (bugs: 378351, 387653, 395676)

git-svn-id: svn://10.0.0.236/trunk@236660 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
smontagu%smontagu.org
2007-09-25 15:55:34 +00:00
parent 30380c5b92
commit dc1e74aa7a
6 changed files with 98 additions and 3 deletions

View File

@@ -10,7 +10,7 @@ body {
font-family: serif;
font-size: 24pt;
}
</style
</style>
<body>
<p>god yzal eht revo spmuj xof nworb kciuq eht</p>
</body>

View File

@@ -5,11 +5,11 @@
<meta http-equiv="content-type" content="text/html; charset=utf-8";
</head>
<style type="text/css">
body {
body {
font-family: serif;
font-size: 24pt;
}
</style
</style>
<body>
<p lang="he" style="direction: rtl;">אַבּוּשׁ</p>
</body>

View File

@@ -0,0 +1,32 @@
<!DOCTYPE html>
<!-- Bidi reftest 006: rtl text with diacritics. This is hard to reftest
because if there is a bug it will typically be exhibited in the reference
rendering as well as in the test. The approach adopted here is to use
"overflow-x: hidden", so that if the diacritic is shifted to the right or
left it will disappear from the test rendering and be visible (even if in
the wrong place) in the reference rendering.
Relevant bugs:
378351 (Windows)
386573 (Mac)
387653 (Linux)
395676 (Windows)
-->
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8";
</head>
<style type="text/css">
p {
font-family: sans-serif;
font-size: 36pt;
width: 9pt;
overflow-x: hidden;
text-align: justify;
margin: 48pt;
}
</style>
<body>
<p>&#x5d9;&#x5b8;</p>
</body>
</html>

View File

@@ -0,0 +1,30 @@
<!DOCTYPE html>
<!-- Bidi reftest 006: rtl text with diacritics. This is hard to reftest
because if there is a bug it will typically be exhibited in the reference
rendering as well as in the test. The approach adopted here is to use
"overflow-x: hidden", so that if the diacritic is shifted to the right or
left it will disappear from the test rendering and be visible (even if in
the wrong place) in the reference rendering.
Relevant bugs:
378351 (Windows)
386573 (Mac)
387653 (Linux)
395676 (Windows)
-->
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8";
</head>
<style type="text/css">
p {
font-family: sans-serif;
font-size: 36pt;
width: 9pt;
margin: 48pt;
}
</style>
<body>
<p>&#x5d9;&#x5b8;</p>
</body>
</html>

View File

@@ -0,0 +1,31 @@
<!DOCTYPE html>
<!-- Bidi reftest 006: rtl text with diacritics. This is hard to reftest
because if there is a bug it will typically be exhibited in the reference
rendering as well as in the test. The approach adopted here is to use
"overflow-x: hidden", so that if the diacritic is shifted to the right or
left it will disappear from the test rendering and be visible (even if in
the wrong place) in the reference rendering.
Relevant bugs:
378351 (Windows)
386573 (Mac)
387653 (Linux)
395676 (Windows)
-->
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8";
</head>
<style type="text/css">
p {
font-family: sans-serif;
font-size: 36pt;
width: 9pt;
overflow-x: hidden;
margin: 48pt;
}
</style>
<body>
<p>&#x5d9;&#x5b8;</p>
</body>
</html>

View File

@@ -7,5 +7,7 @@
fails-if(MOZ_WIDGET_TOOLKIT!="windows") == bidi-004.html bidi-004-ref.html # Bug 386567 (Linux), bug 386573 (Mac)
fails-if(MOZ_WIDGET_TOOLKIT!="windows") == bidi-004-j.html bidi-004-ref.html
== bidi-005.html bidi-005-ref.html
fails-if(MOZ_WIDGET_TOOLKIT=="cocoa") == bidi-006.html bidi-006-ref.html # Bug 386573
fails-if(MOZ_WIDGET_TOOLKIT=="cocoa") == bidi-006-j.html bidi-006-ref.html # Bug 386573
== 386339.html 386339-ref.html
fails-if(MOZ_WIDGET_TOOLKIT!="gtk2") == 387653.html 387653-ref.html # Linux-specific bug