Bug 1450017 - Part III, Replace direction: rtl with localedir="rtl" in resizer reftests draft
authorTimothy Guan-tin Chien <timdream@gmail.com>
Tue, 10 Apr 2018 08:02:41 +0800
changeset 788002 fc8057d5cc848c3124984d0e57b704b8e2b7a04f
parent 788001 b13fd0712156008bc5d17288fcc0a9c867e2895e
child 788003 c8230db29d175e372eceade1ed73bc4c8c6197f8
push id107872
push usertimdream@gmail.com
push dateWed, 25 Apr 2018 20:44:34 +0000
bugs1450017
milestone61.0a1
Bug 1450017 - Part III, Replace direction: rtl with localedir="rtl" in resizer reftests This change would bring the tests closer to the real world scenario MozReview-Commit-ID: 9fslEo8w8Zi
layout/reftests/native-theme/resizer-bottomend-rtl.xul
layout/reftests/native-theme/resizer-bottomstart-rtl.xul
layout/reftests/xul/resizer-bottomend-rtl.xul
layout/reftests/xul/resizer-bottomstart-rtl.xul
--- a/layout/reftests/native-theme/resizer-bottomend-rtl.xul
+++ b/layout/reftests/native-theme/resizer-bottomend-rtl.xul
@@ -1,10 +1,10 @@
 <?xml version="1.0"?>
 <?xml-stylesheet href="chrome://global/skin" type="text/css"?>
 
 <window title="Resizer"
-        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
+        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" localedir="rtl">
   <hbox>
-    <resizer dir="bottomend" style="direction: rtl"/>
     <spacer flex="1"/>
+    <resizer dir="bottomend"/>
   </hbox>
 </window>
--- a/layout/reftests/native-theme/resizer-bottomstart-rtl.xul
+++ b/layout/reftests/native-theme/resizer-bottomstart-rtl.xul
@@ -1,10 +1,10 @@
 <?xml version="1.0"?>
 <?xml-stylesheet href="chrome://global/skin" type="text/css"?>
 
 <window title="Resizer"
-        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
+        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" localedir="rtl">
   <hbox>
-    <resizer dir="bottomstart" style="direction: rtl"/>
     <spacer flex="1"/>
+    <resizer dir="bottomstart"/>
   </hbox>
 </window>
--- a/layout/reftests/xul/resizer-bottomend-rtl.xul
+++ b/layout/reftests/xul/resizer-bottomend-rtl.xul
@@ -1,10 +1,10 @@
 <?xml version="1.0"?>
 <?xml-stylesheet href="chrome://global/skin" type="text/css"?>
 
 <window title="Resizer"
-        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
+        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" localedir="rtl">
   <hbox>
-    <resizer dir="bottomend" style="direction: rtl; -moz-appearance: none"/>
     <spacer flex="1"/>
+    <resizer dir="bottomend" style="-moz-appearance: none"/>
   </hbox>
 </window>
--- a/layout/reftests/xul/resizer-bottomstart-rtl.xul
+++ b/layout/reftests/xul/resizer-bottomstart-rtl.xul
@@ -1,10 +1,10 @@
 <?xml version="1.0"?>
 <?xml-stylesheet href="chrome://global/skin" type="text/css"?>
 
 <window title="Resizer"
-        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
+        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" localedir="rtl">
   <hbox>
-    <resizer dir="bottomstart" style="direction: rtl; -moz-appearance: none"/>
     <spacer flex="1"/>
+    <resizer dir="bottomstart" style="-moz-appearance: none"/>
   </hbox>
 </window>