Skip to content

Commit

Permalink
Bug 1157727 - Reftests for bidi bracket pairing, based on UAX mozilla#9
Browse files Browse the repository at this point in the history
… examples. r=smontagu
  • Loading branch information
jfkthame committed Nov 25, 2015
1 parent 281ee1c commit 33d6f64
Show file tree
Hide file tree
Showing 33 changed files with 512 additions and 0 deletions.
15 changes: 15 additions & 0 deletions layout/reftests/bidi/brackets-1a-ltr-ref.html
Original file line number Diff line number Diff line change
@@ -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>&#x5d1;&#x5d0;(&#x5d3;&#x5d2;[&amp;ef]!)gh</div>
16 changes: 16 additions & 0 deletions layout/reftests/bidi/brackets-1a-ltr.html
Original file line number Diff line number Diff line change
@@ -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>&#x5d0;&#x5d1;(&#x5d2;&#x5d3;[&amp;ef]!)gh</div>
15 changes: 15 additions & 0 deletions layout/reftests/bidi/brackets-1a-rtl-ref.html
Original file line number Diff line number Diff line change
@@ -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&amp;]&#x5d3;&#x5d2;)&#x5d1;&#x5d0;</div>
16 changes: 16 additions & 0 deletions layout/reftests/bidi/brackets-1a-rtl.html
Original file line number Diff line number Diff line change
@@ -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>&#x5d0;&#x5d1;(&#x5d2;&#x5d3;[&amp;ef]!)gh</div>
15 changes: 15 additions & 0 deletions layout/reftests/bidi/brackets-1b-ltr-ref.html
Original file line number Diff line number Diff line change
@@ -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(&#x5d3;&#x5d2;[&amp;ef]!)&#x5d1;&#x5d0;</div>
16 changes: 16 additions & 0 deletions layout/reftests/bidi/brackets-1b-ltr.html
Original file line number Diff line number Diff line change
@@ -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(&#x5d2;&#x5d3;[&amp;ef]!)&#x5d0;&#x5d1;</div>
15 changes: 15 additions & 0 deletions layout/reftests/bidi/brackets-1b-rtl-ref.html
Original file line number Diff line number Diff line change
@@ -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>&#x5d1;&#x5d0;(![ef&amp;]&#x5d3;&#x5d2;)gh</div>
16 changes: 16 additions & 0 deletions layout/reftests/bidi/brackets-1b-rtl.html
Original file line number Diff line number Diff line change
@@ -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(&#x5d2;&#x5d3;[&amp;ef]!)&#x5d0;&#x5d1;</div>
15 changes: 15 additions & 0 deletions layout/reftests/bidi/brackets-1c-ltr-ref.html
Original file line number Diff line number Diff line change
@@ -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>&#x5d1;&#x5d0;(ef[&amp;&#x5d3;&#x5d2;]!)gh</div>
16 changes: 16 additions & 0 deletions layout/reftests/bidi/brackets-1c-ltr.html
Original file line number Diff line number Diff line change
@@ -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>&#x5d0;&#x5d1;(ef[&amp;&#x5d2;&#x5d3;]!)gh</div>
15 changes: 15 additions & 0 deletions layout/reftests/bidi/brackets-1c-rtl-ref.html
Original file line number Diff line number Diff line change
@@ -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(![&#x5d3;&#x5d2;&amp;]ef)&#x5d1;&#x5d0;</div>
16 changes: 16 additions & 0 deletions layout/reftests/bidi/brackets-1c-rtl.html
Original file line number Diff line number Diff line change
@@ -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>&#x5d0;&#x5d1;(ef[&amp;&#x5d2;&#x5d3;]!)gh</div>
15 changes: 15 additions & 0 deletions layout/reftests/bidi/brackets-2a-ltr-ref.html
Original file line number Diff line number Diff line change
@@ -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 &#x64A;&#x628;&#x631;&#x639;&#x644;&#x627;) &#x5EA;&#x5D9;&#x5E8;&#x5D1;&#x5E2;</div>
16 changes: 16 additions & 0 deletions layout/reftests/bidi/brackets-2a-ltr.html
Original file line number Diff line number Diff line change
@@ -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 &#x627;&#x644;&#x639;&#x631;&#x628;&#x64A;) &#x5E2;&#x5D1;&#x5E8;&#x5D9;&#x5EA;</div>
15 changes: 15 additions & 0 deletions layout/reftests/bidi/brackets-2a-rtl-ref.html
Original file line number Diff line number Diff line change
@@ -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>&#x5EA;&#x5D9;&#x5E8;&#x5D1;&#x5E2; (&#x64A;&#x628;&#x631;&#x639;&#x644;&#x627; fabrikam) smith</div>
16 changes: 16 additions & 0 deletions layout/reftests/bidi/brackets-2a-rtl.html
Original file line number Diff line number Diff line change
@@ -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 &#x627;&#x644;&#x639;&#x631;&#x628;&#x64A;) &#x5E2;&#x5D1;&#x5E8;&#x5D9;&#x5EA;</div>
15 changes: 15 additions & 0 deletions layout/reftests/bidi/brackets-2b-ltr-ref.html
Original file line number Diff line number Diff line change
@@ -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>&#x5EA;&#x5D9;&#x5E8;&#x5D1;&#x5E2; (fabrikam &#x64A;&#x628;&#x631;&#x639;&#x644;&#x627;) smith</div>
16 changes: 16 additions & 0 deletions layout/reftests/bidi/brackets-2b-ltr.html
Original file line number Diff line number Diff line change
@@ -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>&#x5E2;&#x5D1;&#x5E8;&#x5D9;&#x5EA; (fabrikam &#x627;&#x644;&#x639;&#x631;&#x628;&#x64A;) smith</div>
15 changes: 15 additions & 0 deletions layout/reftests/bidi/brackets-2b-rtl-ref.html
Original file line number Diff line number Diff line change
@@ -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 (&#x64A;&#x628;&#x631;&#x639;&#x644;&#x627; fabrikam) &#x5EA;&#x5D9;&#x5E8;&#x5D1;&#x5E2;</div>
16 changes: 16 additions & 0 deletions layout/reftests/bidi/brackets-2b-rtl.html
Original file line number Diff line number Diff line change
@@ -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>&#x5E2;&#x5D1;&#x5E8;&#x5D9;&#x5EA; (fabrikam &#x627;&#x644;&#x639;&#x631;&#x628;&#x64A;) smith</div>
15 changes: 15 additions & 0 deletions layout/reftests/bidi/brackets-2c-ltr-ref.html
Original file line number Diff line number Diff line change
@@ -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 (&#x64A;&#x628;&#x631;&#x639;&#x644;&#x627; fabrikam) &#x5EA;&#x5D9;&#x5E8;&#x5D1;&#x5E2;</div>
16 changes: 16 additions & 0 deletions layout/reftests/bidi/brackets-2c-ltr.html
Original file line number Diff line number Diff line change
@@ -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 (&#x627;&#x644;&#x639;&#x631;&#x628;&#x64A; fabrikam) &#x5E2;&#x5D1;&#x5E8;&#x5D9;&#x5EA;</div>
15 changes: 15 additions & 0 deletions layout/reftests/bidi/brackets-2c-rtl-ref.html
Original file line number Diff line number Diff line change
@@ -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>&#x5EA;&#x5D9;&#x5E8;&#x5D1;&#x5E2; (fabrikam &#x64A;&#x628;&#x631;&#x639;&#x644;&#x627;) smith</div>
16 changes: 16 additions & 0 deletions layout/reftests/bidi/brackets-2c-rtl.html
Original file line number Diff line number Diff line change
@@ -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 (&#x627;&#x644;&#x639;&#x631;&#x628;&#x64A; fabrikam) &#x5E2;&#x5D1;&#x5E8;&#x5D9;&#x5EA;</div>
Loading

0 comments on commit 33d6f64

Please sign in to comment.