summaryrefslogtreecommitdiffstats
path: root/uriloader/exthandler/tests/mochitest/handlerApp.xhtml
blob: 83ba0d1a5490eea4b385fc21edb1fe2f13300124 (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
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <title>Pseudo Web Handler App</title>
  <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
</head>
<body onload="onLoad()">
Pseudo Web Handler App

<script class="testbody" type="text/javascript">
<![CDATA[
function onLoad() {

  // if we have a window.opener, this must be the windowContext
  // instance of this test.  check that we got the URI right and clean up.
  if (window.opener) {
    window.opener.is(location.search, 
                     "?uri=" + encodeURIComponent(window.opener.testURI), 
                     "uri passed to web-handler app");
    window.opener.SimpleTest.finish();
  } 

  window.close();
}
]]>
</script>

</body>
</html>