1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/base/tests/bug585922-ref.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,21 @@ 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 onload="doTest()"> 1.10 + <input type=text style="-moz-appearance: none"> 1.11 + <script> 1.12 + function doTest() { 1.13 + var d = document.querySelector("input"); 1.14 + d.value = "b"; 1.15 + d.focus(); 1.16 + var editor = SpecialPowers.wrap(d).QueryInterface(SpecialPowers.Ci.nsIDOMNSEditableElement).editor; 1.17 + var sel = editor.selection; 1.18 + var t = editor.rootElement.firstChild; 1.19 + sel.collapse(t, 1); // put the caret at the end of the textbox 1.20 + document.documentElement.removeAttribute("class"); 1.21 + } 1.22 + </script> 1.23 + </body> 1.24 +</html>