Blame dom/base/test/test_root_iframe.html

Packit f0b94e
Packit f0b94e
<html>
Packit f0b94e
Packit f0b94e
https://bugzilla.mozilla.org/show_bug.cgi?id=511084
Packit f0b94e
-->
Packit f0b94e
<head>
Packit f0b94e
  <meta charset="utf-8">
Packit f0b94e
  <title>Test for Bug 511084</title>
Packit f0b94e
  <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
Packit f0b94e
  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
Packit f0b94e
</head>
Packit f0b94e
<body>
Packit f0b94e
Mozilla Bug 511084
Packit f0b94e

<iframe></iframe>

Packit f0b94e
Packit f0b94e
Packit f0b94e
Packit f0b94e
  <script type="application/javascript">
Packit f0b94e
  /** Test for Bug 511084 **/
Packit f0b94e
  var doc = frames[0].document;
Packit f0b94e
  doc.replaceChild(doc.createElement("iframe"), doc.documentElement);
Packit f0b94e
  ok(frames[0][0] instanceof Window,
Packit f0b94e
     "Should have a subframe window for a root iframe");
Packit f0b94e
  </script>
Packit f0b94e
Packit f0b94e
</body>
Packit f0b94e
</html>