2007-02-20 04:56:30 +03:00
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title>redirecting...</title>
|
|
|
|
|
2008-02-14 13:32:21 +03:00
|
|
|
<script type="text/javascript">
|
2011-10-06 18:51:03 +04:00
|
|
|
function redirect(aURL)
|
|
|
|
{
|
|
|
|
// We create a listener for this event in browser-test.js
|
|
|
|
// which will get picked up when specifying --chrome or --a11y
|
2014-03-21 08:00:00 +04:00
|
|
|
var event = new CustomEvent("contentEvent", {
|
|
|
|
bubbles: true,
|
|
|
|
detail: {
|
|
|
|
"data": aURL + location.search,
|
|
|
|
"type": "loadURI"
|
|
|
|
}
|
|
|
|
});
|
|
|
|
document.dispatchEvent(event);
|
2011-10-06 18:51:03 +04:00
|
|
|
}
|
|
|
|
|
2014-11-20 01:43:28 +03:00
|
|
|
function redirectToHarness()
|
|
|
|
{
|
2012-03-30 14:27:50 +04:00
|
|
|
redirect("chrome://mochikit/content/harness.xul");
|
|
|
|
}
|
2014-11-20 01:43:28 +03:00
|
|
|
|
|
|
|
function onLoad() {
|
|
|
|
// Wait for MozAfterPaint, since the listener in browser-test.js is not
|
|
|
|
// added until then.
|
|
|
|
window.addEventListener("MozAfterPaint", function testOnMozAfterPaint() {
|
|
|
|
window.removeEventListener("MozAfterPaint", testOnMozAfterPaint);
|
|
|
|
setTimeout(redirectToHarness, 0);
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
2007-02-20 04:56:30 +03:00
|
|
|
</script>
|
|
|
|
</head>
|
2012-03-30 14:27:50 +04:00
|
|
|
|
|
|
|
<body onload="onLoad();">
|
2007-02-20 04:56:30 +03:00
|
|
|
redirecting...
|
|
|
|
</body>
|
|
|
|
</html>
|