uriloader/exthandler/tests/mochitest/handlerApp.xhtml

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/uriloader/exthandler/tests/mochitest/handlerApp.xhtml	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,30 @@
     1.4 +<html xmlns="http://www.w3.org/1999/xhtml">
     1.5 +<head>
     1.6 +  <title>Pseudo Web Handler App</title>
     1.7 +  <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
     1.8 +  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
     1.9 +</head>
    1.10 +<body onload="onLoad()">
    1.11 +Pseudo Web Handler App
    1.12 +
    1.13 +<script class="testbody" type="text/javascript">
    1.14 +<![CDATA[
    1.15 +function onLoad() {
    1.16 +
    1.17 +  // if we have a window.opener, this must be the windowContext
    1.18 +  // instance of this test.  check that we got the URI right and clean up.
    1.19 +  if (window.opener) {
    1.20 +    window.opener.is(location.search, 
    1.21 +                     "?uri=" + encodeURIComponent(window.opener.testURI), 
    1.22 +                     "uri passed to web-handler app");
    1.23 +    window.opener.SimpleTest.finish();
    1.24 +  } 
    1.25 +
    1.26 +  window.close();
    1.27 +}
    1.28 +]]>
    1.29 +</script>
    1.30 +
    1.31 +</body>
    1.32 +</html>
    1.33 +

mercurial