summaryrefslogtreecommitdiffstats
path: root/netwerk/test/mochitests/test_idn_redirect.html
blob: cc920665b376a3f7c1421db9da03d60386237f33 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<!DOCTYPE HTML>
<html>
<!--
  Bug 1142083 - IDN Unicode domain redirect is broken
  This test loads redirectme.html which is redirected simple_test.html, on a different IDN domain.
  A message is posted to that page, with responds with another.
  Upon receiving that message, we consider that the IDN redirect has functioned properly, since the intended page was loaded.
-->
<head>
  <title>Test for URI Manipulation</title>
  <script src="/tests/SimpleTest/SimpleTest.js"></script>
  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
</head>
<body>

<pre id="test">
<script type="text/javascript">

SimpleTest.waitForExplicitFinish();

var iframe = document.createElement("iframe");
iframe.src = "about:blank";
iframe.addEventListener("load", finishTest);
document.body.appendChild(iframe);
iframe.src = "http://mochi.test:8888/tests/netwerk/test/mochitests/redirect_idn.html";

function finishTest(e) {
  ok(true);
  SimpleTest.finish();
}

</script>

</body>
</html>