tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

password-delete-space.html (831B)


      1 <!DOCTYPE html>
      2 <title>Backspace with trailing white space in password field</title>
      3 <link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1400844">
      4 <link rel="help" href="https://html.spec.whatwg.org/multipage/#password-state-%28type=password%29">
      5 <link rel="author" href="mailto:xiaochengh@chromium.org">
      6 <script src="/resources/testharness.js"></script>
      7 <script src="/resources/testharnessreport.js"></script>
      8 <script src="/resources/testdriver.js"></script>
      9 <script src="/resources/testdriver-vendor.js"></script>
     10 
     11 <input id="target" type="password" value="   ">
     12 
     13 <script>
     14 promise_test(async () => {
     15  target.focus();
     16  target.selectionStart = 2;
     17  await test_driver.send_keys(target, '\uE003');
     18  assert_equals(target.value, "  ");
     19 }, "Backspace with trailing white space in password field");
     20 </script>