dom/xbl/test/file_bug591198_inner.html
author David Major <dmajor@mozilla.com>
Wed, 20 Dec 2017 09:07:46 -0500
changeset 448763 e9cfe039a796e2963a6d3e7d2a161b02cdbadcac
parent 179092 243259fda9aba5900ae1492c991a0e7a541a584d
permissions -rw-r--r--
Bug 1425906: Rename LINK to LINKER throughout the build system. r=glandium Windows linkers give special meaning to getenv("LINK"), which makes `export LINK=...` in mozconfigs do unexpected things.

<!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 =
      SpecialPowers.wrap(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>