1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/editor/reftests/spellcheck-contenteditable-focused-reframe.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,18 @@ 1.4 +<!DOCTYPE html> 1.5 +<html> 1.6 +<body> 1.7 + 1.8 + <div contenteditable id="testBox" onfocus="reframe(this);">blahblahblah</div> 1.9 + <script type="text/javascript"> 1.10 + function reframe(textbox) { 1.11 + textbox.style.display = "none"; 1.12 + textbox.style.display = ""; 1.13 + textbox.clientWidth; 1.14 + } 1.15 + //Adding focus to the textbox should trigger a spellcheck 1.16 + document.getElementById("testBox").focus(); 1.17 + document.getElementById("testBox").blur(); 1.18 + </script> 1.19 + 1.20 +</body> 1.21 +</html>