2007-03-22 10:30:00 -07:00
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title>redirecting...</title>
|
|
|
|
|
2008-02-14 02:32:21 -08:00
|
|
|
<script type="text/javascript">
|
2011-10-06 07:51:03 -07: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-20 21:00:00 -07:00
|
|
|
var event = new CustomEvent("contentEvent", {
|
|
|
|
bubbles: true,
|
|
|
|
detail: {
|
|
|
|
"data": aURL + location.search,
|
|
|
|
"type": "loadURI"
|
|
|
|
}
|
|
|
|
});
|
|
|
|
document.dispatchEvent(event);
|
2011-10-06 07:51:03 -07:00
|
|
|
}
|
|
|
|
|
2014-11-19 14:43:28 -08:00
|
|
|
function redirectToHarness()
|
|
|
|
{
|
2012-03-30 03:27:50 -07:00
|
|
|
redirect("chrome://mochikit/content/harness.xul");
|
|
|
|
}
|
2014-11-19 14:43:28 -08: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-03-22 10:30:00 -07:00
|
|
|
</script>
|
|
|
|
</head>
|
2012-03-30 03:27:50 -07:00
|
|
|
|
|
|
|
<body onload="onLoad();">
|
2007-03-22 10:30:00 -07:00
|
|
|
redirecting...
|
|
|
|
</body>
|
|
|
|
</html>
|