editor/reftests/969773.html
author Chris H-C <chutten@mozilla.com>
Mon, 04 Jul 2016 11:16:05 -0400
changeset 312997 df28918fe2361f0b54ca9ce4773a29c4c0675d06
parent 167813 9009d48cb9c7bd1ed5e742e290979ae2f10667fe
permissions -rw-r--r--
bug 1218576 - Support remote accumulation via JS histograms. r=gfritzsche The JS histograms, too, need to dispatch their accumulations from child to parent. JSHistograms_Add now only supports histograms that are in gHistogramsMap or that were created in the parent process. After bug 1288745, maybe we'll be able to change this to be less convoluted. MozReview-Commit-ID: 3qTH89YKbGP

<!DOCTYPE html>
<html class="reftest-wait">
<head>
  <meta charset="utf-8">
  <title>Contenteditable Selection Test Case</title>
  <script>
    function runTests() {
      var editable = document.getElementById("editable");
      var text = document.getElementById("text");

      editable.focus();

      setTimeout(function () {
        editable.setAttribute("contenteditable", "false");
        text.focus();
        setTimeout(function () {
          document.body.offsetHeight;
          document.documentElement.removeAttribute('class');
        }, 0);
      }, 0);
    }
    document.addEventListener('MozReftestInvalidate', runTests, false);
  </script>
</head>
<body>
    <div id="editable" contenteditable="true" tabindex="0" spellcheck="false">This is a contenteditable.</div>
    <div id="text" tabindex="0">This is focusable text</div>
</body>
</html>