mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 21:31:04 +00:00
Tests for bug 83958, originally by David Baron
This commit is contained in:
parent
e1109b7657
commit
c992333667
22
layout/reftests/bidi/83958-1-ref.html
Normal file
22
layout/reftests/bidi/83958-1-ref.html
Normal file
@ -0,0 +1,22 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Bidirectional Text Test 2</title>
|
||||
<style>
|
||||
p { font-family: monospace; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>The following lines should all read "ABCDEFGHI":</p>
|
||||
<p>ABCDEFGHI</p>
|
||||
<p>ABCDEFGHI</p>
|
||||
<p>ABCDEFGHI</p>
|
||||
<p>ABCDEFGHI</p>
|
||||
<p>ABCDEFGHI</p>
|
||||
<p>ABCDEFGHI</p>
|
||||
<p>ABCDEFGHI</p>
|
||||
<p>ABCDEFGHI</p>
|
||||
<p>ABCDEFGHI</p>
|
||||
</body>
|
||||
</html>
|
23
layout/reftests/bidi/83958-1a.html
Normal file
23
layout/reftests/bidi/83958-1a.html
Normal file
@ -0,0 +1,23 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Bidirectional Text Test 2 - Formatting Characters</title>
|
||||
<style>
|
||||
p { font-family: monospace; text-align: left; }
|
||||
</style>
|
||||
</head>
|
||||
<!-- Testcases based on http://dbaron.org/css/test/bidi2_charcode by L. David Baron. -->
|
||||
<body>
|
||||
<p>The following lines should all read "ABCDEFGHI":</p>
|
||||
<p>ABCDEFGHI</p>
|
||||
<p dir="rtl">‫ABCDEFGHI‬</p>
|
||||
<p dir="rtl">‫ABC<span>DEF</span>GHI‬</p>
|
||||
<p dir="rtl">‮IHGFEDCBA‬</p>
|
||||
<p dir="rtl">‮IHG<span>FED</span>CBA‬</p>
|
||||
<p dir="rtl">‮IHG‫DEF‬CBA‬</p>
|
||||
<p dir="rtl">‮IHG‮FED‬CBA‬</p>
|
||||
<p dir="rtl">‮IHG‮FED‬CBA‬</p>
|
||||
<p dir="rtl">‮IHG‭DEF‬CBA‬</p>
|
||||
</body>
|
||||
</html>
|
31
layout/reftests/bidi/83958-1b.html
Normal file
31
layout/reftests/bidi/83958-1b.html
Normal file
@ -0,0 +1,31 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Bidirectional Text Test 2 - CSS</title>
|
||||
<style>
|
||||
p { font-family: monospace; text-align: left; }
|
||||
.rtl { direction: rtl; }
|
||||
.ltr { direction: ltr; }
|
||||
.rle { direction: rtl; unicode-bidi: embed; }
|
||||
.lre { direction: ltr; unicode-bidi: embed; }
|
||||
.rlo { direction: rtl; unicode-bidi: bidi-override; }
|
||||
.lro { direction: ltr; unicode-bidi: bidi-override; }
|
||||
.embed { unicode-bidi: embed; }
|
||||
.override { unicode-bidi: bidi-override; }
|
||||
</style>
|
||||
</head>
|
||||
<!-- Testcases based on http://dbaron.org/css/test/bidi2 by L. David Baron. -->
|
||||
<body>
|
||||
<p>The following lines should all read "ABCDEFGHI":</p>
|
||||
<p>ABCDEFGHI</p>
|
||||
<p class="rtl">ABCDEFGHI</p>
|
||||
<p class="rtl">ABC<span>DEF</span>GHI</p>
|
||||
<p class="rlo">IHGFEDCBA</p>
|
||||
<p class="rlo">IHG<span>FED</span>CBA</p>
|
||||
<p class="rlo">IHG<span class="embed">DEF</span>CBA</p>
|
||||
<p class="rlo">IHG<span class="override">FED</span>CBA</p>
|
||||
<p class="rlo">IHG<span style="unicode-bidi: inherit">FED</span>CBA</p>
|
||||
<p class="rlo">IHG<span class="lro">DEF</span>CBA</p>
|
||||
</body>
|
||||
</html>
|
31
layout/reftests/bidi/83958-1c.html
Normal file
31
layout/reftests/bidi/83958-1c.html
Normal file
@ -0,0 +1,31 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Bidirectional Text Test 2 - HTML</title>
|
||||
<style>
|
||||
p { font-family: monospace; text-align: left; }
|
||||
.rtl { direction: rtl; }
|
||||
.ltr { direction: ltr; }
|
||||
.rle { direction: rtl; unicode-bidi: embed; }
|
||||
.lre { direction: ltr; unicode-bidi: embed; }
|
||||
.rlo { direction: rtl; unicode-bidi: bidi-override;}
|
||||
.lro { direction: ltr; unicode-bidi: bidi-override; }
|
||||
.embed { unicode-bidi: embed; }
|
||||
.override { unicode-bidi: bidi-override; }
|
||||
</style>
|
||||
</head>
|
||||
<!-- Testcases based on http://dbaron.org/css/test/bidi2_html by L. David Baron. -->
|
||||
<body>
|
||||
<p>The following lines should all read "ABCDEFGHI":</p>
|
||||
<p>ABCDEFGHI</p>
|
||||
<p class="rtl">ABCDEFGHI</p>
|
||||
<p class="rtl">ABC<span>DEF</span>GHI</p>
|
||||
<p class="rlo">IHGFEDCBA</p>
|
||||
<p class="rlo">IHG<span>FED</span>CBA</p>
|
||||
<p class="rlo">IHG<span dir="rtl">DEF</span>CBA</p>
|
||||
<p class="rlo">IHG<bdo dir="rtl">FED</bdo>CBA</p>
|
||||
<p class="rlo">IHG<span style="unicode-bidi: inherit">FED</span>CBA</p>
|
||||
<p class="rlo">IHG<bdo dir="ltr">DEF</bdo>CBA</p>
|
||||
</body>
|
||||
</html>
|
28
layout/reftests/bidi/83958-2-ref.html
Normal file
28
layout/reftests/bidi/83958-2-ref.html
Normal file
@ -0,0 +1,28 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Bidirectional Text Test 2</title>
|
||||
<style>
|
||||
p { font-family: monospace; direction: ltr; unicode-bidi: bidi-override;}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>גבא</p>
|
||||
<p>גבא</p>
|
||||
<p>אבג</p>
|
||||
<p>גבא ABC והד</p>
|
||||
<p>והד ABC גבא</p>
|
||||
<p>גבא ABC והד DEF טחז</p>
|
||||
<p>גבא ABC והד DEF טחז</p>
|
||||
<p>גבא ABC והד DEF טחז</p>
|
||||
<p>טחז DEF והד ABC גבא</p>
|
||||
<p>והד ABC גבא DEF טחז</p>
|
||||
<p>והד CBA גבא DEF טחז</p>
|
||||
<p>גבא ABC דהו DEF טחז</p>
|
||||
<p>טחז ABC דהו DEF גבא</p>
|
||||
<p>גבא ABC והד DEF GHI טחז</p>
|
||||
<p>FED והד CBA גבא GHI טחז</p>
|
||||
<p>גבא ABC FED והד GHI טחז</p>
|
||||
</body>
|
||||
</html>
|
29
layout/reftests/bidi/83958-2a.html
Normal file
29
layout/reftests/bidi/83958-2a.html
Normal file
@ -0,0 +1,29 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Bidirectional Text Test 2 - Formatting Characters</title>
|
||||
<style>
|
||||
p { font-family: monospace; text-align: left; }
|
||||
</style>
|
||||
</head>
|
||||
<!-- Testcases based on http://dbaron.org/css/test/bidi2_charcode by L. David Baron. -->
|
||||
<body>
|
||||
<p>אבג</p>
|
||||
<p>‪אבג‬</p>
|
||||
<p>‭אבג‬</p>
|
||||
<p>אבג ABC דהו</p>
|
||||
<p dir="rtl">אבג ABC דהו</p>
|
||||
<p>אבג ABC דהו DEF זחט</p>
|
||||
<p>אבג <span>ABC דהו</span> DEF זחט</p>
|
||||
<p>אבג ‪ABC דהו DEF‬ זחט</p>
|
||||
<p>אבג ‫ABC דהו DEF‬ זחט</p>
|
||||
<p>אבג ‫ABC דהו‬ DEF זחט</p>
|
||||
<p>אבג ‮ABC דהו‬ DEF זחט</p>
|
||||
<p>אבג ‭ABC דהו‬ DEF זחט</p>
|
||||
<p dir="rtl">אבג ‭ABC דהו‬ DEF זחט</p>
|
||||
<p>אבג ABC דהו DEF GHI זחט</p>
|
||||
<p>אבג ‮ABC דהו DEF‬ GHI זחט</p>
|
||||
<p>אבג ABC ‮דהו DEF‬ GHI זחט</p>
|
||||
</body>
|
||||
</html>
|
33
layout/reftests/bidi/83958-2b.html
Normal file
33
layout/reftests/bidi/83958-2b.html
Normal file
@ -0,0 +1,33 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Bidirectional Text Test 2 - CSS</title>
|
||||
<style>
|
||||
p { font-family: monospace; text-align: left; }
|
||||
.embed { unicode-bidi: embed; }
|
||||
.override { unicode-bidi: bidi-override; }
|
||||
.rtl { direction: rtl; }
|
||||
.ltr { direction: ltr; }
|
||||
</style>
|
||||
</head>
|
||||
<!-- Testcases based on http://dbaron.org/css/test/bidi2 by L. David Baron. -->
|
||||
<body>
|
||||
<p>אבג</p>
|
||||
<p class="embed">אבג</p>
|
||||
<p class="override">אבג</p>
|
||||
<p>אבג ABC דהו</p>
|
||||
<p class="rtl">אבג ABC דהו</p>
|
||||
<p>אבג ABC דהו DEF זחט</p>
|
||||
<p>אבג <span>ABC דהו</span> DEF זחט</p>
|
||||
<p>אבג <span class="ltr embed">ABC דהו DEF</span> זחט</p>
|
||||
<p>אבג <span class="rtl embed">ABC דהו DEF</span> זחט</p>
|
||||
<p>אבג <span class="rtl embed">ABC דהו</span> DEF זחט</p>
|
||||
<p>אבג <span class="rtl override">ABC דהו</span> DEF זחט</p>
|
||||
<p>אבג <span class="ltr override">ABC דהו</span> DEF זחט</p>
|
||||
<p class="rtl">אבג <span class="ltr override">ABC דהו</span> DEF זחט</p>
|
||||
<p>אבג ABC דהו DEF GHI זחט</p>
|
||||
<p>אבג <span class="rtl override">ABC דהו DEF</span> GHI זחט</p>
|
||||
<p>אבג ABC <span class="rtl override">דהו DEF</span> GHI זחט</p>
|
||||
</body>
|
||||
</html>
|
33
layout/reftests/bidi/83958-2c.html
Normal file
33
layout/reftests/bidi/83958-2c.html
Normal file
@ -0,0 +1,33 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Bidirectional Text Test 2 - HTML</title>
|
||||
<style>
|
||||
p { font-family: monospace; text-align: left; }
|
||||
.embed { unicode-bidi: embed; }
|
||||
.override { unicode-bidi: bidi-override; }
|
||||
.rtl { direction: rtl; }
|
||||
.ltr { direction: ltr; }
|
||||
</style>
|
||||
</head>
|
||||
<!-- Testcases based on http://dbaron.org/css/test/bidi2_html by L. David Baron. -->
|
||||
<body>
|
||||
<p>אבג</p>
|
||||
<p class="embed">אבג</p>
|
||||
<p class="override">אבג</p>
|
||||
<p>אבג ABC דהו</p>
|
||||
<p class="rtl">אבג ABC דהו</p>
|
||||
<p>אבג ABC דהו DEF זחט</p>
|
||||
<p>אבג <span>ABC דהו</span> DEF זחט</p>
|
||||
<p>אבג <span dir="ltr">ABC דהו DEF</span> זחט</p>
|
||||
<p>אבג <span dir="rtl">ABC דהו DEF</span> זחט</p>
|
||||
<p>אבג <span dir="rtl">ABC דהו</span> DEF זחט</p>
|
||||
<p>אבג <bdo dir="rtl">ABC דהו</bdo> DEF זחט</p>
|
||||
<p>אבג <bdo dir="ltr">ABC דהו</bdo> DEF זחט</p>
|
||||
<p class="rtl">אבג <bdo dir="ltr">ABC דהו</bdo> DEF זחט</p>
|
||||
<p>אבג ABC דהו DEF GHI זחט</p>
|
||||
<p>אבג <bdo dir="rtl">ABC דהו DEF</bdo> GHI זחט</p>
|
||||
<p>אבג ABC <bdo dir="rtl">דהו DEF</bdo> GHI זחט</p>
|
||||
</body>
|
||||
</html>
|
@ -33,6 +33,12 @@ random-if(cocoaWidget) == mirroring-02.html mirroring-02-ref.html
|
||||
== with-first-letter-1b.html with-first-letter-1-ref.html
|
||||
== with-first-letter-2a.html with-first-letter-2-ref.html
|
||||
== with-first-letter-2b.html with-first-letter-2-ref.html
|
||||
== 83958-1a.html 83958-1-ref.html
|
||||
== 83958-1b.html 83958-1-ref.html
|
||||
== 83958-1c.html 83958-1-ref.html
|
||||
== 83958-2a.html 83958-2-ref.html
|
||||
== 83958-2b.html 83958-2-ref.html
|
||||
== 83958-2c.html 83958-2-ref.html
|
||||
== 115921-1.html 115921-1-ref.html
|
||||
== 115921-2.html 115921-2-ref.html
|
||||
== 258928-1.html 258928-1-ref.html
|
||||
|
Loading…
Reference in New Issue
Block a user