editor/reftests/input-text-onfocus-reframe.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/editor/reftests/input-text-onfocus-reframe.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,29 @@
     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 +</head>
    1.10 +<body onload="doTest()">
    1.11 +  <input value="test" id="textbox" onfocus="triggerBug();" type="text">
    1.12 +  <script type="text/javascript">
    1.13 +    function finishTest()
    1.14 +    {
    1.15 +      document.documentElement.removeAttribute("class");
    1.16 +    }
    1.17 +    function triggerBug()
    1.18 +    {
    1.19 +      var t = document.getElementById("textbox");
    1.20 +      t.style.display = "none";
    1.21 +      document.body.offsetWidth;
    1.22 +      t.style.display = "";
    1.23 +      finishTest();
    1.24 +    }
    1.25 +    function doTest()
    1.26 +    {
    1.27 +      var t = document.getElementById("textbox");
    1.28 +      t.focus();
    1.29 +    }
    1.30 +  </script>
    1.31 +</body>
    1.32 +</html>

mercurial