1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/base/tests/bug644428-1.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,19 @@ 1.4 +<!DOCTYPE html> 1.5 +<html> 1.6 + <head> 1.7 + <script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script> 1.8 + </head> 1.9 + <body onload="setupCaret()" spellcheck="false"> 1.10 + <div contenteditable>a<span>b</span>c </div> 1.11 + <script> 1.12 + function setupCaret() { 1.13 + var div = document.querySelector("div"); 1.14 + div.focus(); 1.15 + var sel = window.getSelection(); 1.16 + sel.collapse(div, 3); 1.17 + synthesizeKey("VK_BACK_SPACE", {}); 1.18 + synthesizeKey("VK_BACK_SPACE", {}); 1.19 + } 1.20 + </script> 1.21 + </body> 1.22 +</html>