gecko/testing/mochitest/redirect.html

24 lines
623 B
HTML

<html>
<head>
<title>redirecting...</title>
<script type="text/javascript">
function redirect(aURL)
{
// We create a listener for this event in browser-test.js
// which will get picked up when specifying --chrome or --a11y
var element = document.createEvent("datacontainerevent");
element.initEvent("contentEvent", true, false);
element.setData("data", aURL + location.search);
element.setData("type", "loadURI");
document.dispatchEvent(element);
}
redirect("chrome://mochikit/content/harness.xul");
</script>
</head>
<body>
redirecting...
</body>
</html>