1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/editor/reftests/spellcheck-textarea-focused-notreadonly.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,19 @@ 1.4 +<!DOCTYPE html> 1.5 +<html> 1.6 +<body> 1.7 + 1.8 + <textarea id="testBox" style="padding:2px;" readonly></textarea> 1.9 + <script type="text/javascript"> 1.10 + //Adding focus to the textbox should trigger a spellcheck 1.11 + var textbox = document.getElementById("testBox"); 1.12 + addEventListener("load", function() { 1.13 + textbox.readOnly = false; 1.14 + textbox.focus(); 1.15 + textbox.value = "blahblahblah"; 1.16 + textbox.selectionStart = textbox.selectionEnd = 0; 1.17 + textbox.blur(); 1.18 + }, false); 1.19 + </script> 1.20 + 1.21 +</body> 1.22 +</html>