testing/mochitest/redirect.html

changeset 0
6474c204b198
equal deleted inserted replaced
-1:000000000000 0:4346d8a33dad
1 <html>
2 <head>
3 <title>redirecting...</title>
4
5 <script type="text/javascript">
6 function redirect(aURL)
7 {
8 // We create a listener for this event in browser-test.js
9 // which will get picked up when specifying --chrome or --a11y
10 var event = new CustomEvent("contentEvent", {
11 bubbles: true,
12 detail: {
13 "data": aURL + location.search,
14 "type": "loadURI"
15 }
16 });
17 document.dispatchEvent(event);
18 }
19
20 function onLoad() {
21 redirect("chrome://mochikit/content/harness.xul");
22 }
23 </script>
24 </head>
25
26 <body onload="onLoad();">
27 redirecting...
28 </body>
29 </html>

mercurial