content/xbl/test/file_bug591198_inner.html
author Nicholas Nethercote <nnethercote@mozilla.com>
Wed, 18 Jul 2012 17:38:10 -0700
changeset 105208 61d052e202c8ca786b42f7f9116c2619d5a45fe6
parent 53995 5ba6fb8ab3ab4ac7ac8f0bae0076f04fbee5a7b7
permissions -rw-r--r--
Bug 647367 - Sequester jshash.{h,cpp} in js/jsd/. r=luke.

<!DOCTYPE HTML>
<html>
  <head>
    <style>
      #b {
        -moz-binding: url("file_bug591198_xbl.xml#xbltest");
      }
      span {
        white-space: nowrap;
      }
    </style>
    <script>
function sendResults() {
  var res = {
    widths: []
  };

  ps = document.getElementsByTagName('span');
  for (var i = 0; i < ps.length; i++) {
    res.widths.push(ps[i].offsetWidth);
  }
  
  try {
    res.anonChildCount =
      document.getAnonymousNodes(document.getElementById('b')).length;
  }
  catch (ex) {}

  parent.postMessage(JSON.stringify(res), "*");
}
    </script>
  </head>
  <body onload="sendResults();">
    <div><span id=b>long long text here</span></div>
    <div><span>long long text here</span></div>
    <div><span>PASS</span></div>
  </body>
</html>