Summary

Harness status: OK

Found 49 tests

Details

ResultTest NameMessage
Passtest of input.setSelectionRange
Asserts runNo asserts ran
Passinput typeof(input.setSelectionRange)'
Asserts run
Pass
assert_equals("function", "function", "element must have 'setSelectionRange' function")
    at Test.<anonymous> ( /html/semantics/forms/textfieldselection/textfieldselection-setSelectionRange.html:27:5)
Passinput setSelectionRange return void
Asserts run
Pass
assert_equals(undefined, undefined, "setSelectionRange is void functuon")
    at Test.<anonymous> ( /html/semantics/forms/textfieldselection/textfieldselection-setSelectionRange.html:31:5)
Passinput setSelectionRange(0,1)
Asserts run
Pass
assert_equals(0, 0, "element.selectionStart should be 0")
    at Test.<anonymous> ( /html/semantics/forms/textfieldselection/textfieldselection-setSelectionRange.html:36:5)
Pass
assert_equals(1, 1, "element.selectionEnd should be 1")
    at Test.<anonymous> ( /html/semantics/forms/textfieldselection/textfieldselection-setSelectionRange.html:37:5)
Passinput setSelectionRange(0,input.value.length+1)
Asserts run
Pass
assert_equals(5, 5, "Arguments greater than the length of the value of the text field must be treated as pointing at the end of the text field")
    at Test.<anonymous> ( /html/semantics/forms/textfieldselection/textfieldselection-setSelectionRange.html:42:5)
Passinput setSelectionRange(input.value.length+1,input.value.length+1)
Asserts run
Pass
assert_equals(5, 5, "Arguments (start) greater than the length of the value of the text field must be treated as pointing at the end of the text field")
    at Test.<anonymous> ( /html/semantics/forms/textfieldselection/textfieldselection-setSelectionRange.html:47:5)
Pass
assert_equals(5, 5, "Arguments (end) greater than the length of the value of the text field must be treated as pointing at the end of the text field")
    at Test.<anonymous> ( /html/semantics/forms/textfieldselection/textfieldselection-setSelectionRange.html:48:5)
Passinput setSelectionRange(input.value.length+1,1)
Asserts run
Pass
assert_equals(1, 1, "If end is less than or equal to start then the start of the selection and the end of the selection must both be placed immediately before the character with offset end")
    at Test.<anonymous> ( /html/semantics/forms/textfieldselection/textfieldselection-setSelectionRange.html:53:5)
Pass
assert_equals(1, 1, "element.selectionEnd should be 1")
    at Test.<anonymous> ( /html/semantics/forms/textfieldselection/textfieldselection-setSelectionRange.html:54:5)
Passinput setSelectionRange(2,2)
Asserts run
Pass
assert_equals(2, 2, "If end is less than or equal to start then the start of the selection and the end of the selection must both be placed immediately before the character with offset end")
    at Test.<anonymous> ( /html/semantics/forms/textfieldselection/textfieldselection-setSelectionRange.html:59:5)
Pass
assert_equals(2, 2, "If end is less than or equal to start then the start of the selection and the end of the selection must both be placed immediately before the character with offset end")
    at Test.<anonymous> ( /html/semantics/forms/textfieldselection/textfieldselection-setSelectionRange.html:60:5)
Passinput setSelectionRange(2,1)
Asserts run
Pass
assert_equals(1, 1, "If end is less than or equal to start then the start of the selection and the end of the selection must both be placed immediately before the character with offset end")
    at Test.<anonymous> ( /html/semantics/forms/textfieldselection/textfieldselection-setSelectionRange.html:65:5)
Pass
assert_equals(1, 1, "If end is less than or equal to start then the start of the selection and the end of the selection must both be placed immediately before the character with offset end")
    at Test.<anonymous> ( /html/semantics/forms/textfieldselection/textfieldselection-setSelectionRange.html:66:5)
Passinput direction of setSelectionRange(0,1,"backward")
Asserts run
Pass
assert_equals("backward", "backward", "The direction of the selection must be set to backward if direction is a case-sensitive match for the string \"backward\"")
    at Test.<anonymous> ( /html/semantics/forms/textfieldselection/textfieldselection-setSelectionRange.html:71:5)
Passinput direction of setSelectionRange(0,1,"forward")
Asserts run
Pass
assert_equals("forward", "forward", "The direction of the selection must be set to forward if direction is a case-sensitive match for the string \"forward\"")
    at Test.<anonymous> ( /html/semantics/forms/textfieldselection/textfieldselection-setSelectionRange.html:76:5)
Passinput direction of setSelectionRange(0,1,"none")
Asserts run
Pass
assert_equals("forward", "forward")
    at Test.<anonymous> ( /html/semantics/forms/textfieldselection/textfieldselection-setSelectionRange.html:81:5)
Passinput direction of setSelectionRange(0,1,"hoge")
Asserts run
Pass
assert_equals("forward", "forward")
    at Test.<anonymous> ( /html/semantics/forms/textfieldselection/textfieldselection-setSelectionRange.html:86:5)
Passinput direction of setSelectionRange(0,1,"BACKWARD")
Asserts run
Pass
assert_equals("forward", "forward")
    at Test.<anonymous> ( /html/semantics/forms/textfieldselection/textfieldselection-setSelectionRange.html:91:5)
Passinput direction of setSelectionRange(0,1)
Asserts run
Pass
assert_equals("forward", "forward")
    at Test.<anonymous> ( /html/semantics/forms/textfieldselection/textfieldselection-setSelectionRange.html:96:5)
Passinput setSelectionRange(1,-1)
Asserts run
Pass
assert_equals(1, 1, "element.selectionStart should be 1")
    at Test.<anonymous> ( /html/semantics/forms/textfieldselection/textfieldselection-setSelectionRange.html:101:5)
Pass
assert_equals(5, 5, "ECMAScript conversion to unsigned long")
    at Test.<anonymous> ( /html/semantics/forms/textfieldselection/textfieldselection-setSelectionRange.html:102:5)
Passinput setSelectionRange(-1,1)
Asserts run
Pass
assert_equals(1, 1, "ECMAScript conversion to unsigned long + if end is less than or equal to start then the start of the selection and the end of the selection must both be placed immediately before the character with offset end")
    at Test.<anonymous> ( /html/semantics/forms/textfieldselection/textfieldselection-setSelectionRange.html:107:5)
Pass
assert_equals(1, 1, "element.selectionEnd should be 1")
    at Test.<anonymous> ( /html/semantics/forms/textfieldselection/textfieldselection-setSelectionRange.html:108:5)
Passinput setSelectionRange("string",1)
Asserts run
Pass
assert_equals(0, 0, "element.selectionStart should be 0")
    at Test.<anonymous> ( /html/semantics/forms/textfieldselection/textfieldselection-setSelectionRange.html:113:5)
Pass
assert_equals(1, 1, "element.selectionEnd should be 1")
    at Test.<anonymous> ( /html/semantics/forms/textfieldselection/textfieldselection-setSelectionRange.html:114:5)
Passinput setSelectionRange(true,1)
Asserts run
Pass
assert_equals(1, 1, "element.selectionStart should be 1")
    at Test.<anonymous> ( /html/semantics/forms/textfieldselection/textfieldselection-setSelectionRange.html:119:5)
Pass
assert_equals(1, 1, "element.selectionEnd should be 1")
    at Test.<anonymous> ( /html/semantics/forms/textfieldselection/textfieldselection-setSelectionRange.html:120:5)
Passinput setSelectionRange([],1)
Asserts run
Pass
assert_equals(0, 0, "element.selectionStart should be 0")
    at Test.<anonymous> ( /html/semantics/forms/textfieldselection/textfieldselection-setSelectionRange.html:125:5)
Pass
assert_equals(1, 1, "element.selectionEnd should be 1")
    at Test.<anonymous> ( /html/semantics/forms/textfieldselection/textfieldselection-setSelectionRange.html:126:5)
Passinput setSelectionRange({},1)
Asserts run
Pass
assert_equals(0, 0, "element.selectionStart should be 0")
    at Test.<anonymous> ( /html/semantics/forms/textfieldselection/textfieldselection-setSelectionRange.html:131:5)
Pass
assert_equals(1, 1, "element.selectionEnd should be 1")
    at Test.<anonymous> ( /html/semantics/forms/textfieldselection/textfieldselection-setSelectionRange.html:132:5)
Passinput setSelectionRange(NaN,1)
Asserts run
Pass
assert_equals(0, 0, "element.selectionStart should be 0")
    at Test.<anonymous> ( /html/semantics/forms/textfieldselection/textfieldselection-setSelectionRange.html:137:5)
Pass
assert_equals(1, 1, "element.selectionEnd should be 1")
    at Test.<anonymous> ( /html/semantics/forms/textfieldselection/textfieldselection-setSelectionRange.html:138:5)
Passinput setSelectionRange(null,1)
Asserts run
Pass
assert_equals(0, 0, "element.selectionStart should be 0")
    at Test.<anonymous> ( /html/semantics/forms/textfieldselection/textfieldselection-setSelectionRange.html:143:5)
Pass
assert_equals(1, 1, "element.selectionEnd should be 1")
    at Test.<anonymous> ( /html/semantics/forms/textfieldselection/textfieldselection-setSelectionRange.html:144:5)
Passinput setSelectionRange(undefined,1)
Asserts run
Pass
assert_equals(0, 0, "element.selectionStart should be 0")
    at Test.<anonymous> ( /html/semantics/forms/textfieldselection/textfieldselection-setSelectionRange.html:149:5)
Pass
assert_equals(1, 1, "element.selectionEnd should be 1")
    at Test.<anonymous> ( /html/semantics/forms/textfieldselection/textfieldselection-setSelectionRange.html:150:5)
Passinput setSelectionRange(Math.pow(2,32) - 2, Math.pow(2,32) - 1)
Asserts run
Pass
assert_equals(5, 5, "element.selectionStart should be value.length")
    at Test.<anonymous> ( /html/semantics/forms/textfieldselection/textfieldselection-setSelectionRange.html:155:5)
Pass
assert_equals(5, 5, "element.selectionEnd should be value.length")
    at Test.<anonymous> ( /html/semantics/forms/textfieldselection/textfieldselection-setSelectionRange.html:157:5)
Passinput setSelectionRange(Math.pow(2,31), Math.pow(2,32) - 1)
Asserts run
Pass
assert_equals(5, 5, "element.selectionStart should be value.length")
    at Test.<anonymous> ( /html/semantics/forms/textfieldselection/textfieldselection-setSelectionRange.html:163:5)
Pass
assert_equals(5, 5, "element.selectionEnd should be value.length")
    at Test.<anonymous> ( /html/semantics/forms/textfieldselection/textfieldselection-setSelectionRange.html:165:5)
Passinput setSelectionRange fires a select event
Asserts run
Pass
assert_true(true, "event should be queued")
    at Test.<anonymous> ( /html/semantics/forms/textfieldselection/textfieldselection-setSelectionRange.html:174:5)
Pass
assert_true(true, "event is trusted")
    at Test.<anonymous> ( /html/semantics/forms/textfieldselection/textfieldselection-setSelectionRange.html:175:5)
Pass
assert_true(true, "event bubbles")
    at Test.<anonymous> ( /html/semantics/forms/textfieldselection/textfieldselection-setSelectionRange.html:176:5)
Pass
assert_false(false, "event is not cancelable")
    at Test.<anonymous> ( /html/semantics/forms/textfieldselection/textfieldselection-setSelectionRange.html:177:5)
Passtest of textarea.setSelectionRange
Asserts runNo asserts ran
Passtextarea typeof(input.setSelectionRange)'
Asserts run
Pass
assert_equals("function", "function", "element must have 'setSelectionRange' function")
    at Test.<anonymous> ( /html/semantics/forms/textfieldselection/textfieldselection-setSelectionRange.html:186:5)
Passtextarea setSelectionRange return void
Asserts run
Pass
assert_equals(undefined, undefined, "setSelectionRange is void functuon")
    at Test.<anonymous> ( /html/semantics/forms/textfieldselection/textfieldselection-setSelectionRange.html:190:5)
Passtextarea setSelectionRange(0,1)
Asserts run
Pass
assert_equals(0, 0, "element.selectionStart should be 0")
    at Test.<anonymous> ( /html/semantics/forms/textfieldselection/textfieldselection-setSelectionRange.html:195:5)
Pass
assert_equals(1, 1, "element.selectionEnd should be 1")
    at Test.<anonymous> ( /html/semantics/forms/textfieldselection/textfieldselection-setSelectionRange.html:196:5)
Passtextarea setSelectionRange(0,textarea.value.length+1)
Asserts run
Pass
assert_equals(5, 5, "Arguments greater than the length of the value of the text field must be treated as pointing at the end of the text field")
    at Test.<anonymous> ( /html/semantics/forms/textfieldselection/textfieldselection-setSelectionRange.html:201:5)
Passtextarea setSelectionRange(2,2)
Asserts run
Pass
assert_equals(2, 2, "If end is less than or equal to start then the start of the selection and the end of the selection must both be placed immediately before the character with offset end")
    at Test.<anonymous> ( /html/semantics/forms/textfieldselection/textfieldselection-setSelectionRange.html:206:5)
Pass
assert_equals(2, 2, "If end is less than or equal to start then the start of the selection and the end of the selection must both be placed immediately before the character with offset end")
    at Test.<anonymous> ( /html/semantics/forms/textfieldselection/textfieldselection-setSelectionRange.html:207:5)
Passtextarea setSelectionRange(2,1)
Asserts run
Pass
assert_equals(1, 1, "If end is less than or equal to start then the start of the selection and the end of the selection must both be placed immediately before the character with offset end")
    at Test.<anonymous> ( /html/semantics/forms/textfieldselection/textfieldselection-setSelectionRange.html:212:5)
Pass
assert_equals(1, 1, "If end is less than or equal to start then the start of the selection and the end of the selection must both be placed immediately before the character with offset end")
    at Test.<anonymous> ( /html/semantics/forms/textfieldselection/textfieldselection-setSelectionRange.html:213:5)
Passtextarea direction of setSelectionRange(0,1,"backward")
Asserts run
Pass
assert_equals("backward", "backward", "The direction of the selection must be set to backward if direction is a case-sensitive match for the string \"backward\"")
    at Test.<anonymous> ( /html/semantics/forms/textfieldselection/textfieldselection-setSelectionRange.html:218:5)
Passtextarea direction of setSelectionRange(0,1,"forward")
Asserts run
Pass
assert_equals("forward", "forward", "The direction of the selection must be set to forward if direction is a case-sensitive match for the string \"forward\"")
    at Test.<anonymous> ( /html/semantics/forms/textfieldselection/textfieldselection-setSelectionRange.html:223:5)
Passtextarea direction of setSelectionRange(0,1,"none")
Asserts run
Pass
assert_equals("forward", "forward")
    at Test.<anonymous> ( /html/semantics/forms/textfieldselection/textfieldselection-setSelectionRange.html:228:5)
Passtextarea direction of setSelectionRange(0,1,"hoge")
Asserts run
Pass
assert_equals("forward", "forward")
    at Test.<anonymous> ( /html/semantics/forms/textfieldselection/textfieldselection-setSelectionRange.html:233:5)
Passtextarea direction of setSelectionRange(0,1,"BACKWARD")
Asserts run
Pass
assert_equals("forward", "forward")
    at Test.<anonymous> ( /html/semantics/forms/textfieldselection/textfieldselection-setSelectionRange.html:238:5)
Passtextarea direction of setSelectionRange(0,1)
Asserts run
Pass
assert_equals("forward", "forward")
    at Test.<anonymous> ( /html/semantics/forms/textfieldselection/textfieldselection-setSelectionRange.html:243:5)
Passtextarea setSelectionRange("string",1)
Asserts run
Pass
assert_equals(0, 0, "element.selectionStart should be 0")
    at Test.<anonymous> ( /html/semantics/forms/textfieldselection/textfieldselection-setSelectionRange.html:248:5)
Pass
assert_equals(1, 1, "element.selectionStart should be 1")
    at Test.<anonymous> ( /html/semantics/forms/textfieldselection/textfieldselection-setSelectionRange.html:249:5)
Passtextarea setSelectionRange(true,1)
Asserts run
Pass
assert_equals(1, 1, "element.selectionStart should be 1")
    at Test.<anonymous> ( /html/semantics/forms/textfieldselection/textfieldselection-setSelectionRange.html:254:5)
Pass
assert_equals(1, 1, "element.selectionStart should be 1")
    at Test.<anonymous> ( /html/semantics/forms/textfieldselection/textfieldselection-setSelectionRange.html:255:5)
Passtextarea setSelectionRange([],1)
Asserts run
Pass
assert_equals(0, 0, "element.selectionStart should be 0")
    at Test.<anonymous> ( /html/semantics/forms/textfieldselection/textfieldselection-setSelectionRange.html:260:5)
Pass
assert_equals(1, 1, "element.selectionStart should be 1")
    at Test.<anonymous> ( /html/semantics/forms/textfieldselection/textfieldselection-setSelectionRange.html:261:5)
Passtextarea setSelectionRange({},1)
Asserts run
Pass
assert_equals(0, 0, "element.selectionStart should be 0")
    at Test.<anonymous> ( /html/semantics/forms/textfieldselection/textfieldselection-setSelectionRange.html:266:5)
Pass
assert_equals(1, 1, "element.selectionStart should be 1")
    at Test.<anonymous> ( /html/semantics/forms/textfieldselection/textfieldselection-setSelectionRange.html:267:5)
Passtextarea setSelectionRange(NaN,1)
Asserts run
Pass
assert_equals(0, 0, "element.selectionStart should be 0")
    at Test.<anonymous> ( /html/semantics/forms/textfieldselection/textfieldselection-setSelectionRange.html:272:5)
Pass
assert_equals(1, 1, "element.selectionStart should be 1")
    at Test.<anonymous> ( /html/semantics/forms/textfieldselection/textfieldselection-setSelectionRange.html:273:5)
Passtextarea setSelectionRange(null,1)
Asserts run
Pass
assert_equals(0, 0, "element.selectionStart should be 0")
    at Test.<anonymous> ( /html/semantics/forms/textfieldselection/textfieldselection-setSelectionRange.html:278:5)
Pass
assert_equals(1, 1, "element.selectionStart should be 1")
    at Test.<anonymous> ( /html/semantics/forms/textfieldselection/textfieldselection-setSelectionRange.html:279:5)
Passtextarea setSelectionRange(undefined,1)
Asserts run
Pass
assert_equals(0, 0, "element.selectionStart should be 0")
    at Test.<anonymous> ( /html/semantics/forms/textfieldselection/textfieldselection-setSelectionRange.html:284:5)
Pass
assert_equals(1, 1, "element.selectionStart should be 1")
    at Test.<anonymous> ( /html/semantics/forms/textfieldselection/textfieldselection-setSelectionRange.html:285:5)
Passtextarea setSelectionRange(Math.pow(2,32) - 2, Math.pow(2,32) - 1)
Asserts run
Pass
assert_equals(5, 5, "element.selectionStart should be value.length")
    at Test.<anonymous> ( /html/semantics/forms/textfieldselection/textfieldselection-setSelectionRange.html:290:5)
Pass
assert_equals(5, 5, "element.selectionEnd should be value.length")
    at Test.<anonymous> ( /html/semantics/forms/textfieldselection/textfieldselection-setSelectionRange.html:292:5)
Passtextarea setSelectionRange(Math.pow(2,31), Math.pow(2,32) - 1)
Asserts run
Pass
assert_equals(5, 5, "element.selectionStart should be value.length")
    at Test.<anonymous> ( /html/semantics/forms/textfieldselection/textfieldselection-setSelectionRange.html:298:5)
Pass
assert_equals(5, 5, "element.selectionEnd should be value.length")
    at Test.<anonymous> ( /html/semantics/forms/textfieldselection/textfieldselection-setSelectionRange.html:300:5)