forked from mozilla/gecko-dev
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1157727 - Reftests for bidi bracket pairing, based on UAX mozilla#9…
… examples. r=smontagu
- Loading branch information
Showing
33 changed files
with
512 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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>בא(דג[&ef]!)gh</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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>אב(גד[&ef]!)gh</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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&]דג)בא</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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>אב(גד[&ef]!)gh</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(דג[&ef]!)בא</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(גד[&ef]!)אב</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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>בא(![ef&]דג)gh</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(גד[&ef]!)אב</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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>בא(ef[&דג]!)gh</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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>אב(ef[&גד]!)gh</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(![דג&]ef)בא</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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>אב(ef[&גד]!)gh</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 يبرعلا) תירבע</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 العربي) עברית</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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>תירבע (يبرعلا fabrikam) smith</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 العربي) עברית</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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>תירבע (fabrikam يبرعلا) smith</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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>עברית (fabrikam العربي) smith</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 (يبرعلا fabrikam) תירבע</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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>עברית (fabrikam العربي) smith</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 (يبرعلا fabrikam) תירבע</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 (العربي fabrikam) עברית</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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>תירבע (fabrikam يبرعلا) smith</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 (العربي fabrikam) עברית</div> |
Oops, something went wrong.