1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/editor/reftests/input-text-notheme-onfocus-reframe.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,32 @@ 1.4 +<!DOCTYPE HTML> 1.5 +<html class="reftest-wait"> 1.6 +<head> 1.7 + <title>bug 536421</title> 1.8 + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 1.9 +<style> 1.10 +input { border:1px solid blue; } 1.11 +</style> 1.12 +</head> 1.13 +<body onload="doTest()"> 1.14 + <input value="test" id="textbox" onfocus="triggerBug();" type="text"> 1.15 + <script type="text/javascript"> 1.16 + function finishTest() 1.17 + { 1.18 + document.documentElement.removeAttribute("class"); 1.19 + } 1.20 + function triggerBug() 1.21 + { 1.22 + var t = document.getElementById("textbox"); 1.23 + t.style.display = "none"; 1.24 + document.body.offsetWidth; 1.25 + t.style.display = ""; 1.26 + finishTest(); 1.27 + } 1.28 + function doTest() 1.29 + { 1.30 + var t = document.getElementById("textbox"); 1.31 + t.focus(); 1.32 + } 1.33 + </script> 1.34 +</body> 1.35 +</html>