1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/base/tests/bug682712-1-ref.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,24 @@ 1.4 +<html class="reftest-wait"> 1.5 + <head> 1.6 + <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 1.7 + </head> 1.8 + <body onload="start()"> 1.9 + <iframe src="data:text/html,<body contenteditable spellcheck=false>foo bar"></iframe> 1.10 + <script> 1.11 + function start() { 1.12 + var iframe = document.querySelector("iframe"); 1.13 + var win = iframe.contentWindow; 1.14 + var doc = iframe.contentDocument; 1.15 + 1.16 + setTimeout(function() { 1.17 + doc.body.focus(); 1.18 + 1.19 + // Now try to set the caret without moving it 1.20 + win.getSelection().collapse(doc.body.firstChild, 1); 1.21 + 1.22 + document.documentElement.removeAttribute("class"); 1.23 + }, 0); 1.24 + } 1.25 + </script> 1.26 + </body> 1.27 +</html>