Thu, 15 Jan 2015 15:55:04 +0100
Back out 97036ab72558 which inappropriately compared turds to third parties.
michael@0 | 1 | <?xml version="1.0"?> |
michael@0 | 2 | |
michael@0 | 3 | <window id="Test for bug 540247" title="Testcase" class="reftest-wait" |
michael@0 | 4 | xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> |
michael@0 | 5 | |
michael@0 | 6 | <script><![CDATA[ |
michael@0 | 7 | document.addEventListener("MozReftestInvalidate", runtest, false); |
michael@0 | 8 | |
michael@0 | 9 | function runtest() { |
michael@0 | 10 | // Make sure that the effects of the scroll are painted to the screen before |
michael@0 | 11 | // shrinking the size of the scrolled frame. |
michael@0 | 12 | window.addEventListener("MozAfterPaint", finish, false); |
michael@0 | 13 | var sbo = document.getElementById('s').boxObject. |
michael@0 | 14 | QueryInterface(Components.interfaces.nsIScrollBoxObject); |
michael@0 | 15 | sbo.scrollTo(0, 1000); |
michael@0 | 16 | } |
michael@0 | 17 | |
michael@0 | 18 | function finish() { |
michael@0 | 19 | document.getElementById('b').height = '100'; |
michael@0 | 20 | document.documentElement.className = ""; |
michael@0 | 21 | } |
michael@0 | 22 | ]]> |
michael@0 | 23 | </script> |
michael@0 | 24 | |
michael@0 | 25 | <scrollbox id="s" height="200" style="overflow: scroll;"> |
michael@0 | 26 | <vbox> |
michael@0 | 27 | <vbox height="150" width="200" style="background: red;" id="b"/> |
michael@0 | 28 | <vbox height="150" width="200" style="background: green;"/> |
michael@0 | 29 | <vbox height="150" width="200" style="background: blue;"/> |
michael@0 | 30 | <label value="a"/> |
michael@0 | 31 | </vbox> |
michael@0 | 32 | </scrollbox> |
michael@0 | 33 | |
michael@0 | 34 | </window> |