mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
Implement input.setSelectionRange
This commit is contained in:
parent
97e29f3f2c
commit
a3d77790a6
5 changed files with 130 additions and 91 deletions
|
@ -1,62 +1,6 @@
|
|||
[textfieldselection-setSelectionRange.html]
|
||||
type: testharness
|
||||
[input typeof(input.setSelectionRange)']
|
||||
expected: FAIL
|
||||
|
||||
[input setSelectionRange return void]
|
||||
expected: FAIL
|
||||
|
||||
[input setSelectionRange(0,1)]
|
||||
expected: FAIL
|
||||
|
||||
[input setSelectionRange(0,input.value.length+1)]
|
||||
expected: FAIL
|
||||
|
||||
[input setSelectionRange(2,2)]
|
||||
expected: FAIL
|
||||
|
||||
[input setSelectionRange(2,1)]
|
||||
expected: FAIL
|
||||
|
||||
[input direction of setSelectionRange(0,1,"backward")]
|
||||
expected: FAIL
|
||||
|
||||
[input direction of setSelectionRange(0,1,"forward")]
|
||||
expected: FAIL
|
||||
|
||||
[input direction of setSelectionRange(0,1,"none")]
|
||||
expected: FAIL
|
||||
|
||||
[input direction of setSelectionRange(0,1,"hoge")]
|
||||
expected: FAIL
|
||||
|
||||
[input direction of setSelectionRange(0,1,"BACKWARD")]
|
||||
expected: FAIL
|
||||
|
||||
[input direction of setSelectionRange(0,1)]
|
||||
expected: FAIL
|
||||
|
||||
[input setSelectionRange("string",1)]
|
||||
expected: FAIL
|
||||
|
||||
[input setSelectionRange(true,1)]
|
||||
expected: FAIL
|
||||
|
||||
[input setSelectionRange([\],1)]
|
||||
expected: FAIL
|
||||
|
||||
[input setSelectionRange({},1)]
|
||||
expected: FAIL
|
||||
|
||||
[input setSelectionRange(NaN,1)]
|
||||
expected: FAIL
|
||||
|
||||
[input setSelectionRange(null,1)]
|
||||
expected: FAIL
|
||||
|
||||
[input setSelectionRange(undefined,1)]
|
||||
expected: FAIL
|
||||
|
||||
|
||||
[textarea typeof(input.setSelectionRange)']
|
||||
expected: FAIL
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue