Bug 1450017 - Part II, Reftest for non-native-theme resizer
This set of tests, copied from native-theme resizer reftests, ensure
the style of non-native-theme resizer.
MozReview-Commit-ID: 52miLT8h7Xe
copy from layout/reftests/native-theme/blank-window.xul
copy to layout/reftests/xul/blank-window.xul
--- a/layout/reftests/xul/reftest.list
+++ b/layout/reftests/xul/reftest.list
@@ -73,8 +73,22 @@ fails == object-fit-fill-svg-006.xul obj
# bug 1218954.
skip == treecell-image-svg-1a.xul treecell-image-svg-1-ref.xul # bug 1218954
skip == treecell-image-svg-1b.xul treecell-image-svg-1-ref.xul # bug 1218954
== treechildren-padding-percent-1.xul treechildren-padding-percent-1-ref.xul
!= treetwisty-svg-context-paint-1-not-ref.xul treetwisty-svg-context-paint-1-ref.xul
test-pref(svg.context-properties.content.enabled,true) == treetwisty-svg-context-paint-1.xul treetwisty-svg-context-paint-1-ref.xul
+
+# resizer (non-native-themed)
+!= resizer-bottomend.xul blank-window.xul
+== resizer-bottomend.xul resizer-bottomright.xul
+!= resizer-bottomend.xul resizer-bottomend-rtl.xul
+!= resizer-bottomend-rtl.xul blank-window.xul
+== resizer-bottomend-rtl.xul resizer-bottomend-flipped.xul
+
+!= resizer-bottomstart.xul blank-window.xul
+== resizer-bottomstart.xul resizer-bottomleft.xul
+== resizer-bottomstart.xul resizer-left.xul
+!= resizer-bottomstart.xul resizer-bottomstart-rtl.xul
+!= resizer-bottomstart-rtl.xul blank-window.xul
+== resizer-bottomstart-rtl.xul resizer-bottomend.xul
copy from layout/reftests/native-theme/resizer-bottomend-flipped.xul
copy to layout/reftests/xul/resizer-bottomend-flipped.xul
--- a/layout/reftests/native-theme/resizer-bottomend-flipped.xul
+++ b/layout/reftests/xul/resizer-bottomend-flipped.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">
<hbox>
- <resizer dir="bottomend" style="-moz-transform: scaleX(-1)"/>
+ <resizer dir="bottomend" style="-moz-transform: scaleX(-1); -moz-appearance: none"/>
<spacer flex="1"/>
</hbox>
</window>
copy from layout/reftests/native-theme/resizer-bottomend-rtl.xul
copy to layout/reftests/xul/resizer-bottomend-rtl.xul
--- a/layout/reftests/native-theme/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">
<hbox>
- <resizer dir="bottomend" style="direction: rtl"/>
+ <resizer dir="bottomend" style="direction: rtl; -moz-appearance: none"/>
<spacer flex="1"/>
</hbox>
</window>
copy from layout/reftests/native-theme/resizer-bottomend.xul
copy to layout/reftests/xul/resizer-bottomend.xul
--- a/layout/reftests/native-theme/resizer-bottomend.xul
+++ b/layout/reftests/xul/resizer-bottomend.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">
<hbox>
- <resizer dir="bottomend"/>
+ <resizer dir="bottomend" style="-moz-appearance: none"/>
<spacer flex="1"/>
</hbox>
</window>
copy from layout/reftests/native-theme/resizer-bottomleft.xul
copy to layout/reftests/xul/resizer-bottomleft.xul
--- a/layout/reftests/native-theme/resizer-bottomleft.xul
+++ b/layout/reftests/xul/resizer-bottomleft.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">
<hbox>
- <resizer dir="bottomleft"/>
+ <resizer dir="bottomleft" style="-moz-appearance: none"/>
<spacer flex="1"/>
</hbox>
</window>
copy from layout/reftests/native-theme/resizer-bottomright.xul
copy to layout/reftests/xul/resizer-bottomright.xul
--- a/layout/reftests/native-theme/resizer-bottomright.xul
+++ b/layout/reftests/xul/resizer-bottomright.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">
<hbox>
- <resizer dir="bottomright"/>
+ <resizer dir="bottomright" style="-moz-appearance: none"/>
<spacer flex="1"/>
</hbox>
</window>
copy from layout/reftests/native-theme/resizer-bottomstart-rtl.xul
copy to layout/reftests/xul/resizer-bottomstart-rtl.xul
--- a/layout/reftests/native-theme/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">
<hbox>
- <resizer dir="bottomstart" style="direction: rtl"/>
+ <resizer dir="bottomstart" style="direction: rtl; -moz-appearance: none"/>
<spacer flex="1"/>
</hbox>
</window>
copy from layout/reftests/native-theme/resizer-bottomstart.xul
copy to layout/reftests/xul/resizer-bottomstart.xul
--- a/layout/reftests/native-theme/resizer-bottomstart.xul
+++ b/layout/reftests/xul/resizer-bottomstart.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">
<hbox>
- <resizer dir="bottomstart"/>
+ <resizer dir="bottomstart" style="-moz-appearance: none"/>
<spacer flex="1"/>
</hbox>
</window>
copy from layout/reftests/native-theme/resizer-left.xul
copy to layout/reftests/xul/resizer-left.xul
--- a/layout/reftests/native-theme/resizer-left.xul
+++ b/layout/reftests/xul/resizer-left.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">
<hbox>
- <resizer dir="left"/>
+ <resizer dir="left" style="-moz-appearance: none"/>
<spacer flex="1"/>
</hbox>
</window>