dom/bindings/test/test_bug862092.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dom/bindings/test/test_bug862092.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,37 @@
     1.4 +<!DOCTYPE HTML>
     1.5 +<html>
     1.6 +<!--
     1.7 +https://bugzilla.mozilla.org/show_bug.cgi?id=862092
     1.8 +-->
     1.9 +<head>
    1.10 +  <meta charset="utf-8">
    1.11 +  <title>Test for Bug 862092</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 862092 **/
    1.17 +
    1.18 +  SimpleTest.waitForExplicitFinish();
    1.19 +  function runTest()
    1.20 +  {
    1.21 +    var frameDoc = document.getElementById("f").contentDocument;
    1.22 +    var a = document.createElement("select");
    1.23 +    a.expando = "test";
    1.24 +    a = frameDoc.adoptNode(a)
    1.25 +    is(a.expando, "test", "adoptNode needs to preserve expandos");
    1.26 +    SimpleTest.finish();
    1.27 +  }
    1.28 +
    1.29 +  </script>
    1.30 +</head>
    1.31 +<body onload="runTest();">
    1.32 +<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=862092">Mozilla Bug 862092</a>
    1.33 +<p id="display"></p>
    1.34 +<div id="content" style="display: none">
    1.35 +<iframe id="f"></iframe>
    1.36 +</div>
    1.37 +<pre id="test">
    1.38 +</pre>
    1.39 +</body>
    1.40 +</html>

mercurial