editor/reftests/spellcheck-textarea-focused-notreadonly.html
author Aryeh Gregor <ayg@aryeh.name>
Thu, 03 May 2012 10:09:44 +0300
changeset 92964 42c372c2f7493b79f79c58150b5531d23e74ca61
parent 90157 layout/reftests/editor/spellcheck-textarea-focused-notreadonly.html@f7b3bfdcd4e42a8f2ca8ae4028f6ec898eca4f66
child 93836 af802c58e1cff447e0478a7f6fc6b900cd8f44f8
permissions -rw-r--r--
Bug 746915 part 2 - Move layout/reftests/editor/ to editor/reftests/; r=dbaron

<!DOCTYPE html>
<html>
<body>

  <textarea id="testBox" readonly></textarea>
  <script type="text/javascript">
    //Adding focus to the textbox should trigger a spellcheck
    var textbox = document.getElementById("testBox");
    addEventListener("load", function() {
      textbox.readOnly = false;
      textbox.focus();
      textbox.value = "blahblahblah";
      textbox.selectionStart = textbox.selectionEnd = 0;
    }, false);
  </script>

</body>
</html>