1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/base/tests/bug632215-2.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,28 @@ 1.4 +<!DOCTYPE html> 1.5 +<html class="reftest-wait"> 1.6 + <head> 1.7 + <script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script> 1.8 + </head> 1.9 + <body> 1.10 + <iframe src="data:text/html,<body contenteditable spellcheck=false></body>"></iframe> 1.11 + <script> 1.12 + onload = function() { 1.13 + var i = document.querySelector("iframe"); 1.14 + var d = i.contentDocument; 1.15 + var w = i.contentWindow; 1.16 + var s = w.getSelection(); 1.17 + i.focus(); 1.18 + d.body.contentEditable = false; 1.19 + d.designMode = "off"; 1.20 + d.designMode = "on"; 1.21 + d.body.focus(); 1.22 + synthesizeKey("x", {}); 1.23 + s.collapse(d.body.firstChild, 1); 1.24 + synthesizeKey("x", {}); 1.25 + setTimeout(function() { 1.26 + document.documentElement.removeAttribute("class"); 1.27 + }, 0); 1.28 + }; 1.29 + </script> 1.30 + </body> 1.31 +</html>