Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move assertions about the initial value of selection{Start,End} to their own tests. This ensures that when one of these assertions fails, it doesn't prevent other tests from being defined. Thus we have a clearer view of which tests are passing or failing, since all tests get defined regardless of which assertions fail.
- Loading branch information
1 parent
e61a4d0
commit f290cac
Showing
3 changed files
with
57 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
53 changes: 48 additions & 5 deletions
53
tests/wpt/metadata/html/semantics/forms/textfieldselection/selection-start-end.html.ini
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,60 @@ | ||
[selection-start-end.html] | ||
type: testharness | ||
[onselect should fire when selectionStart is changed] | ||
expected: TIMEOUT | ||
[Setting selectionStart to a value larger than selectionEnd should increase selectionEnd] | ||
expected: FAIL | ||
|
||
[onselect should fire when selectionEnd is changed] | ||
[Setting selectionEnd to a value smaller than selectionStart should decrease selectionStart] | ||
expected: FAIL | ||
|
||
[Setting selectionStart to a value larger than selectionEnd should increase selectionEnd] | ||
[selectionStart edge-case values] | ||
expected: FAIL | ||
|
||
[Setting selectionEnd to a value smaller than selectionStart should decrease selectionStart] | ||
[Initial .value set on textarea-appended should set selectionStart to end of value] | ||
expected: FAIL | ||
|
||
[selectionStart edge-case values] | ||
[Initial .value set on textarea-not-appended should set selectionStart to end of value] | ||
expected: FAIL | ||
|
||
[Initial .value set on textarea-appended-prefocused should set selectionStart to end of value] | ||
expected: FAIL | ||
|
||
[Initial .value set on textarea-not-appended-prefocused should set selectionStart to end of value] | ||
expected: FAIL | ||
|
||
[onselect should fire when selectionStart is changed on textarea-appended] | ||
expected: NOTRUN | ||
|
||
[onselect should fire when selectionStart is changed on textarea-not-appended] | ||
expected: NOTRUN | ||
|
||
[onselect should fire when selectionStart is changed on textarea-appended-prefocused] | ||
expected: NOTRUN | ||
|
||
[onselect should fire when selectionStart is changed on textarea-not-appended-prefocused] | ||
expected: NOTRUN | ||
|
||
[onselect should fire when selectionEnd is changed on textarea-appended] | ||
expected: NOTRUN | ||
|
||
[onselect should fire when selectionEnd is changed on textarea-not-appended] | ||
expected: NOTRUN | ||
|
||
[onselect should fire when selectionEnd is changed on textarea-appended-prefocused] | ||
expected: NOTRUN | ||
|
||
[onselect should fire when selectionEnd is changed on textarea-not-appended-prefocused] | ||
expected: NOTRUN | ||
|
||
[Initial .value set on textarea-appended should set selectionEnd to end of value] | ||
expected: FAIL | ||
|
||
[Initial .value set on textarea-not-appended should set selectionEnd to end of value] | ||
expected: FAIL | ||
|
||
[Initial .value set on textarea-appended-prefocused should set selectionEnd to end of value] | ||
expected: FAIL | ||
|
||
[Initial .value set on textarea-not-appended-prefocused should set selectionEnd to end of value] | ||
expected: FAIL | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters