layout/base/tests/bug612271-ref.html
author Ehsan Akhgari <ehsan@mozilla.com>
Thu, 27 Jan 2011 00:26:33 -0500
changeset 61554 0fc69d3548fde1839bfe6e558f3d92b0f610500c
parent 58903 1655a76ea1880f530086c48b21f80ef93d190629
child 69392 7af9641c195dc88c8b96b0423425f41deca695be
permissions -rw-r--r--
Bug 629145 - Part 2: Fix incorrect assumptions about autofocus; r,a=roc autofocus element will be focused after the load event is fired. This patch changes the tests to focus the desired elements at the load event explicitly.

<!DOCTYPE HTML><html><head>
  <script type="text/javascript" src="/MochiKit/packed.js"></script>
  <script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
</head>
<body onload="document.querySelector('textarea').focus()">
  <textarea style="height: 200px; display: block;"
    >foo
</textarea>
  4 - 4
</body>
</html>