Bug 754292 - Make spellcheck-textarea-ref.html blur its contents so that we would test the right thing; r=roc

This commit is contained in:
Ehsan Akhgari 2012-05-11 11:39:38 -04:00
parent d464f06c02
commit d57d737946
4 changed files with 5 additions and 1 deletions

View File

@ -11,6 +11,7 @@
textbox.focus();
textbox.value = "blahblahblah";
textbox.selectionStart = textbox.selectionEnd = 0;
textbox.blur();
}, false);
</script>

View File

@ -11,6 +11,7 @@
}
//Adding focus to the textbox should trigger a spellcheck
document.getElementById("testBox").focus();
document.getElementById("testBox").blur();
</script>
</body>

View File

@ -6,7 +6,8 @@
<script type="text/javascript">
//Adding focus to the textbox should trigger a spellcheck
document.getElementById("testBox").focus();
document.getElementById("testBox").blur();
</script>
</body>
</html>
</html>

View File

@ -5,6 +5,7 @@
<script type="text/javascript">
var box = document.getElementsByTagName("textarea")[0];
box.focus(); //Bring the textbox into focus, triggering a spellcheck
box.blur(); //Blur in order to make things similar to other tests otherwise
</script>
</body>
</html>