js/xpconnect/tests/mochitest/test_bug650273.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/js/xpconnect/tests/mochitest/test_bug650273.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,42 @@
     1.4 +<!DOCTYPE HTML>
     1.5 +<html>
     1.6 +<!--
     1.7 +https://bugzilla.mozilla.org/show_bug.cgi?id=650273
     1.8 +test by moz_bug_r_a4@yahoo.com
     1.9 +-->
    1.10 +<head>
    1.11 +  <title>Test for Bug 650273</title>
    1.12 +  <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
    1.13 +  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
    1.14 +</head>
    1.15 +<body>
    1.16 +<a target="_blank"
    1.17 +href="https://bugzilla.mozilla.org/show_bug.cgi?id=650273">Mozilla Bug 650273</a>
    1.18 +<p id="display"></p>
    1.19 +<div id="content" style="display: none">
    1.20 +  
    1.21 +</div>
    1.22 +<pre id="test">
    1.23 +<script type="application/javascript">
    1.24 +
    1.25 +/** Test for Bug 504877 **/
    1.26 +SimpleTest.waitForExplicitFinish();
    1.27 +var count = 0;
    1.28 +function done() {
    1.29 +    if (++count == 2) {
    1.30 +        try {
    1.31 +            ok($('ifr').location.host === 'example.com', "shouldn't see this");
    1.32 +        } catch (e) {
    1.33 +            ok(true, "navigation successfully happened");
    1.34 +        }
    1.35 +        SimpleTest.finish();
    1.36 +    }
    1.37 +}
    1.38 +
    1.39 +</script>
    1.40 +
    1.41 +<iframe id="ifr" src="file_bug650273.html" onload="done()"></iframe>
    1.42 +
    1.43 +</pre>
    1.44 +</body>
    1.45 +</html>

mercurial