Tests for bug 229367 and bug 613157
authorSimon Montagu <smontagu@smontagu.org>
Mon, 11 Apr 2011 10:59:30 +0300
changeset 67831 f5ba8b30e6734eb3cefc69ab9d03d6766d8ac662
parent 67830 d8aa1caf822de5e6bd1d70fa98dac738a1453497
child 67832 71c1a795a43fba317dccbe1f5baa392a632bcc0b
push id1
push userroot
push dateTue, 26 Apr 2011 22:38:44 +0000
treeherdermozilla-beta@bfdb6e623a36 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs229367, 613157
milestone2.2a1pre
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Tests for bug 229367 and bug 613157
layout/reftests/bidi/229367-1-ref.html
layout/reftests/bidi/229367-1.html
layout/reftests/bidi/229367-2-ref.html
layout/reftests/bidi/229367-2.html
layout/reftests/bidi/229367-3-ref.html
layout/reftests/bidi/229367-3.html
layout/reftests/bidi/613157-1-ref.html
layout/reftests/bidi/613157-1.html
layout/reftests/bidi/613157-2-ref.html
layout/reftests/bidi/613157-2.html
layout/reftests/bidi/reftest.list
new file mode 100644
--- /dev/null
+++ b/layout/reftests/bidi/229367-1-ref.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<html>
+ <head>
+  <title>br-as-bidi-paragraph-break</title>
+  <meta charset="UTF-8">
+ </head>
+ <body>
+  <p>&#x05D0; --&gt;&lrm;<br>--&gt; &#x05D1;</p>
+ </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/bidi/229367-1.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<html>
+ <head>
+  <title>br-as-bidi-paragraph-break</title>
+  <meta charset="UTF-8">
+ </head>
+ <body>
+  <p>&#x05D0; --&gt;<br>--&gt; &#x05D1;</p>
+ </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/bidi/229367-2-ref.html
@@ -0,0 +1,43 @@
+<DOCTYPE html>
+<html DIR=RTL>
+ <head>
+  <meta charset=UTF-8>
+  <title>BIDI Layout Testing</title>
+ </head>
+ <body>
+  <h2>This is a testing for BiDi layout issues.</h2> 
+<br> 
+ 
+1 - No tag<br> 
+2 - SPAN<br> 
+3 - P<br> 
+4 - DIV<br> 
+
+<br> 
+<b>Test1: No space</b><br> 
+This is a testing for BiDi layout issues.&rlm;<br> 
+<span>This is a testing for BiDi layout issues.&rlm;<br></span> 
+<p>This is a testing for BiDi layout issues.&rlm;<br></p> 
+<div>This is a testing for BiDi layout issues.&rlm;<br></div> 
+<br><br> 
+<b>Test2: 3 spaces at the end</b><br> 
+This is a testing for BiDi layout issues.&rlm;&nbsp;&nbsp;&nbsp;<br> 
+<span>This is a testing for BiDi layout issues.&rlm;&nbsp;&nbsp;&nbsp;<br></span> 
+
+<p>This is a testing for BiDi layout issues.&rlm;&nbsp;&nbsp;&nbsp;<br></p> 
+<div>This is a testing for BiDi layout issues.&rlm;&nbsp;&nbsp;&nbsp;<br></div> 
+<br><br> 
+<b>Test3: 3 spaces at the beginning</b><br> 
+&nbsp;&nbsp;&nbsp;This is a testing for BiDi layout issues.&rlm;<br> 
+<span>&nbsp;&nbsp;&nbsp;This is a testing for BiDi layout issues.&rlm;<br></span> 
+<p>&nbsp;&nbsp;&nbsp;This is a testing for BiDi layout issues.&rlm;<br></p> 
+<div>&nbsp;&nbsp;&nbsp;This is a testing for BiDi layout issues.&rlm;<br></div> 
+<br><br> 
+
+<b>Test4: 3 spaces at the end and the beginning</b><br> 
+&nbsp;&nbsp;&nbsp;This is a testing for BiDi layout issues.&rlm;&nbsp;&nbsp;&nbsp;<br> 
+<span>&nbsp;&nbsp;&nbsp;This is a testing for BiDi layout issues.&rlm;&nbsp;&nbsp;&nbsp;<br></span> 
+<p>&nbsp;&nbsp;&nbsp;This is a testing for BiDi layout issues.&rlm;&nbsp;&nbsp;&nbsp;<br></p> 
+<div>&nbsp;&nbsp;&nbsp;This is a testing for BiDi layout issues.&rlm;&nbsp;&nbsp;&nbsp;<br></div> 
+ </body> 
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/bidi/229367-2.html
@@ -0,0 +1,43 @@
+<DOCTYPE html>
+<html DIR=RTL>
+ <head>
+  <meta charset=UTF-8>
+  <title>BIDI Layout Testing</title>
+ </head>
+ <body>
+  <h2>This is a testing for BiDi layout issues.</h2> 
+<br> 
+ 
+1 - No tag<br> 
+2 - SPAN<br> 
+3 - P<br> 
+4 - DIV<br> 
+
+<br> 
+<b>Test1: No space</b><br> 
+This is a testing for BiDi layout issues.<br> 
+<span>This is a testing for BiDi layout issues.<br></span> 
+<p>This is a testing for BiDi layout issues.<br></p> 
+<div>This is a testing for BiDi layout issues.<br></div> 
+<br><br> 
+<b>Test2: 3 spaces at the end</b><br> 
+This is a testing for BiDi layout issues.&nbsp;&nbsp;&nbsp;<br> 
+<span>This is a testing for BiDi layout issues.&nbsp;&nbsp;&nbsp;<br></span> 
+
+<p>This is a testing for BiDi layout issues.&nbsp;&nbsp;&nbsp;<br></p> 
+<div>This is a testing for BiDi layout issues.&nbsp;&nbsp;&nbsp;<br></div> 
+<br><br> 
+<b>Test3: 3 spaces at the beginning</b><br> 
+&nbsp;&nbsp;&nbsp;This is a testing for BiDi layout issues.<br> 
+<span>&nbsp;&nbsp;&nbsp;This is a testing for BiDi layout issues.<br></span> 
+<p>&nbsp;&nbsp;&nbsp;This is a testing for BiDi layout issues.<br></p> 
+<div>&nbsp;&nbsp;&nbsp;This is a testing for BiDi layout issues.<br></div> 
+<br><br> 
+
+<b>Test4: 3 spaces at the end and the beginning</b><br> 
+&nbsp;&nbsp;&nbsp;This is a testing for BiDi layout issues.&nbsp;&nbsp;&nbsp;<br> 
+<span>&nbsp;&nbsp;&nbsp;This is a testing for BiDi layout issues.&nbsp;&nbsp;&nbsp;<br></span> 
+<p>&nbsp;&nbsp;&nbsp;This is a testing for BiDi layout issues.&nbsp;&nbsp;&nbsp;<br></p> 
+<div>&nbsp;&nbsp;&nbsp;This is a testing for BiDi layout issues.&nbsp;&nbsp;&nbsp;<br></div> 
+ </body> 
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/bidi/229367-3-ref.html
@@ -0,0 +1,35 @@
+<DOCTYPE html>
+<!-- This tests that embeddings and overrides are preserved after <br> -->
+<html>
+ <head>
+  <meta charset=UTF-8>
+  <title>Bug 229367</title>
+  <style type="text/css">
+   p { margin: 0; text-align: left; }
+   p.er { unicode-bidi: embed; direction: rtl; }
+   p.ol { unicode-bidi: bidi-override; direction: ltr; }
+   p.or { unicode-bidi: bidi-override; direction: rtl; }
+  </style>
+ </head>
+ <body>
+  <p>במה מדליקין,</p>
+  <p>ובמה אין מדליקין?</p>
+  <p class="er">אין מדליקין לא בלכש, </p>
+  <p class="er">ולא בחוסן, </p>
+  <p class="er">ולא בכלך, </p>
+  <p class="er">ולא בפתילת האידן, </p>
+  <p class="ol">ולא בפתילת המדבר, </p>
+  <p class="ol">ולא בירוקה שעל פני המים.  </p>
+  <p class="ol">לא בזפת, </p>
+  <p class="or">ולא בשעווה, </p>
+  <p class="or">ולא בשמן קיק, </p>
+  <p class="or">ולא בשמן שריפה, </p>
+  <p class="or">ולא באליה, </p>
+  <p class="ol">ולא בחלב.  </p>
+  <p class="ol">נחום המדי אומר, </p>
+  <p class="er">מדליקין בחלב מבושל;</p>
+  <p class="er">וחכמים אומרים, </p>
+  <p>אחד מבושל ואחד שאינו מבושל,</p>
+  <p>אין מדליקין בו.</p>
+ </body> 
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/bidi/229367-3.html
@@ -0,0 +1,30 @@
+<DOCTYPE html>
+<!-- This tests that embeddings and overrides are preserved after <br> -->
+<html>
+ <head>
+  <meta charset=UTF-8>
+  <title>Bug 229367</title>
+ </head>
+ <body>
+  <div>במה מדליקין,<br>
+ובמה אין מדליקין?<br>
+<span style="unicode-bidi: embed; direction: rtl">אין מדליקין לא בלכש, <br>
+ולא בחוסן, <br>
+ולא בכלך, <br>
+ולא בפתילת האידן, <br>
+<span style="unicode-bidi: bidi-override; direction: ltr">ולא בפתילת המדבר, <br>
+ולא בירוקה שעל פני המים.  <br>
+לא בזפת, <br>
+<span style="unicode-bidi: bidi-override; direction: rtl">ולא בשעווה, <br>
+ולא בשמן קיק, <br>
+ולא בשמן שריפה, <br>
+ולא באליה, <br></span>
+ולא בחלב.  <br>
+נחום המדי אומר, <br></span>
+מדליקין בחלב מבושל; <br>
+וחכמים אומרים, <br></span>
+אחד מבושל ואחד שאינו מבושל,<br>
+אין מדליקין בו.
+  </div> 
+ </body> 
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/bidi/613157-1-ref.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<html>
+ <head>
+  <title>block-element-as-bidi-paragraph-break</title>
+  <meta charset="UTF-8">
+ </head>
+ <body>
+  <div>&#x05D0; --&gt;&lrm;<hr>--&gt; &#x05D1;</div>
+ </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/bidi/613157-1.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<html>
+ <head>
+  <title>block-element-as-bidi-paragraph-break</title>
+  <meta charset="UTF-8">
+ </head>
+ <body>
+  <div>&#x05D0; --&gt;<hr>--&gt; &#x05D1;</div>
+ </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/bidi/613157-2-ref.html
@@ -0,0 +1,10 @@
+<!DOCTYPE HTML>
+<html>
+ <head>
+  <meta charset="utf-8">
+  <title>Inline blocks shouldn't end the paragraph</title>
+ </head>
+ <body>
+  <p>&#x202e;אני אוהב--&gt; 4 xoferiF--&gt;8 ימים בשבוע</p>
+ </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/bidi/613157-2.html
@@ -0,0 +1,11 @@
+<!DOCTYPE HTML>
+<html>
+ <head>
+  <meta charset="utf-8">
+  <title>Inline blocks shouldn't end the paragraph</title>
+ </head>
+ <body>
+  <p><span dir="rtl">אני אוהב</span>--&gt;<span style="display: inline-block">Firefox 4&nbsp;</span>--&gt;8 ימים בשבוע
+  </p>
+ </body>
+</html>
--- a/layout/reftests/bidi/reftest.list
+++ b/layout/reftests/bidi/reftest.list
@@ -36,16 +36,19 @@ random-if(cocoaWidget) == mirroring-02.h
 == 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
+== 229367-1.html 229367-1-ref.html
+== 229367-2.html 229367-2-ref.html
+== 229367-3.html 229367-3-ref.html
 == 258928-1.html 258928-1-ref.html
 random-if(winWidget) == 267459-1.html 267459-1-ref.html # depends on windows version, see bug 590101
 == 267459-2.html 267459-2-ref.html
 == 299065-1.html 299065-1-ref.html
 random-if(winWidget) == 305643-1.html 305643-1-ref.html # depends on windows version, see bug 590101
 == 332655-1.html 332655-1-ref.html
 == 332655-2.html 332655-2-ref.html
 == 381279-1.html 381279-1-ref.html
@@ -64,8 +67,10 @@ fails-if(/^Windows\x20NT\x206\.1/.test(h
 == 503269-1.html 503269-1-ref.html
 == 503957-1.html 503957-1-ref.html
 == 525740-1.html 525740-1-ref.html
 == 536963-1.html 536963-1-ref.html
 == 588739-1.html 588739-ref.html
 == 588739-2.html 588739-ref.html
 == 588739-3.html 588739-ref.html
 == 612843-1.html 612843-1-ref.html
+== 613157-1.html 613157-1-ref.html
+== 613157-2.html 613157-2-ref.html