Add reftest for bug 677091.
authorL. David Baron <dbaron@dbaron.org>
Fri, 19 Aug 2011 15:02:49 -0700
changeset 75562 e09d10ebeaa8f2000bcd521cd5563e24dd321d5d
parent 75561 16e0d32eb59cdb87634911efacbcdb79dcde491f
child 75563 139eed687d7736857901d759b8cc3038e91d1685
push id1353
push userdbaron@mozilla.com
push dateFri, 19 Aug 2011 22:03:57 +0000
treeherdermozilla-inbound@139eed687d77 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs677091
milestone9.0a1
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
Add reftest for bug 677091. This tests a situation similar to the one in the preference dialog in bug 677091, though in this case the bug is exhibited by the label overflowing its container (an hbox with a background) rather than wrapping.
layout/xul/base/reftest/image-scaling-min-height-1-ref.xul
layout/xul/base/reftest/image-scaling-min-height-1.xul
layout/xul/base/reftest/reftest.list
new file mode 100644
--- /dev/null
+++ b/layout/xul/base/reftest/image-scaling-min-height-1-ref.xul
@@ -0,0 +1,14 @@
+<?xml version="1.0"?>
+<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
+        xmlns:html="http://www.w3.org/1999/xhtml">
+<html:style><![CDATA[
+
+window { -moz-box-align: start; -moz-box-pack: start }
+hbox { background: yellow }
+vbox { background: blue; width: 15px; height: 15px }
+
+]]></html:style>
+
+<hbox><vbox /><label value="a b c d e f" /></hbox>
+
+</window>
new file mode 100644
--- /dev/null
+++ b/layout/xul/base/reftest/image-scaling-min-height-1.xul
@@ -0,0 +1,14 @@
+<?xml version="1.0"?>
+<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
+        xmlns:html="http://www.w3.org/1999/xhtml">
+<html:style><![CDATA[
+
+window { -moz-box-align: start; -moz-box-pack: start }
+hbox { background: yellow }
+image { background: blue; min-width: 15px; min-height: 15px }
+
+]]></html:style>
+
+<hbox><image /><label value="a b c d e f" /></hbox>
+
+</window>
--- a/layout/xul/base/reftest/reftest.list
+++ b/layout/xul/base/reftest/reftest.list
@@ -1,4 +1,5 @@
 == textbox-multiline-noresize.xul textbox-multiline-ref.xul 
 != textbox-multiline-resize.xul textbox-multiline-ref.xul 
 == popup-explicit-size.xul popup-explicit-size-ref.xul
 == image-size.xul image-size-ref.xul
+== image-scaling-min-height-1.xul image-scaling-min-height-1-ref.xul