layout/reftests/bugs/309914-1.xul

Wed, 31 Dec 2014 13:27:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 13:27:57 +0100
branch
TOR_BUG_3246
changeset 6
8bccb770b82d
permissions
-rw-r--r--

Ignore runtime configuration files generated during quality assurance.

michael@0 1 <?xml version="1.0"?>
michael@0 2 <?xml-stylesheet href="chrome://global/skin/global.css" type="text/css"?>
michael@0 3
michael@0 4 <window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
michael@0 5 class="reftest-wait">
michael@0 6
michael@0 7 <hbox style="display: none">
michael@0 8 <bindings id="testBindings" xmlns="http://www.mozilla.org/xbl"
michael@0 9 xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
michael@0 10
michael@0 11 <binding id="testBinding" >
michael@0 12 <content>
michael@0 13 <xul:label value="anon label"/>
michael@0 14 <children/>
michael@0 15 </content>
michael@0 16 </binding>
michael@0 17 </bindings>
michael@0 18 </hbox>
michael@0 19 <script>
michael@0 20 <![CDATA[
michael@0 21 var cont;
michael@0 22
michael@0 23 window.onload = function() {
michael@0 24 const XUL_NS = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";
michael@0 25 cont = document.getElementById("container");
michael@0 26
michael@0 27 for(var i=0; i<2; i++) {
michael@0 28 var item = document.createElementNS(XUL_NS, "button");
michael@0 29 cont.appendChild(item);
michael@0 30 item.label = i;
michael@0 31 }
michael@0 32
michael@0 33 document.documentElement.getBoundingClientRect();
michael@0 34
michael@0 35 var item = cont.firstChild;
michael@0 36 //alert(item.label);
michael@0 37 cont.insertBefore(item.nextSibling, item);
michael@0 38 document.documentElement.removeAttribute("class");
michael@0 39 }
michael@0 40 ]]>
michael@0 41 </script>
michael@0 42
michael@0 43 <hbox id="container" style="-moz-binding: url('#testBinding');"/>
michael@0 44
michael@0 45 </window>

mercurial