editor/reftests/969773.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/editor/reftests/969773.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,29 @@
     1.4 +<!DOCTYPE html>
     1.5 +<html class="reftest-wait">
     1.6 +<head>
     1.7 +  <meta charset="utf-8">
     1.8 +  <title>Contenteditable Selection Test Case</title>
     1.9 +  <script>
    1.10 +    function runTests() {
    1.11 +      var editable = document.getElementById("editable");
    1.12 +      var text = document.getElementById("text");
    1.13 +
    1.14 +      editable.focus();
    1.15 +
    1.16 +      setTimeout(function () {
    1.17 +        editable.setAttribute("contenteditable", "false");
    1.18 +        text.focus();
    1.19 +        setTimeout(function () {
    1.20 +          document.body.offsetHeight;
    1.21 +          document.documentElement.removeAttribute('class');
    1.22 +        }, 0);
    1.23 +      }, 0);
    1.24 +    }
    1.25 +    document.addEventListener('MozReftestInvalidate', runTests, false);
    1.26 +  </script>
    1.27 +</head>
    1.28 +<body>
    1.29 +    <div id="editable" contenteditable="true" tabindex="0" spellcheck="false">This is a contenteditable.</div>
    1.30 +    <div id="text" tabindex="0">This is focusable text</div>
    1.31 +</body>
    1.32 +</html>

mercurial