author Robert O'Callahan <>
Fri, 10 Jan 2014 16:03:25 +1300
changeset 180086 243259fda9aba5900ae1492c991a0e7a541a584d
parent 151257 content/xbl/test/test_bug591198.html@d134dbb62202fa527750efbd995fe6f84c84db23
child 229949 fada58fb0996a728440726b41ec8b7918a799e58
permissions -rw-r--r--
Bug 946065. Part 4: Move content/xbl to dom/ and flatten away 'src' directory. r=Ms2ger

  <title>Test for Bug 591198</title>
  <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css">
<body onload=";">
<a target="_blank" href="">Mozilla Bug 591198</a>
<iframe id=iframe></iframe>
<pre id="test">
<script class="testbody" type="text/javascript;version=1.8">


gen = runTest();

function runTest() {
  let iframe = $('iframe');
  window.addEventListener("message", function(e) {
  }, false);
  iframe.src = "file_bug591198_inner.html";
  let res = (yield);
  is(res.widths[0], res.widths[2], "binding was rendered");
  isnot(res.widths[0], res.widths[1], "binding was rendered");
  is(res.anonChildCount, 2, "correct number of anon children");

  iframe.src = "";
  let res = (yield);
  is(res.widths[0], res.widths[1], "binding was not rendered");
  isnot(res.widths[0], res.widths[2], "binding was not rendered");
  is("anonChildCount" in res, false, "no anon children");

  yield undefined;