mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 01:48:05 +00:00
Add crashtest
This commit is contained in:
parent
df8a455d3f
commit
ca67f9572c
29
layout/base/crashtests/412651-1-frame.xhtml
Normal file
29
layout/base/crashtests/412651-1-frame.xhtml
Normal file
@ -0,0 +1,29 @@
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
||||
|
||||
<head>
|
||||
|
||||
<style type="text/css" id="s"></style>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
function lo()
|
||||
{
|
||||
window.onerror = oe;
|
||||
setTimeout(function(){ location.reload(); }, 200);
|
||||
}
|
||||
|
||||
function oe(a,b,c)
|
||||
{
|
||||
document.getElementById("s").textContent = ".nosuch { color: red }";
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
</head>
|
||||
|
||||
<body onload="lo();">
|
||||
<xul:preference/>
|
||||
<xul:tabs/>
|
||||
</body>
|
||||
|
||||
</html>
|
21
layout/base/crashtests/412651-1.html
Normal file
21
layout/base/crashtests/412651-1.html
Normal file
@ -0,0 +1,21 @@
|
||||
<html class="reftest-wait">
|
||||
<head>
|
||||
<script type="text/javascript">
|
||||
|
||||
var childLoads = 0;
|
||||
function inc()
|
||||
{
|
||||
++childLoads;
|
||||
if (childLoads >= 2)
|
||||
document.documentElement.removeAttribute("class");
|
||||
}
|
||||
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<iframe src="412651-1-frame.xhtml" onload="inc();"></iframe>
|
||||
|
||||
</body>
|
||||
</html>
|
@ -107,3 +107,4 @@ load 409513.html
|
||||
load 409461-1.xhtml
|
||||
load 410967.html
|
||||
load 411870-1.html
|
||||
load 412651-1.html
|
||||
|
Loading…
Reference in New Issue
Block a user