editor/libeditor/tests/test_bug638596.html
author Ehsan Akhgari <ehsan@mozilla.com>
Mon, 18 Aug 2014 20:59:37 -0400
changeset 221858 8f48ab6499cfa2f071d8bb3c550884e94dbc7803
parent 210922 editor/libeditor/text/tests/test_bug638596.html@9f8c69149b7e1f82b49a92dec578fc213a6fd49c
child 456830 50d6fe2d0bca50837dd34eb4a79957885c55bffc
permissions -rw-r--r--
Bug 1055286 - Flatten editor/libeditor/text to editor/libeditor; r=poiru

<!DOCTYPE HTML>
<html>
<!--
https://bugzilla.mozilla.org/show_bug.cgi?id=638596
-->
<head>
  <title>Test for Bug 638596</title>
  <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
  <script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
</head>
<body>
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=638596">Mozilla Bug 638596</a>
<p id="display"></p>
<div id="content">
  <input type="password" style="font-size: 0">
</div>
<pre id="test">
<script type="application/javascript">

/** Test for Bug 638596 **/
SimpleTest.waitForExplicitFinish();
SimpleTest.waitForFocus(function() {
  var i = document.querySelector("input");
  i.focus();
  synthesizeKey("t", {});
  synthesizeKey("e", {});
  synthesizeKey("s", {});
  synthesizeKey("t", {});
  is(i.value, "test", "The correct value should be stored in the field");
  SimpleTest.finish();
});

</script>
</pre>
</body>
</html>