Adding test

This commit is contained in:
Boris Zbarsky 2009-06-12 22:03:11 -04:00
parent d874abb747
commit 57cd0d56c8
3 changed files with 57 additions and 0 deletions

View File

@ -0,0 +1,31 @@
<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" onload="boom();">
<hbox style="display: none;">
<bindings xmlns="http://www.mozilla.org/xbl">
<binding id="x">
<content><listitem xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"/></content>
</binding>
</bindings>
</hbox>
<script type="text/javascript">
function boom()
{
document.getElementById("b").style.MozBinding = "url('#x')";
// Flush layout.
document.documentElement.boxObject.height;
document.getElementById("listbox").removeChild(document.getElementById("c"));
}
</script>
<listbox id="listbox"><listitem/><listitem id="b"/><listitem id="c"/></listbox>
</window>

View File

@ -0,0 +1,24 @@
<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" onload="boom();">
<script type="text/javascript">
function boom()
{
var l = document.createElementNS("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul", "listitem");
l.style.display = "none";
var c = document.getElementById("c");
c.parentNode.insertBefore(l, c);
document.getElementById("listbox").removeChild(document.getElementById("c"));
}
</script>
<listbox id="listbox"><listitem/><listitem id="c"/></listbox>
</window>

View File

@ -51,3 +51,5 @@ load 470063-1.html
load 472189.xul
load 475133.html
load 495728-1.xul
load 432068-1.xul
load 432068-2.xul