blob: 1037d4535e3fbd9cb0e36d1008b672ee5ed6e330 [file] [log] [blame]
This is a testharness.js-based test.
PASS test of input.setSelectionRange
PASS input typeof(input.setSelectionRange)'
PASS input setSelectionRange return void
PASS input setSelectionRange(0,1)
PASS input setSelectionRange(0,input.value.length+1)
PASS input setSelectionRange(input.value.length+1,input.value.length+1)
PASS input setSelectionRange(input.value.length+1,1)
PASS input setSelectionRange(2,2)
PASS input setSelectionRange(2,1)
PASS input direction of setSelectionRange(0,1,"backward")
PASS input direction of setSelectionRange(0,1,"forward")
PASS input direction of setSelectionRange(0,1,"none")
PASS input direction of setSelectionRange(0,1,"hoge")
PASS input direction of setSelectionRange(0,1,"BACKWARD")
PASS input direction of setSelectionRange(0,1)
PASS input setSelectionRange(1,-1)
PASS input setSelectionRange(-1,1)
PASS input setSelectionRange("string",1)
PASS input setSelectionRange(true,1)
PASS input setSelectionRange([],1)
PASS input setSelectionRange({},1)
PASS input setSelectionRange(NaN,1)
PASS input setSelectionRange(null,1)
PASS input setSelectionRange(undefined,1)
PASS input setSelectionRange(Math.pow(2,32) - 2, Math.pow(2,32) - 1)
PASS input setSelectionRange(Math.pow(2,31), Math.pow(2,32) - 1)
PASS input setSelectionRange fires a select event
PASS test of textarea.setSelectionRange
PASS textarea typeof(input.setSelectionRange)'
PASS textarea setSelectionRange return void
PASS textarea setSelectionRange(0,1)
PASS textarea setSelectionRange(0,textarea.value.length+1)
PASS textarea setSelectionRange(2,2)
PASS textarea setSelectionRange(2,1)
PASS textarea direction of setSelectionRange(0,1,"backward")
PASS textarea direction of setSelectionRange(0,1,"forward")
PASS textarea direction of setSelectionRange(0,1,"none")
PASS textarea direction of setSelectionRange(0,1,"hoge")
PASS textarea direction of setSelectionRange(0,1,"BACKWARD")
PASS textarea direction of setSelectionRange(0,1)
PASS textarea setSelectionRange("string",1)
PASS textarea setSelectionRange(true,1)
PASS textarea setSelectionRange([],1)
PASS textarea setSelectionRange({},1)
PASS textarea setSelectionRange(NaN,1)
PASS textarea setSelectionRange(null,1)
PASS textarea setSelectionRange(undefined,1)
PASS textarea setSelectionRange(Math.pow(2,32) - 2, Math.pow(2,32) - 1)
PASS textarea setSelectionRange(Math.pow(2,31), Math.pow(2,32) - 1)
Harness: the test ran to completion.