Back to Chromium

Focus Selection Textarea

third_party/blink/web_tests/fast/forms/focus-selection-textarea.html

149.0.7827.21.0 KB
Original Source

<textarea> focus selection

This test checks whether the selection is restored, cleared, or set to the full range when using different ways to focus a text area. These results all match Mozilla. When running manually, please follow the steps below. In the test harness, the test runs automatically.

  1. Hit tab, only the word "SUCCESS" should be selected:FAILURE or SUCCESS
  2. Hit Ctrl-Option-J (or Alt-J on Windows), only the word "SUCCESS" should be selected:FAILURE or SUCCESS
  3. , only the word "SUCCESS" should be selected:FAILURE or SUCCESS
  4. Click in the input field, nothing should be selected:FAILURE and FAILURE
  5. Click this label, only the word "SUCCESS" should be selected:FAILURE or SUCCESS
  6. Hit Ctrl-Option-U (or Alt-U on Windows), only the word "SUCCESS" should be selected:FAILURE or SUCCESS
  7. , only the word "SUCCESS" should be selected:FAILURE or SUCCESS
  8. , only the word "SUCCESS" should be selected:FAILURE or SUCCESS
  9. Hit Ctrl-Option-I (or Alt-I on Windows), only the word "SUCCESS" should be selected:FAILURE or SUCCESS