Re: [html-tests] Update select event tests for spec change and completeness (#4799)

# Chrome (unstable channel) #
Testing web-platform-tests at revision dc98b6234f744875bb95a94f423a73d26431d45d
Using browser at version 58.0.3004.3 dev
Starting 10 test iterations
All results were stable
## All results ##
<details>
<summary><a href="http://w3c-test.org/submissions/4799/html/semantics/forms/textfieldselection/textfieldselection-setRangeText.html">/html/semantics/forms/textfieldselection/textfieldselection-setRangeText.html</a></summary>


|                                                                                    Subtest                                                                                    | Results |
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------|
|                                                                                                                                                                               | OK      |
| `url selectionMode 'select'`                                                                                                                                                  | PASS    |
| `url selectionMode 'start'`                                                                                                                                                   | PASS    |
| `url selectionMode 'preserve'`                                                                                                                                                | PASS    |
| `password setRangeText with only one argument replaces the value between selectionStart and selectionEnd, otherwise replaces the value between 2nd and 3rd arguments`         | PASS    |
| `search setRangeText with only one argument replaces the value between selectionStart and selectionEnd, otherwise replaces the value between 2nd and 3rd arguments`           | PASS    |
| `url setRangeText without argument throws a type error`                                                                                                                       | PASS    |
| `display_none selectionMode 'start'`                                                                                                                                          | PASS    |
| `textarea setRangeText with only one argument replaces the value between selectionStart and selectionEnd, otherwise replaces the value between 2nd and 3rd arguments`         | PASS    |
| `tel selectionMode 'start'`                                                                                                                                                   | PASS    |
| `text selectionMode missing`                                                                                                                                                  | PASS    |
| `input_not_in_doc selectionMode 'end'`                                                                                                                                        | PASS    |
| `textarea setRangeText without argument throws a type error`                                                                                                                  | PASS    |
| `url selectionMode missing`                                                                                                                                                   | PASS    |
| `search selectionMode 'start'`                                                                                                                                                | PASS    |
| `search selectionMode 'preserve'`                                                                                                                                             | PASS    |
| `tel selectionMode 'preserve'`                                                                                                                                                | PASS    |
| `tel setRangeText with only one argument replaces the value between selectionStart and selectionEnd, otherwise replaces the value between 2nd and 3rd arguments`              | PASS    |
| `display_none setRangeText with 3rd argument greater than 2nd argument throws an IndexSizeError exception`                                                                    | PASS    |
| `password selectionMode 'end'`                                                                                                                                                | PASS    |
| `text selectionMode 'start'`                                                                                                                                                  | PASS    |
| `search selectionMode 'select'`                                                                                                                                               | PASS    |
| `search setRangeText without argument throws a type error`                                                                                                                    | PASS    |
| `textarea setRangeText with 3rd argument greater than 2nd argument throws an IndexSizeError exception`                                                                        | PASS    |
| `text setRangeText with 3rd argument greater than 2nd argument throws an IndexSizeError exception`                                                                            | PASS    |
| `textarea selectionMode 'start'`                                                                                                                                              | PASS    |
| `tel selectionMode 'select'`                                                                                                                                                  | PASS    |
| `textarea selectionMode 'select'`                                                                                                                                             | PASS    |
| `url setRangeText with only one argument replaces the value between selectionStart and selectionEnd, otherwise replaces the value between 2nd and 3rd arguments`              | PASS    |
| `password selectionMode 'preserve'`                                                                                                                                           | PASS    |
| `textarea selectionMode missing`                                                                                                                                              | PASS    |
| `tel setRangeText with 3rd argument greater than 2nd argument throws an IndexSizeError exception`                                                                             | PASS    |
| `display_none selectionMode 'select'`                                                                                                                                         | PASS    |
| `password selectionMode 'start'`                                                                                                                                              | PASS    |
| `display_none setRangeText without argument throws a type error`                                                                                                              | PASS    |
| `password selectionMode missing`                                                                                                                                              | PASS    |
| `search selectionMode missing`                                                                                                                                                | PASS    |
| `input_not_in_doc selectionMode 'select'`                                                                                                                                     | PASS    |
| `url selectionMode 'end'`                                                                                                                                                     | PASS    |
| `password setRangeText with 3rd argument greater than 2nd argument throws an IndexSizeError exception`                                                                        | PASS    |
| `input_not_in_doc setRangeText without argument throws a type error`                                                                                                          | PASS    |
| `input_not_in_doc selectionMode missing`                                                                                                                                      | PASS    |
| `password setRangeText without argument throws a type error`                                                                                                                  | PASS    |
| `display_none selectionMode missing`                                                                                                                                          | PASS    |
| `input_not_in_doc setRangeText with only one argument replaces the value between selectionStart and selectionEnd, otherwise replaces the value between 2nd and 3rd arguments` | PASS    |
| `input_not_in_doc setRangeText with 3rd argument greater than 2nd argument throws an IndexSizeError exception`                                                                | PASS    |
| `text setRangeText with only one argument replaces the value between selectionStart and selectionEnd, otherwise replaces the value between 2nd and 3rd arguments`             | PASS    |
| `text selectionMode 'select'`                                                                                                                                                 | PASS    |
| `display_none selectionMode 'end'`                                                                                                                                            | PASS    |
| `tel selectionMode 'end'`                                                                                                                                                     | PASS    |
| `text setRangeText without argument throws a type error`                                                                                                                      | PASS    |
| `display_none setRangeText with only one argument replaces the value between selectionStart and selectionEnd, otherwise replaces the value between 2nd and 3rd arguments`     | PASS    |
| `search selectionMode 'end'`                                                                                                                                                  | PASS    |
| `text selectionMode 'preserve'`                                                                                                                                               | PASS    |
| `password selectionMode 'select'`                                                                                                                                             | PASS    |
| `input_not_in_doc selectionMode 'start'`                                                                                                                                      | PASS    |
| `textarea selectionMode 'end'`                                                                                                                                                | PASS    |
| `input_not_in_doc selectionMode 'preserve'`                                                                                                                                   | PASS    |
| `search setRangeText with 3rd argument greater than 2nd argument throws an IndexSizeError exception`                                                                          | PASS    |
| `display_none selectionMode 'preserve'`                                                                                                                                       | PASS    |
| `url setRangeText with 3rd argument greater than 2nd argument throws an IndexSizeError exception`                                                                             | PASS    |
| `tel setRangeText without argument throws a type error`                                                                                                                       | PASS    |
| `textarea selectionMode 'preserve'`                                                                                                                                           | PASS    |
| `tel selectionMode missing`                                                                                                                                                   | PASS    |
| `text selectionMode 'end'`                                                                                                                                                    | PASS    |

</details>
<details>
<summary><a href="http://w3c-test.org/submissions/4799/html/semantics/forms/textfieldselection/select-event.html">/html/semantics/forms/textfieldselection/select-event.html</a></summary>


|                                     Subtest                                     | Results |
|---------------------------------------------------------------------------------|---------|
|                                                                                 | OK      |
| `input type tel: setSelectionRange()`                                           | PASS    |
| `input type tel: selectionEnd`                                                  | PASS    |
| `input type password: setRangeText() a second time (must not fire select)`      | FAIL    |
| `input type search: setSelectionRange()`                                        | PASS    |
| `input type text: setSelectionRange()`                                          | PASS    |
| `input type password: select()`                                                 | PASS    |
| `input type password: setRangeText()`                                           | PASS    |
| `input type text: select()`                                                     | PASS    |
| `textarea: selectionEnd a second time (must not fire select)`                   | FAIL    |
| `input type url: selectionEnd`                                                  | PASS    |
| `input type text: selectionDirection a second time (must not fire select)`      | FAIL    |
| `textarea: setRangeText()`                                                      | PASS    |
| `input type url: select() a second time (must not fire select)`                 | FAIL    |
| `input type text: select() a second time (must not fire select)`                | FAIL    |
| `input type search: selectionDirection a second time (must not fire select)`    | FAIL    |
| `input type url: selectionDirection a second time (must not fire select)`       | FAIL    |
| `input type search: selectionDirection`                                         | PASS    |
| `input type text: selectionEnd a second time (must not fire select)`            | FAIL    |
| `input type tel: selectionEnd a second time (must not fire select)`             | FAIL    |
| `textarea: selectionEnd`                                                        | PASS    |
| `input type search: setRangeText()`                                             | PASS    |
| `textarea: setRangeText() a second time (must not fire select)`                 | FAIL    |
| `input type url: selectionStart`                                                | PASS    |
| `input type text: selectionStart a second time (must not fire select)`          | FAIL    |
| `input type url: selectionEnd a second time (must not fire select)`             | FAIL    |
| `textarea: select()`                                                            | PASS    |
| `textarea: selectionDirection`                                                  | PASS    |
| `input type password: selectionStart a second time (must not fire select)`      | FAIL    |
| `textarea: setSelectionRange() a second time (must not fire select)`            | FAIL    |
| `input type password: selectionEnd a second time (must not fire select)`        | FAIL    |
| `input type text: setRangeText() a second time (must not fire select)`          | FAIL    |
| `input type password: selectionDirection a second time (must not fire select)`  | FAIL    |
| `input type tel: select() a second time (must not fire select)`                 | FAIL    |
| `input type password: setSelectionRange()`                                      | PASS    |
| `input type url: setSelectionRange()`                                           | PASS    |
| `textarea: setSelectionRange()`                                                 | PASS    |
| `input type tel: select()`                                                      | PASS    |
| `input type search: selectionStart`                                             | PASS    |
| `input type search: selectionEnd`                                               | PASS    |
| `input type url: selectionDirection`                                            | PASS    |
| `input type tel: selectionStart`                                                | PASS    |
| `input type tel: selectionDirection a second time (must not fire select)`       | FAIL    |
| `input type url: setRangeText()`                                                | PASS    |
| `input type search: select() a second time (must not fire select)`              | FAIL    |
| `input type search: select()`                                                   | PASS    |
| `input type url: selectionStart a second time (must not fire select)`           | FAIL    |
| `input type password: selectionStart`                                           | PASS    |
| `input type tel: selectionStart a second time (must not fire select)`           | FAIL    |
| `textarea: selectionStart`                                                      | PASS    |
| `textarea: select() a second time (must not fire select)`                       | FAIL    |
| `input type text: setRangeText()`                                               | PASS    |
| `input type password: select() a second time (must not fire select)`            | FAIL    |
| `input type password: selectionDirection`                                       | PASS    |
| `input type search: setRangeText() a second time (must not fire select)`        | FAIL    |
| `input type tel: setSelectionRange() a second time (must not fire select)`      | FAIL    |
| `input type text: selectionEnd`                                                 | PASS    |
| `input type text: selectionDirection`                                           | PASS    |
| `input type tel: selectionDirection`                                            | PASS    |
| `input type url: setRangeText() a second time (must not fire select)`           | FAIL    |
| `input type text: setSelectionRange() a second time (must not fire select)`     | FAIL    |
| `input type password: setSelectionRange() a second time (must not fire select)` | FAIL    |
| `input type search: selectionStart a second time (must not fire select)`        | FAIL    |
| `input type search: selectionEnd a second time (must not fire select)`          | FAIL    |
| `input type url: select()`                                                      | PASS    |
| `input type tel: setRangeText() a second time (must not fire select)`           | FAIL    |
| `input type tel: setRangeText()`                                                | PASS    |
| `input type search: setSelectionRange() a second time (must not fire select)`   | FAIL    |
| `input type password: selectionEnd`                                             | PASS    |
| `input type url: setSelectionRange() a second time (must not fire select)`      | FAIL    |
| `textarea: selectionStart a second time (must not fire select)`                 | FAIL    |
| `textarea: selectionDirection a second time (must not fire select)`             | FAIL    |
| `input type text: selectionStart`                                               | PASS    |

</details>
<details>
<summary><a href="http://w3c-test.org/submissions/4799/html/semantics/forms/textfieldselection/textfieldselection-setSelectionRange.html">/html/semantics/forms/textfieldselection/textfieldselection-setSelectionRange.html</a></summary>


|                               Subtest                                | Results |
|----------------------------------------------------------------------|---------|
|                                                                      | OK      |
| `textarea direction of setSelectionRange(0,1,"forward")`             | PASS    |
| `input setSelectionRange({},1)`                                      | PASS    |
| `textarea direction of setSelectionRange(0,1,"hoge")`                | FAIL    |
| `textarea direction of setSelectionRange(0,1,"none")`                | FAIL    |
| `textarea direction of setSelectionRange(0,1)`                       | FAIL    |
| `textarea setSelectionRange(null,1)`                                 | PASS    |
| `input setSelectionRange(null,1)`                                    | PASS    |
| `input setSelectionRange(true,1)`                                    | PASS    |
| `input setSelectionRange(2,2)`                                       | PASS    |
| `textarea setSelectionRange(0,textarea.value.length+1)`              | PASS    |
| `input direction of setSelectionRange(0,1)`                          | FAIL    |
| `textarea setSelectionRange([],1)`                                   | PASS    |
| `input setSelectionRange(undefined,1)`                               | PASS    |
| `input setSelectionRange(input.value.length+1,1)`                    | PASS    |
| `textarea setSelectionRange({},1)`                                   | PASS    |
| `input setSelectionRange(NaN,1)`                                     | PASS    |
| `textarea setSelectionRange(NaN,1)`                                  | PASS    |
| `input direction of setSelectionRange(0,1,"BACKWARD")`               | FAIL    |
| `input setSelectionRange fires a select event`                       | PASS    |
| `input setSelectionRange(1,-1)`                                      | FAIL    |
| `textarea setSelectionRange return void`                             | PASS    |
| `input setSelectionRange(-1,1)`                                      | FAIL    |
| `input setSelectionRange([],1)`                                      | PASS    |
| `input setSelectionRange(0,input.value.length+1)`                    | PASS    |
| `input setSelectionRange(0,1)`                                       | PASS    |
| `textarea direction of setSelectionRange(0,1,"BACKWARD")`            | FAIL    |
| `textarea setSelectionRange(0,1)`                                    | PASS    |
| `textarea setSelectionRange(2,2)`                                    | PASS    |
| `textarea setSelectionRange(2,1)`                                    | PASS    |
| `textarea typeof(input.setSelectionRange)'`                          | PASS    |
| `textarea setSelectionRange(undefined,1)`                            | PASS    |
| `input direction of setSelectionRange(0,1,"backward")`               | PASS    |
| `input typeof(input.setSelectionRange)'`                             | PASS    |
| `input direction of setSelectionRange(0,1,"forward")`                | PASS    |
| `textarea setSelectionRange("string",1)`                             | PASS    |
| `input direction of setSelectionRange(0,1,"none")`                   | FAIL    |
| `textarea direction of setSelectionRange(0,1,"backward")`            | PASS    |
| `input setSelectionRange(2,1)`                                       | PASS    |
| `test of textarea.setSelectionRange`                                 | PASS    |
| `test of input.setSelectionRange`                                    | PASS    |
| `textarea setSelectionRange(true,1)`                                 | PASS    |
| `input setSelectionRange return void`                                | PASS    |
| `input direction of setSelectionRange(0,1,"hoge")`                   | FAIL    |
| `input setSelectionRange(input.value.length+1,input.value.length+1)` | PASS    |
| `input setSelectionRange("string",1)`                                | PASS    |

</details>

View on GitHub: https://github.com/w3c/web-platform-tests/pull/4799#issuecomment-279092869

Received on Friday, 10 February 2017 23:18:04 UTC