зеркало из https://github.com/mozilla/pjs.git
Add the first XBL crashtest
This commit is contained in:
Родитель
3bfb2dec16
Коммит
9660581ca8
|
@ -0,0 +1,37 @@
|
|||
<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-wait">
|
||||
<head>
|
||||
<script>
|
||||
|
||||
function boom1()
|
||||
{
|
||||
var c = document.getElementById("c");
|
||||
c.style.MozBinding = "url('#foo')";
|
||||
|
||||
setTimeout(boom2, 30);
|
||||
}
|
||||
|
||||
function boom2()
|
||||
{
|
||||
var v = document.getElementById("v");
|
||||
v.parentNode.removeChild(v);
|
||||
document.documentElement.removeAttribute("class");
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
<bindings xmlns="http://www.mozilla.org/xbl"><binding id="foo">
|
||||
<content>x x x x x <children/></content>
|
||||
</binding></bindings>
|
||||
|
||||
</head>
|
||||
|
||||
<body style="font-family: monospace; width: 10ch;" onload="setTimeout(boom1, 30);">
|
||||
|
||||
<div style="background: lightblue; border: 1px solid blue; margin-bottom: 1em;">
|
||||
<span id="c">y y<span id="v">Z<div/></span></span>
|
||||
</div>
|
||||
|
||||
<div style="background: lightgreen; border: 1px solid green; height: 2000px;">s</div>
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,27 @@
|
|||
<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-wait">
|
||||
<head>
|
||||
<script>
|
||||
|
||||
function boom()
|
||||
{
|
||||
var v = document.getElementById("v");
|
||||
v.parentNode.removeChild(v);
|
||||
document.documentElement.removeAttribute("class");
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
<bindings xmlns="http://www.mozilla.org/xbl"><binding id="foo">
|
||||
<content>x x x x x <children/></content>
|
||||
</binding></bindings>
|
||||
|
||||
</head>
|
||||
|
||||
<body onload="setTimeout(boom, 30);">
|
||||
|
||||
<div style="background: lightblue; border: 1px solid blue; width: 300px">
|
||||
<span style="-moz-binding: url(#foo);" >y y<span id="v">Z<div/></span></span>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,2 @@
|
|||
load 382376-1.xhtml
|
||||
load 382376-2.xhtml
|
|
@ -7,6 +7,7 @@ include ../../content/base/crashtests/crashtests.list
|
|||
include ../../content/html/document/crashtests/crashtests.list
|
||||
include ../../content/svg/content/src/crashtests/crashtests.list
|
||||
include ../../content/xml/document/crashtests/crashtests.list
|
||||
include ../../content/xbl/crashtests/crashtests.list
|
||||
include ../../content/xul/templates/src/crashtests/crashtests.list
|
||||
include ../../content/xul/content/crashtests/crashtests.list
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче