Wed, 31 Dec 2014 07:16:47 +0100
Revert simplistic fix pending revisit of Mozilla integration attempt.
michael@0 | 1 | <?xml version="1.0"?> |
michael@0 | 2 | |
michael@0 | 3 | <window id="list-testcase" title="Testcase" |
michael@0 | 4 | xmlns:html="http://www.w3.org/1999/xhtml" |
michael@0 | 5 | xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" |
michael@0 | 6 | class="reftest-wait"> |
michael@0 | 7 | |
michael@0 | 8 | <script> |
michael@0 | 9 | function dotest() { |
michael@0 | 10 | var list = document.getElementById('list'); |
michael@0 | 11 | list.ensureIndexIsVisible(4); |
michael@0 | 12 | setTimeout("document.documentElement.className = ''", 0); |
michael@0 | 13 | } |
michael@0 | 14 | |
michael@0 | 15 | window.addEventListener("load", dotest, false); |
michael@0 | 16 | |
michael@0 | 17 | </script> |
michael@0 | 18 | |
michael@0 | 19 | <listbox id="list" rows="3" seltype="single"> |
michael@0 | 20 | <listitem label="Item 1"/> |
michael@0 | 21 | <listitem label="Item 2"/> |
michael@0 | 22 | <listitem label="Item 3"/> |
michael@0 | 23 | <listitem label="Item 4"/> |
michael@0 | 24 | <listitem label="Item 5" selected="true"/> |
michael@0 | 25 | </listbox> |
michael@0 | 26 | |
michael@0 | 27 | </window> |