mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Adding test
This commit is contained in:
parent
d874abb747
commit
57cd0d56c8
31
layout/xul/base/src/crashtests/432068-1.xul
Normal file
31
layout/xul/base/src/crashtests/432068-1.xul
Normal 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>
|
24
layout/xul/base/src/crashtests/432068-2.xul
Normal file
24
layout/xul/base/src/crashtests/432068-2.xul
Normal 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>
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user