Add crashtests for XUL leak bugs

This commit is contained in:
Jesse Ruderman 2008-09-13 18:45:42 -07:00
Родитель fbbaa969b3
Коммит f4443040cf
3 изменённых файлов: 38 добавлений и 0 удалений

Просмотреть файл

@ -0,0 +1,15 @@
<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" onload="boom();">
<script type="text/javascript">
function boom()
{
var XUL_NS = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";
var wiz = document.createElementNS(XUL_NS, "wizard");
var btn = document.createElementNS(XUL_NS, "hbox");
btn.setAttribute("anonid", "Buttons");
wiz.appendChild(btn);
wiz.cloneNode(true);
}
</script>
</window>

Просмотреть файл

@ -0,0 +1,21 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script type="text/javascript">
<![CDATA[
function boom()
{
var XUL_NS = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";
var prefs = document.createElementNS(XUL_NS, "preferences");
var textbox = document.createElementNS(XUL_NS, "textbox");
textbox.setAttribute("onchange", "1");
prefs.appendChild(textbox);
prefs.cloneNode(true);
}
]]>
</script>
</head>
<body onload="boom();"></body>
</html>

Просмотреть файл

@ -7,3 +7,5 @@ load 354611-1.html
load 360078-1.xhtml
load 363791-1.xul
load 386947-1.xul
load 425821-1.xul
load 429085-1.xhtml