editor/reftests/spellcheck-textarea-focused-notreadonly.html
author Matt Woodrow <mwoodrow@mozilla.com>
Wed, 29 Aug 2012 17:48:13 +1200
changeset 108379 074075d10fd8c650453d927f4770d37c1457ea67
parent 100018 2d5604335e1510838467005b1c0d9feb1de3160d
child 108411 d3f86e3a324043af516650186f801c7117fd12bb
permissions -rw-r--r--
Bug 539356 - Part 10 - Test changes required for DLBI. r=roc * * * [mq]: test-fixes

<!DOCTYPE html>
<html>
<body>

  <textarea id="testBox" style="padding:2px;" 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;
      textbox.blur();
    }, false);
  </script>

</body>
</html>