dom/bindings/test/test_bug707564.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dom/bindings/test/test_bug707564.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,43 @@
     1.4 +<!DOCTYPE HTML>
     1.5 +<html>
     1.6 +<!--
     1.7 +https://bugzilla.mozilla.org/show_bug.cgi?id=707564
     1.8 +-->
     1.9 +<head>
    1.10 +  <meta charset="utf-8">
    1.11 +  <title>Test for Bug 707564</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 +  <script type="application/javascript">
    1.15 +
    1.16 +  /** Test for Bug 707564 **/
    1.17 +  SimpleTest.waitForExplicitFinish();
    1.18 +
    1.19 +  addLoadEvent(function() {
    1.20 +    var props = Object.getOwnPropertyNames(frames[0].navigator);
    1.21 +    isnot(props.indexOf("mozApps"), -1,
    1.22 +          "Should enumerate a mozApps property on navigator");
    1.23 +
    1.24 +    // Now enumerate a different navigator object
    1.25 +    var found = false;
    1.26 +    for (var name in frames[1].navigator) {
    1.27 +      if (name == "mozApps") {
    1.28 +        found = true;
    1.29 +      }
    1.30 +    }
    1.31 +    ok(found, "Should enumerate a mozApps property on navigator via for...in");
    1.32 +    SimpleTest.finish();
    1.33 +  });
    1.34 +  </script>
    1.35 +</head>
    1.36 +<body>
    1.37 +<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=707564">Mozilla Bug 707564</a>
    1.38 +<p id="display"></p>
    1.39 +<div id="content" style="display: none">
    1.40 +<iframe></iframe>
    1.41 +<iframe></iframe>
    1.42 +</div>
    1.43 +<pre id="test">
    1.44 +</pre>
    1.45 +</body>
    1.46 +</html>

mercurial