Wed, 31 Dec 2014 13:27:57 +0100
Ignore runtime configuration files generated during quality assurance.
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 fill() { |
michael@0 | 10 | var list = document.getElementById('list'); |
michael@0 | 11 | for (var i = 1; i != 6; i++) { |
michael@0 | 12 | list.appendItem("Item " + i, ""); |
michael@0 | 13 | } |
michael@0 | 14 | } |
michael@0 | 15 | |
michael@0 | 16 | function dotest() { |
michael@0 | 17 | fill(); |
michael@0 | 18 | var list = document.getElementById('list'); |
michael@0 | 19 | list.ensureIndexIsVisible(4); |
michael@0 | 20 | list.selectItem(list.getItemAtIndex(4)); |
michael@0 | 21 | setTimeout("document.documentElement.className = ''", 0); |
michael@0 | 22 | } |
michael@0 | 23 | |
michael@0 | 24 | window.addEventListener("load", dotest, false); |
michael@0 | 25 | |
michael@0 | 26 | </script> |
michael@0 | 27 | |
michael@0 | 28 | <listbox id="list" rows="3" seltype="single"> |
michael@0 | 29 | </listbox> |
michael@0 | 30 | |
michael@0 | 31 | </window> |