Support the select() method on input/textarea

Issue #19171
This commit is contained in:
Jon Leighton 2017-12-07 13:58:24 +01:00
parent c9ba16f9fb
commit 0148e9705b
9 changed files with 53 additions and 232 deletions

View file

@ -1,8 +1,5 @@
[select-event.html]
type: testharness
[textarea: select()]
expected: FAIL
[textarea: select() a second time (must not fire select)]
expected: FAIL
@ -24,9 +21,6 @@
[textarea: setRangeText() a second time (must not fire select)]
expected: FAIL
[input type text: select()]
expected: FAIL
[input type text: select() a second time (must not fire select)]
expected: FAIL
@ -48,9 +42,6 @@
[input type text: setRangeText() a second time (must not fire select)]
expected: FAIL
[input type search: select()]
expected: FAIL
[input type search: select() a second time (must not fire select)]
expected: FAIL
@ -72,9 +63,6 @@
[input type search: setRangeText() a second time (must not fire select)]
expected: FAIL
[input type tel: select()]
expected: FAIL
[input type tel: select() a second time (must not fire select)]
expected: FAIL
@ -96,9 +84,6 @@
[input type tel: setRangeText() a second time (must not fire select)]
expected: FAIL
[input type url: select()]
expected: FAIL
[input type url: select() a second time (must not fire select)]
expected: FAIL
@ -120,9 +105,6 @@
[input type url: setRangeText() a second time (must not fire select)]
expected: FAIL
[input type password: select()]
expected: FAIL
[input type password: select() a second time (must not fire select)]
expected: FAIL

View file

@ -1,44 +0,0 @@
[selection.html]
type: testharness
[test if selection text is correct for input]
expected: FAIL
[test if selection text is correct for textarea]
expected: FAIL
[test if non-ascii selection text is correct for input]
expected: FAIL
[test if non-ascii selection text is correct for textarea]
expected: FAIL
[test SelectionStart offset for input]
expected: FAIL
[test SelectionStart offset for textarea]
expected: FAIL
[test SelectionEnd offset for input]
expected: FAIL
[test SelectionEnd offset for textarea]
expected: FAIL
[test SelectionDirection for input]
expected: FAIL
[test SelectionDirection for textarea]
expected: FAIL
[test SelectionStart offset for input that is appended]
expected: FAIL
[test SelectionStart offset for textarea that is appended]
expected: FAIL
[test SelectionEnd offset for input that is appended]
expected: FAIL
[test SelectionEnd offset for textarea that is appended]
expected: FAIL

View file

@ -1,71 +1,5 @@
[selection.html]
type: testharness
[input type text should support the select() method]
expected: FAIL
[input type search should support the select() method]
expected: FAIL
[input type url should support the select() method]
expected: FAIL
[input type tel should support the select() method]
expected: FAIL
[input type email should support the select() method]
expected: FAIL
[input type password should support the select() method]
expected: FAIL
[input type date should support the select() method]
expected: FAIL
[input type month should support the select() method]
expected: FAIL
[input type week should support the select() method]
expected: FAIL
[input type time should support the select() method]
expected: FAIL
[input type datetime-local should support the select() method]
expected: FAIL
[input type number should support the select() method]
expected: FAIL
[input type color should support the select() method]
expected: FAIL
[input type file should support the select() method]
expected: FAIL
[input type hidden should not support the select() method]
expected: FAIL
[input type range should not support the select() method]
expected: FAIL
[input type checkbox should not support the select() method]
expected: FAIL
[input type radio should not support the select() method]
expected: FAIL
[input type submit should not support the select() method]
expected: FAIL
[input type image should not support the select() method]
expected: FAIL
[input type reset should not support the select() method]
expected: FAIL
[input type button should not support the select() method]
expected: FAIL
[input type text should support all selection attributes and methods]
expected: FAIL
@ -132,27 +66,3 @@
[input type button should not support variable-length selections]
expected: FAIL
[input type hidden should do nothing when the select() method is called (but, not throw)]
expected: FAIL
[input type range should do nothing when the select() method is called (but, not throw)]
expected: FAIL
[input type checkbox should do nothing when the select() method is called (but, not throw)]
expected: FAIL
[input type radio should do nothing when the select() method is called (but, not throw)]
expected: FAIL
[input type submit should do nothing when the select() method is called (but, not throw)]
expected: FAIL
[input type image should do nothing when the select() method is called (but, not throw)]
expected: FAIL
[input type reset should do nothing when the select() method is called (but, not throw)]
expected: FAIL
[input type button should do nothing when the select() method is called (but, not throw)]
expected: FAIL