bug 749658 - reftest for unwanted scroll-overflow due to cropped textbox label. r=roc

This commit is contained in:
Jonathan Kew 2012-05-01 11:06:47 +01:00
parent 4caeecec31
commit 3899208e5a
3 changed files with 21 additions and 0 deletions

View File

@ -1,3 +1,4 @@
== menuitem-key.xul menuitem-key-ref.xul
== menulist-shrinkwrap-1.xul menulist-shrinkwrap-1-ref.xul
fails-if(Android) fails-if(winWidget) == menulist-shrinkwrap-2.xul menulist-shrinkwrap-2-ref.xul
== textbox-overflow-1.xul textbox-overflow-1-ref.xul # for bug 749658

View File

@ -0,0 +1,10 @@
<?xml version="1.0"?>
<!-- bug 749658 - The cropped label should *not* cause a scroll bar to appear.
If it does, the scrollbars in the testcase and reference will differ
because the total scroll-overflow extent will be different. -->
<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" align="left">
<hbox width="150px" style="overflow: scroll">
<label value="A very long label for a small item"
width="120px" crop="right"/>
</hbox>
</window>

View File

@ -0,0 +1,10 @@
<?xml version="1.0"?>
<!-- bug 749658 - The cropped label should *not* cause a scroll bar to appear.
If it does, the scrollbars in the testcase and reference will differ
because the total scroll-overflow extent will be different. -->
<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" align="left">
<hbox width="150px" style="overflow: scroll">
<label value="A very long label for a small item that should not trigger a scroll bar"
width="120px" crop="right"/>
</hbox>
</window>