1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/base/tests/bug646382-2.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,21 @@ 1.4 +<html class="reftest-wait"> 1.5 + <head> 1.6 + <script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script> 1.7 + </head> 1.8 + <body onload="start()"> 1.9 + <textarea dir="rtl" onfocus="typeIntoMe()" style="-moz-appearance: none"></textarea> 1.10 + <script> 1.11 + function start() { 1.12 + document.querySelector("textarea").focus(); 1.13 + } 1.14 + function typeIntoMe() { 1.15 + setTimeout(function() { 1.16 + synthesizeKey("s", {}); 1.17 + synthesizeKey("VK_DOWN", {}); 1.18 + synthesizeKey("VK_DOWN", {}); 1.19 + document.documentElement.removeAttribute("class"); 1.20 + }, 0); 1.21 + } 1.22 + </script> 1.23 + </body> 1.24 +</html>