layout/reftests/bugs/498228-1.xul

Thu, 15 Jan 2015 15:55:04 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 15:55:04 +0100
branch
TOR_BUG_9701
changeset 9
a63d609f5ebe
permissions
-rw-r--r--

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="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>

mercurial