зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1157727 - Reftests for bidi bracket pairing, based on UAX #9 examples. r=smontagu
This commit is contained in:
Родитель
d137dd8ad2
Коммит
79648b9209
|
@ -0,0 +1,15 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<style>
|
||||
body { font: 32px monospace; }
|
||||
div { text-align: center; unicode-bidi: bidi-override; }
|
||||
</style>
|
||||
|
||||
<body>
|
||||
|
||||
<!--
|
||||
http://unicode.org/reports/tr9/#N0, Example 1:
|
||||
AB ( CD [ & ef ] ! ) gh
|
||||
-->
|
||||
<div>בא(דג[&ef]!)gh</div>
|
|
@ -0,0 +1,16 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<style>
|
||||
body { font: 32px monospace; }
|
||||
div { text-align: center; }
|
||||
</style>
|
||||
|
||||
<body>
|
||||
|
||||
<!--
|
||||
http://unicode.org/reports/tr9/#N0, Example 1:
|
||||
AB ( CD [ & ef ] ! ) gh
|
||||
-->
|
||||
<!-- LTR -->
|
||||
<div>אב(גד[&ef]!)gh</div>
|
|
@ -0,0 +1,15 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<style>
|
||||
body { font: 32px monospace; }
|
||||
div { text-align: center; unicode-bidi: bidi-override; }
|
||||
</style>
|
||||
|
||||
<body>
|
||||
|
||||
<!--
|
||||
http://unicode.org/reports/tr9/#N0, Example 1:
|
||||
AB ( CD [ & ef ] ! ) gh
|
||||
-->
|
||||
<div>gh(![ef&]דג)בא</div>
|
|
@ -0,0 +1,16 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<style>
|
||||
body { font: 32px monospace; }
|
||||
div { text-align: center; }
|
||||
</style>
|
||||
|
||||
<body>
|
||||
|
||||
<!--
|
||||
http://unicode.org/reports/tr9/#N0, Example 1:
|
||||
AB ( CD [ & ef ] ! ) gh
|
||||
-->
|
||||
<!-- RTL -->
|
||||
<div dir=rtl>אב(גד[&ef]!)gh</div>
|
|
@ -0,0 +1,15 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<style>
|
||||
body { font: 32px monospace; }
|
||||
div { text-align: center; unicode-bidi: bidi-override; }
|
||||
</style>
|
||||
|
||||
<body>
|
||||
|
||||
<!--
|
||||
http://unicode.org/reports/tr9/#N0, Example 1, AB and gh swapped:
|
||||
gh ( CD [ & ef ] ! ) AB
|
||||
-->
|
||||
<div>gh(דג[&ef]!)בא</div>
|
|
@ -0,0 +1,16 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<style>
|
||||
body { font: 32px monospace; }
|
||||
div { text-align: center; }
|
||||
</style>
|
||||
|
||||
<body>
|
||||
|
||||
<!--
|
||||
http://unicode.org/reports/tr9/#N0, Example 1, AB and gh swapped:
|
||||
gh ( CD [ & ef ] ! ) AB
|
||||
-->
|
||||
<!-- LTR -->
|
||||
<div>gh(גד[&ef]!)אב</div>
|
|
@ -0,0 +1,15 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<style>
|
||||
body { font: 32px monospace; }
|
||||
div { text-align: center; unicode-bidi: bidi-override; }
|
||||
</style>
|
||||
|
||||
<body>
|
||||
|
||||
<!--
|
||||
http://unicode.org/reports/tr9/#N0, Example 1, AB and gh swapped:
|
||||
gh ( CD [ & ef ] ! ) AB
|
||||
-->
|
||||
<div>בא(![ef&]דג)gh</div>
|
|
@ -0,0 +1,16 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<style>
|
||||
body { font: 32px monospace; }
|
||||
div { text-align: center; }
|
||||
</style>
|
||||
|
||||
<body>
|
||||
|
||||
<!--
|
||||
http://unicode.org/reports/tr9/#N0, Example 1, AB and gh swapped:
|
||||
gh ( CD [ & ef ] ! ) AB
|
||||
-->
|
||||
<!-- RTL -->
|
||||
<div dir=rtl>gh(גד[&ef]!)אב</div>
|
|
@ -0,0 +1,15 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<style>
|
||||
body { font: 32px monospace; }
|
||||
div { text-align: center; unicode-bidi: bidi-override; }
|
||||
</style>
|
||||
|
||||
<body>
|
||||
|
||||
<!--
|
||||
http://unicode.org/reports/tr9/#N0, Example 1:
|
||||
AB ( ef [ & CD ] ! ) gh
|
||||
-->
|
||||
<div>בא(ef[&דג]!)gh</div>
|
|
@ -0,0 +1,16 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<style>
|
||||
body { font: 32px monospace; }
|
||||
div { text-align: center; }
|
||||
</style>
|
||||
|
||||
<body>
|
||||
|
||||
<!--
|
||||
http://unicode.org/reports/tr9/#N0, Example 1, CD and ef swapped:
|
||||
AB ( ef [ & CD ] ! ) gh
|
||||
-->
|
||||
<!-- LTR -->
|
||||
<div>אב(ef[&גד]!)gh</div>
|
|
@ -0,0 +1,15 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<style>
|
||||
body { font: 32px monospace; }
|
||||
div { text-align: center; unicode-bidi: bidi-override; }
|
||||
</style>
|
||||
|
||||
<body>
|
||||
|
||||
<!--
|
||||
http://unicode.org/reports/tr9/#N0, Example 1:
|
||||
AB ( ef [ & CD ] ! ) gh
|
||||
-->
|
||||
<div>gh(![דג&]ef)בא</div>
|
|
@ -0,0 +1,16 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<style>
|
||||
body { font: 32px monospace; }
|
||||
div { text-align: center; }
|
||||
</style>
|
||||
|
||||
<body>
|
||||
|
||||
<!--
|
||||
http://unicode.org/reports/tr9/#N0, Example 1, CD and ef swapped:
|
||||
AB ( ef [ & CD ] ! ) gh
|
||||
-->
|
||||
<!-- RTL -->
|
||||
<div dir=rtl>אב(ef[&גד]!)gh</div>
|
|
@ -0,0 +1,15 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<style>
|
||||
body { font: 32px monospace; }
|
||||
div { text-align: center; unicode-bidi: bidi-override; }
|
||||
</style>
|
||||
|
||||
<body>
|
||||
|
||||
<!--
|
||||
http://unicode.org/reports/tr9/#N0, Example 2:
|
||||
smith (fabrikam ARABIC) HEBREW
|
||||
-->
|
||||
<div>smith (fabrikam يبرعلا) תירבע</div>
|
|
@ -0,0 +1,16 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<style>
|
||||
body { font: 32px monospace; }
|
||||
div { text-align: center; }
|
||||
</style>
|
||||
|
||||
<body>
|
||||
|
||||
<!--
|
||||
http://unicode.org/reports/tr9/#N0, Example 2:
|
||||
smith (fabrikam ARABIC) HEBREW
|
||||
-->
|
||||
<!-- LTR -->
|
||||
<div>smith (fabrikam العربي) עברית</div>
|
|
@ -0,0 +1,15 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<style>
|
||||
body { font: 32px monospace; }
|
||||
div { text-align: center; unicode-bidi: bidi-override; }
|
||||
</style>
|
||||
|
||||
<body>
|
||||
|
||||
<!--
|
||||
http://unicode.org/reports/tr9/#N0, Example 2:
|
||||
smith (fabrikam ARABIC) HEBREW
|
||||
-->
|
||||
<div>תירבע (يبرعلا fabrikam) smith</div>
|
|
@ -0,0 +1,16 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<style>
|
||||
body { font: 32px monospace; }
|
||||
div { text-align: center; }
|
||||
</style>
|
||||
|
||||
<body>
|
||||
|
||||
<!--
|
||||
http://unicode.org/reports/tr9/#N0, Example 2:
|
||||
smith (fabrikam ARABIC) HEBREW
|
||||
-->
|
||||
<!-- RTL -->
|
||||
<div dir=rtl>smith (fabrikam العربي) עברית</div>
|
|
@ -0,0 +1,15 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<style>
|
||||
body { font: 32px monospace; }
|
||||
div { text-align: center; unicode-bidi: bidi-override; }
|
||||
</style>
|
||||
|
||||
<body>
|
||||
|
||||
<!--
|
||||
http://unicode.org/reports/tr9/#N0, Example 2 with smith and HEBREW exchanged:
|
||||
HEBREW (fabrikam ARABIC) smith
|
||||
-->
|
||||
<div>תירבע (fabrikam يبرعلا) smith</div>
|
|
@ -0,0 +1,16 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<style>
|
||||
body { font: 32px monospace; }
|
||||
div { text-align: center; }
|
||||
</style>
|
||||
|
||||
<body>
|
||||
|
||||
<!--
|
||||
http://unicode.org/reports/tr9/#N0, Example 2 with smith and HEBREW exchanged:
|
||||
HEBREW (fabrikam ARABIC) smith
|
||||
-->
|
||||
<!-- LTR -->
|
||||
<div>עברית (fabrikam العربي) smith</div>
|
|
@ -0,0 +1,15 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<style>
|
||||
body { font: 32px monospace; }
|
||||
div { text-align: center; unicode-bidi: bidi-override; }
|
||||
</style>
|
||||
|
||||
<body>
|
||||
|
||||
<!--
|
||||
http://unicode.org/reports/tr9/#N0, Example 2 with smith and HEBREW exchanged:
|
||||
HEBREW (fabrikam ARABIC) smith
|
||||
-->
|
||||
<div>smith (يبرعلا fabrikam) תירבע</div>
|
|
@ -0,0 +1,16 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<style>
|
||||
body { font: 32px monospace; }
|
||||
div { text-align: center; }
|
||||
</style>
|
||||
|
||||
<body>
|
||||
|
||||
<!--
|
||||
http://unicode.org/reports/tr9/#N0, Example 2 with smith and HEBREW exchanged:
|
||||
HEBREW (fabrikam ARABIC) smith
|
||||
-->
|
||||
<!-- RTL -->
|
||||
<div dir=rtl>עברית (fabrikam العربي) smith</div>
|
|
@ -0,0 +1,15 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<style>
|
||||
body { font: 32px monospace; }
|
||||
div { text-align: center; unicode-bidi: bidi-override; }
|
||||
</style>
|
||||
|
||||
<body>
|
||||
|
||||
<!--
|
||||
http://unicode.org/reports/tr9/#N0, Example 2 with fabrikam and ARABIC exchanged:
|
||||
smith (ARABIC fabrikam) HEBREW
|
||||
-->
|
||||
<div>smith (يبرعلا fabrikam) תירבע</div>
|
|
@ -0,0 +1,16 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<style>
|
||||
body { font: 32px monospace; }
|
||||
div { text-align: center; }
|
||||
</style>
|
||||
|
||||
<body>
|
||||
|
||||
<!--
|
||||
http://unicode.org/reports/tr9/#N0, Example 2 with fabrikam and ARABIC exchanged:
|
||||
smith (ARABIC fabrikam) HEBREW
|
||||
-->
|
||||
<!-- LTR -->
|
||||
<div>smith (العربي fabrikam) עברית</div>
|
|
@ -0,0 +1,15 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<style>
|
||||
body { font: 32px monospace; }
|
||||
div { text-align: center; unicode-bidi: bidi-override; }
|
||||
</style>
|
||||
|
||||
<body>
|
||||
|
||||
<!--
|
||||
http://unicode.org/reports/tr9/#N0, Example 2 with fabrikam and ARABIC exchanged:
|
||||
smith (ARABIC fabrikam) HEBREW
|
||||
-->
|
||||
<div>תירבע (fabrikam يبرعلا) smith</div>
|
|
@ -0,0 +1,16 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<style>
|
||||
body { font: 32px monospace; }
|
||||
div { text-align: center; }
|
||||
</style>
|
||||
|
||||
<body>
|
||||
|
||||
<!--
|
||||
http://unicode.org/reports/tr9/#N0, Example 2 with fabrikam and ARABIC exchanged:
|
||||
smith (ARABIC fabrikam) HEBREW
|
||||
-->
|
||||
<!-- RTL -->
|
||||
<div dir=rtl>smith (العربي fabrikam) עברית</div>
|
|
@ -0,0 +1,15 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<style>
|
||||
body { font: 32px monospace; }
|
||||
div { text-align: center; unicode-bidi: bidi-override; }
|
||||
</style>
|
||||
|
||||
<body>
|
||||
|
||||
<!--
|
||||
http://unicode.org/reports/tr9/#N0, Example 3:
|
||||
ARABIC book(s)
|
||||
-->
|
||||
<div>يبرعلا book(s)</div>
|
|
@ -0,0 +1,16 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<style>
|
||||
body { font: 32px monospace; }
|
||||
div { text-align: center; }
|
||||
</style>
|
||||
|
||||
<body>
|
||||
|
||||
<!--
|
||||
http://unicode.org/reports/tr9/#N0, Example 3:
|
||||
ARABIC book(s)
|
||||
-->
|
||||
<!-- LTR -->
|
||||
<div>العربي book(s)</div>
|
|
@ -0,0 +1,15 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<style>
|
||||
body { font: 32px monospace; }
|
||||
div { text-align: center; unicode-bidi: bidi-override; }
|
||||
</style>
|
||||
|
||||
<body>
|
||||
|
||||
<!--
|
||||
http://unicode.org/reports/tr9/#N0, Example 3:
|
||||
ARABIC book(s)
|
||||
-->
|
||||
<div>book(s) يبرعلا</div>
|
|
@ -0,0 +1,16 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<style>
|
||||
body { font: 32px monospace; }
|
||||
div { text-align: center; }
|
||||
</style>
|
||||
|
||||
<body>
|
||||
|
||||
<!--
|
||||
http://unicode.org/reports/tr9/#N0, Example 3:
|
||||
ARABIC book(s)
|
||||
-->
|
||||
<!-- RTL -->
|
||||
<div dir=rtl>العربي book(s)</div>
|
|
@ -0,0 +1,16 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<style>
|
||||
body { font: 32px monospace; }
|
||||
div { text-align: center; }
|
||||
span { unicode-bidi: -moz-isolate; unicode-bidi: isolate; }
|
||||
</style>
|
||||
|
||||
<body>
|
||||
|
||||
<!--
|
||||
http://unicode.org/reports/tr9/#N0, Example 3, LTR and RTL exchanged:
|
||||
arabic BOOK(S)
|
||||
-->
|
||||
<div>arabic (<span dir=rtl>كُتُب</span>)<span dir=rtl>كِتَاب</span></div>
|
|
@ -0,0 +1,16 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<style>
|
||||
body { font: 32px monospace; }
|
||||
div { text-align: center; }
|
||||
</style>
|
||||
|
||||
<body>
|
||||
|
||||
<!--
|
||||
http://unicode.org/reports/tr9/#N0, Example 3, LTR and RTL exchanged:
|
||||
arabic BOOK(S)
|
||||
-->
|
||||
<!-- LTR -->
|
||||
<div>arabic كِتَاب(كُتُب)</div>
|
|
@ -0,0 +1,16 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<style>
|
||||
body { font: 32px monospace; }
|
||||
div { text-align: center; }
|
||||
span { unicode-bidi: -moz-isolate; unicode-bidi: isolate; }
|
||||
</style>
|
||||
|
||||
<body>
|
||||
|
||||
<!--
|
||||
http://unicode.org/reports/tr9/#N0, Example 3, LTR and RTL exchanged:
|
||||
arabic BOOK(S)
|
||||
-->
|
||||
<div>(<span dir=rtl>كُتُب</span>)<span dir=rtl>كِتَاب</span> arabic</div>
|
|
@ -0,0 +1,16 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<style>
|
||||
body { font: 32px monospace; }
|
||||
div { text-align: center; }
|
||||
</style>
|
||||
|
||||
<body>
|
||||
|
||||
<!--
|
||||
http://unicode.org/reports/tr9/#N0, Example 3, LTR and RTL exchanged:
|
||||
arabic BOOK(S)
|
||||
-->
|
||||
<!-- RTL -->
|
||||
<div dir=rtl>arabic كِتَاب(كُتُب)</div>
|
|
@ -154,5 +154,21 @@ skip-if(B2G||Mulet) != 1155359-1.xul 1155359-1-ref.xul
|
|||
== 1157726-1.html 1157726-1-ref.html
|
||||
== 1161752.html 1161752-ref.html
|
||||
== 1161752-5-embed.html 1161752-5-embed-ref.html
|
||||
fails == brackets-1a-ltr.html brackets-1a-ltr-ref.html
|
||||
fails == brackets-1a-rtl.html brackets-1a-rtl-ref.html
|
||||
== brackets-1b-ltr.html brackets-1b-ltr-ref.html
|
||||
== brackets-1b-rtl.html brackets-1b-rtl-ref.html
|
||||
== brackets-1c-ltr.html brackets-1c-ltr-ref.html
|
||||
== brackets-1c-rtl.html brackets-1c-rtl-ref.html
|
||||
fails == brackets-2a-ltr.html brackets-2a-ltr-ref.html
|
||||
fails == brackets-2a-rtl.html brackets-2a-rtl-ref.html
|
||||
== brackets-2b-ltr.html brackets-2b-ltr-ref.html
|
||||
== brackets-2b-rtl.html brackets-2b-rtl-ref.html
|
||||
== brackets-2c-ltr.html brackets-2c-ltr-ref.html
|
||||
== brackets-2c-rtl.html brackets-2c-rtl-ref.html
|
||||
== brackets-3a-ltr.html brackets-3a-ltr-ref.html
|
||||
fails == brackets-3a-rtl.html brackets-3a-rtl-ref.html
|
||||
fails == brackets-3b-ltr.html brackets-3b-ltr-ref.html
|
||||
== brackets-3b-rtl.html brackets-3b-rtl-ref.html
|
||||
== 1217833-1.html 1217833-1-ref.html
|
||||
== 1217833-2.html 1217833-2-ref.html
|
||||
|
|
Загрузка…
Ссылка в новой задаче