editor/reftests/spellcheck-textarea-focused-reframe.html
author Geoff Brown <gbrown@mozilla.com>
Tue, 18 Dec 2012 22:18:03 -0700
changeset 125609 f9e5c189ae6bb96424ee9a243c5238c747951810
parent 97887 af802c58e1cff447e0478a7f6fc6b900cd8f44f8
permissions -rw-r--r--
Bug 817235 - Make xpcshell tests work with sutAgent; r=jmaher

<!DOCTYPE html>
<html>
<body>

  <textarea id="testBox" onfocus="reframe(this);">blahblahblah</textarea>
  <script type="text/javascript">
    function reframe(textbox) {
      textbox.style.display = "none";
      textbox.style.display = "";
      textbox.clientWidth;
    }
    //Adding focus to the textbox should trigger a spellcheck
    document.getElementById("testBox").focus();
    document.getElementById("testBox").blur();
  </script>
  
</body>
</html>