Tests for bug 267459

This commit is contained in:
Simon Montagu 2010-02-23 01:41:14 -08:00
parent 572c7a7fc9
commit e38251afc0
5 changed files with 104 additions and 0 deletions

View File

@ -0,0 +1,24 @@
<!DOCTYPE html>
<html>
<head>
<title>Test unicode-bidi in form controls</title>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
</head>
<body>
<p dir="rtl">&#x202e;This paragraph should appear backwards&#x202c;</p>
<p>
<textarea rows="3" cols="80" dir="rtl" >&#x202e;This textarea should appear backwards&#x202c;</textarea><br>
<input type="text" size="80" dir="rtl" value="&#x202e;This input should appear backwards&#x202c;"><br>
<input type="button" dir="rtl" value="&#x202e;This button should appear backwards&#x202c;"><br>
<select dir="rtl" size="6">
<option selected>&#x202e;This&#x202c;</option>
<optgroup label="&#x202e;select&#x202c;">
<option>&#x202e;should&#x202c;</option>
<option>&#x202e;appear&#x202c;</option>
</optgroup>
<optgroup label="&#x202e;backwards&#x202c;">
<option>&#x202e;throughout&#x202c;</option>
</optgroup>
</select><br>
</body>
</html>

View File

@ -0,0 +1,30 @@
<!DOCTYPE html>
<html>
<head>
<title>Test unicode-bidi in form controls</title>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<style type="text/css">
.reversed {
direction: rtl;
unicode-bidi: bidi-override;
}
</style>
</head>
<body>
<p class="reversed">This paragraph should appear backwards</p>
<p>
<textarea class="reversed" rows="3" cols="80">This textarea should appear backwards</textarea><br>
<input class="reversed" type="text" size="80" value="This input should appear backwards"><br>
<input class="reversed" type="button" value="This button should appear backwards"><br>
<select size="6" class="reversed">
<option selected class="reversed">This</option>
<optgroup class="reversed" label="select">
<option class="reversed">should</option>
<option class="reversed">appear</option>
</optgroup>
<optgroup class="reversed" label="backwards">
<option class="reversed">throughout</option>
</optgroup>
</select><br>
</body>
</html>

View File

@ -0,0 +1,24 @@
<!DOCTYPE html>
<html>
<head>
<title>Test unicode-bidi in form controls</title>
<meta http-equiv="Content-type" content="text/html; charset=iso-8859-8-i">
</head>
<body>
<p>&#x202d;ôéñ÷ä æå àîåøä ìäéåú äôåëä&#x202c;</p>
<p>
<textarea rows="3" cols="80">ùåøä æå ìà àîåøä ìäéåú äôåëä</textarea><br>
<input type="text" size="80" value="ùåøä æå ìà àîåøä ìäéåú äôåëä"><br>
<input type="button" value="ùåøä æå ìà àîåøä ìäéåú äôåëä"><br>
<select size="6">
<option selected>ùåøåú</option>
<optgroup label="àìä">
<option>ìà</option>
<option>àîåøåú</option>
</optgroup>
<optgroup label="ìäéåú">
<option>äôåëåú</option>
</optgroup>
</select><br>
</body>
</html>

View File

@ -0,0 +1,24 @@
<!DOCTYPE html>
<html>
<head>
<title>Test unicode-bidi in form controls</title>
<meta http-equiv="Content-type" content="text/html; charset=iso-8859-8">
</head>
<body>
<p>ôéñ÷ä æå àîåøä ìäéåú äôåëä</p>
<p>
<textarea rows="3" cols="80">ùåøä æå ìà àîåøä ìäéåú äôåëä</textarea><br>
<input type="text" size="80" value="ùåøä æå ìà àîåøä ìäéåú äôåëä"><br>
<input type="button" value="ùåøä æå ìà àîåøä ìäéåú äôåëä"><br>
<select size="6">
<option selected>ùåøåú</option>
<optgroup label="àìä">
<option>ìà</option>
<option>àîåøåú</option>
</optgroup>
<optgroup label="ìäéåú">
<option>äôåëåú</option>
</optgroup>
</select><br>
</body>
</html>

View File

@ -28,6 +28,8 @@ random-if(MOZ_WIDGET_TOOLKIT=="gtk2") == mixedChartype-03-j.html mixedChartype-0
== 115921-1.html 115921-1-ref.html
== 115921-2.html 115921-2-ref.html
== 258928-1.html 258928-1-ref.html
== 267459-1.html 267459-1-ref.html
== 267459-2.html 267459-2-ref.html
== 299065-1.html 299065-1-ref.html
== 305643-1.html 305643-1-ref.html
== 332655-1.html 332655-1-ref.html