From 47bf01b6872895806fcfe21d34033ceb60d66492 Mon Sep 17 00:00:00 2001 From: Simon Montagu Date: Mon, 11 Apr 2011 10:59:30 +0300 Subject: [PATCH] Tests for bug 229367 and bug 613157 --- layout/reftests/bidi/229367-1-ref.html | 10 ++++++ layout/reftests/bidi/229367-1.html | 10 ++++++ layout/reftests/bidi/229367-2-ref.html | 43 ++++++++++++++++++++++++++ layout/reftests/bidi/229367-2.html | 43 ++++++++++++++++++++++++++ layout/reftests/bidi/229367-3-ref.html | 35 +++++++++++++++++++++ layout/reftests/bidi/229367-3.html | 30 ++++++++++++++++++ layout/reftests/bidi/613157-1-ref.html | 10 ++++++ layout/reftests/bidi/613157-1.html | 10 ++++++ layout/reftests/bidi/613157-2-ref.html | 10 ++++++ layout/reftests/bidi/613157-2.html | 11 +++++++ layout/reftests/bidi/reftest.list | 5 +++ 11 files changed, 217 insertions(+) create mode 100644 layout/reftests/bidi/229367-1-ref.html create mode 100644 layout/reftests/bidi/229367-1.html create mode 100644 layout/reftests/bidi/229367-2-ref.html create mode 100644 layout/reftests/bidi/229367-2.html create mode 100644 layout/reftests/bidi/229367-3-ref.html create mode 100644 layout/reftests/bidi/229367-3.html create mode 100644 layout/reftests/bidi/613157-1-ref.html create mode 100644 layout/reftests/bidi/613157-1.html create mode 100644 layout/reftests/bidi/613157-2-ref.html create mode 100644 layout/reftests/bidi/613157-2.html diff --git a/layout/reftests/bidi/229367-1-ref.html b/layout/reftests/bidi/229367-1-ref.html new file mode 100644 index 00000000000..5e30c4a7ec3 --- /dev/null +++ b/layout/reftests/bidi/229367-1-ref.html @@ -0,0 +1,10 @@ + + + + br-as-bidi-paragraph-break + + + +

א -->‎
--> ב

+ + diff --git a/layout/reftests/bidi/229367-1.html b/layout/reftests/bidi/229367-1.html new file mode 100644 index 00000000000..079eb18c6b3 --- /dev/null +++ b/layout/reftests/bidi/229367-1.html @@ -0,0 +1,10 @@ + + + + br-as-bidi-paragraph-break + + + +

א -->
--> ב

+ + diff --git a/layout/reftests/bidi/229367-2-ref.html b/layout/reftests/bidi/229367-2-ref.html new file mode 100644 index 00000000000..5d8b606c439 --- /dev/null +++ b/layout/reftests/bidi/229367-2-ref.html @@ -0,0 +1,43 @@ + + + + + BIDI Layout Testing + + +

This is a testing for BiDi layout issues.

+
+ +1 - No tag
+2 - SPAN
+3 - P
+4 - DIV
+ +
+Test1: No space
+This is a testing for BiDi layout issues.‏
+This is a testing for BiDi layout issues.‏
+

This is a testing for BiDi layout issues.‏

+
This is a testing for BiDi layout issues.‏
+

+Test2: 3 spaces at the end
+This is a testing for BiDi layout issues.‏   
+This is a testing for BiDi layout issues.‏   
+ +

This is a testing for BiDi layout issues.‏   

+
This is a testing for BiDi layout issues.‏   
+

+Test3: 3 spaces at the beginning
+   This is a testing for BiDi layout issues.‏
+   This is a testing for BiDi layout issues.‏
+

   This is a testing for BiDi layout issues.‏

+
   This is a testing for BiDi layout issues.‏
+

+ +Test4: 3 spaces at the end and the beginning
+   This is a testing for BiDi layout issues.‏   
+   This is a testing for BiDi layout issues.‏   
+

   This is a testing for BiDi layout issues.‏   

+
   This is a testing for BiDi layout issues.‏   
+ + diff --git a/layout/reftests/bidi/229367-2.html b/layout/reftests/bidi/229367-2.html new file mode 100644 index 00000000000..5c7a2a97c52 --- /dev/null +++ b/layout/reftests/bidi/229367-2.html @@ -0,0 +1,43 @@ + + + + + BIDI Layout Testing + + +

This is a testing for BiDi layout issues.

+
+ +1 - No tag
+2 - SPAN
+3 - P
+4 - DIV
+ +
+Test1: No space
+This is a testing for BiDi layout issues.
+This is a testing for BiDi layout issues.
+

This is a testing for BiDi layout issues.

+
This is a testing for BiDi layout issues.
+

+Test2: 3 spaces at the end
+This is a testing for BiDi layout issues.   
+This is a testing for BiDi layout issues.   
+ +

This is a testing for BiDi layout issues.   

+
This is a testing for BiDi layout issues.   
+

+Test3: 3 spaces at the beginning
+   This is a testing for BiDi layout issues.
+   This is a testing for BiDi layout issues.
+

   This is a testing for BiDi layout issues.

+
   This is a testing for BiDi layout issues.
+

+ +Test4: 3 spaces at the end and the beginning
+   This is a testing for BiDi layout issues.   
+   This is a testing for BiDi layout issues.   
+

   This is a testing for BiDi layout issues.   

+
   This is a testing for BiDi layout issues.   
+ + diff --git a/layout/reftests/bidi/229367-3-ref.html b/layout/reftests/bidi/229367-3-ref.html new file mode 100644 index 00000000000..2f2baf913b6 --- /dev/null +++ b/layout/reftests/bidi/229367-3-ref.html @@ -0,0 +1,35 @@ + + + + + + Bug 229367 + + + +

במה מדליקין,

+

ובמה אין מדליקין?

+

אין מדליקין לא בלכש,

+

ולא בחוסן,

+

ולא בכלך,

+

ולא בפתילת האידן,

+

ולא בפתילת המדבר,

+

ולא בירוקה שעל פני המים.

+

לא בזפת,

+

ולא בשעווה,

+

ולא בשמן קיק,

+

ולא בשמן שריפה,

+

ולא באליה,

+

ולא בחלב.

+

נחום המדי אומר,

+

מדליקין בחלב מבושל;

+

וחכמים אומרים,

+

אחד מבושל ואחד שאינו מבושל,

+

אין מדליקין בו.

+ + diff --git a/layout/reftests/bidi/229367-3.html b/layout/reftests/bidi/229367-3.html new file mode 100644 index 00000000000..1ea70e3b1d6 --- /dev/null +++ b/layout/reftests/bidi/229367-3.html @@ -0,0 +1,30 @@ + + + + + + Bug 229367 + + +
במה מדליקין,
+ובמה אין מדליקין?
+אין מדליקין לא בלכש,
+ולא בחוסן,
+ולא בכלך,
+ולא בפתילת האידן,
+ולא בפתילת המדבר,
+ולא בירוקה שעל פני המים.
+לא בזפת,
+ולא בשעווה,
+ולא בשמן קיק,
+ולא בשמן שריפה,
+ולא באליה,
+ולא בחלב.
+נחום המדי אומר,
+מדליקין בחלב מבושל;
+וחכמים אומרים,
+אחד מבושל ואחד שאינו מבושל,
+אין מדליקין בו. +
+ + diff --git a/layout/reftests/bidi/613157-1-ref.html b/layout/reftests/bidi/613157-1-ref.html new file mode 100644 index 00000000000..38cc7d06295 --- /dev/null +++ b/layout/reftests/bidi/613157-1-ref.html @@ -0,0 +1,10 @@ + + + + block-element-as-bidi-paragraph-break + + + +
א -->‎
--> ב
+ + diff --git a/layout/reftests/bidi/613157-1.html b/layout/reftests/bidi/613157-1.html new file mode 100644 index 00000000000..63948990c9f --- /dev/null +++ b/layout/reftests/bidi/613157-1.html @@ -0,0 +1,10 @@ + + + + block-element-as-bidi-paragraph-break + + + +
א -->
--> ב
+ + diff --git a/layout/reftests/bidi/613157-2-ref.html b/layout/reftests/bidi/613157-2-ref.html new file mode 100644 index 00000000000..e5c64211ef3 --- /dev/null +++ b/layout/reftests/bidi/613157-2-ref.html @@ -0,0 +1,10 @@ + + + + + Inline blocks shouldn't end the paragraph + + +

‮אני אוהב--> 4 xoferiF-->8 ימים בשבוע

+ + diff --git a/layout/reftests/bidi/613157-2.html b/layout/reftests/bidi/613157-2.html new file mode 100644 index 00000000000..0d635f6f1fa --- /dev/null +++ b/layout/reftests/bidi/613157-2.html @@ -0,0 +1,11 @@ + + + + + Inline blocks shouldn't end the paragraph + + +

אני אוהב-->Firefox 4 -->8 ימים בשבוע +

+ + diff --git a/layout/reftests/bidi/reftest.list b/layout/reftests/bidi/reftest.list index a53549cb23a..c06172a56d2 100644 --- a/layout/reftests/bidi/reftest.list +++ b/layout/reftests/bidi/reftest.list @@ -43,6 +43,9 @@ random-if(cocoaWidget) == mirroring-02.html mirroring-02-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 fails-if(Android) == 267459-2.html 267459-2-ref.html # bug 650567 @@ -71,3 +74,5 @@ fails-if(Android) == 386339.html 386339-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