Pass | test of input.setSelectionRange | Asserts runNo asserts ran |
Pass | input typeof(input.setSelectionRange)' | Asserts runPass | assert_equals("function", "function", "element must have 'setSelectionRange' function")
at Test.<anonymous> ( /html/semantics/forms/textfieldselection/textfieldselection-setSelectionRange.html:27:5) |
|
Pass | input setSelectionRange return void | Asserts runPass | assert_equals(undefined, undefined, "setSelectionRange is void functuon")
at Test.<anonymous> ( /html/semantics/forms/textfieldselection/textfieldselection-setSelectionRange.html:31:5) |
|
Pass | input setSelectionRange(0,1) | Asserts runPass | 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) |
|
Pass | input setSelectionRange(0,input.value.length+1) | Asserts runPass | 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) |
|
Pass | input setSelectionRange(input.value.length+1,input.value.length+1) | Asserts runPass | 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) |
|
Pass | input setSelectionRange(input.value.length+1,1) | Asserts runPass | 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) |
|
Pass | input setSelectionRange(2,2) | Asserts runPass | 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) |
|
Pass | input setSelectionRange(2,1) | Asserts runPass | 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) |
|
Pass | input direction of setSelectionRange(0,1,"backward") | Asserts runPass | 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) |
|
Pass | input direction of setSelectionRange(0,1,"forward") | Asserts runPass | 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) |
|
Pass | input direction of setSelectionRange(0,1,"none") | Asserts runPass | assert_equals("forward", "forward")
at Test.<anonymous> ( /html/semantics/forms/textfieldselection/textfieldselection-setSelectionRange.html:81:5) |
|
Pass | input direction of setSelectionRange(0,1,"hoge") | Asserts runPass | assert_equals("forward", "forward")
at Test.<anonymous> ( /html/semantics/forms/textfieldselection/textfieldselection-setSelectionRange.html:86:5) |
|
Pass | input direction of setSelectionRange(0,1,"BACKWARD") | Asserts runPass | assert_equals("forward", "forward")
at Test.<anonymous> ( /html/semantics/forms/textfieldselection/textfieldselection-setSelectionRange.html:91:5) |
|
Pass | input direction of setSelectionRange(0,1) | Asserts runPass | assert_equals("forward", "forward")
at Test.<anonymous> ( /html/semantics/forms/textfieldselection/textfieldselection-setSelectionRange.html:96:5) |
|
Pass | input setSelectionRange(1,-1) | Asserts runPass | 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) |
|
Pass | input setSelectionRange(-1,1) | Asserts runPass | 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) |
|
Pass | input setSelectionRange("string",1) | Asserts runPass | 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) |
|
Pass | input setSelectionRange(true,1) | Asserts runPass | 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) |
|
Pass | input setSelectionRange([],1) | Asserts runPass | 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) |
|
Pass | input setSelectionRange({},1) | Asserts runPass | 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) |
|
Pass | input setSelectionRange(NaN,1) | Asserts runPass | 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) |
|
Pass | input setSelectionRange(null,1) | Asserts runPass | 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) |
|
Pass | input setSelectionRange(undefined,1) | Asserts runPass | 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) |
|
Pass | input setSelectionRange(Math.pow(2,32) - 2, Math.pow(2,32) - 1) | Asserts runPass | 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) |
|
Pass | input setSelectionRange(Math.pow(2,31), Math.pow(2,32) - 1) | Asserts runPass | 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) |
|
Pass | input setSelectionRange fires a select event | Asserts runPass | 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) |
|
Pass | test of textarea.setSelectionRange | Asserts runNo asserts ran |
Pass | textarea typeof(input.setSelectionRange)' | Asserts runPass | assert_equals("function", "function", "element must have 'setSelectionRange' function")
at Test.<anonymous> ( /html/semantics/forms/textfieldselection/textfieldselection-setSelectionRange.html:186:5) |
|
Pass | textarea setSelectionRange return void | Asserts runPass | assert_equals(undefined, undefined, "setSelectionRange is void functuon")
at Test.<anonymous> ( /html/semantics/forms/textfieldselection/textfieldselection-setSelectionRange.html:190:5) |
|
Pass | textarea setSelectionRange(0,1) | Asserts runPass | 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) |
|
Pass | textarea setSelectionRange(0,textarea.value.length+1) | Asserts runPass | 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) |
|
Pass | textarea setSelectionRange(2,2) | Asserts runPass | 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) |
|
Pass | textarea setSelectionRange(2,1) | Asserts runPass | 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) |
|
Pass | textarea direction of setSelectionRange(0,1,"backward") | Asserts runPass | 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) |
|
Pass | textarea direction of setSelectionRange(0,1,"forward") | Asserts runPass | 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) |
|
Pass | textarea direction of setSelectionRange(0,1,"none") | Asserts runPass | assert_equals("forward", "forward")
at Test.<anonymous> ( /html/semantics/forms/textfieldselection/textfieldselection-setSelectionRange.html:228:5) |
|
Pass | textarea direction of setSelectionRange(0,1,"hoge") | Asserts runPass | assert_equals("forward", "forward")
at Test.<anonymous> ( /html/semantics/forms/textfieldselection/textfieldselection-setSelectionRange.html:233:5) |
|
Pass | textarea direction of setSelectionRange(0,1,"BACKWARD") | Asserts runPass | assert_equals("forward", "forward")
at Test.<anonymous> ( /html/semantics/forms/textfieldselection/textfieldselection-setSelectionRange.html:238:5) |
|
Pass | textarea direction of setSelectionRange(0,1) | Asserts runPass | assert_equals("forward", "forward")
at Test.<anonymous> ( /html/semantics/forms/textfieldselection/textfieldselection-setSelectionRange.html:243:5) |
|
Pass | textarea setSelectionRange("string",1) | Asserts runPass | 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) |
|
Pass | textarea setSelectionRange(true,1) | Asserts runPass | 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) |
|
Pass | textarea setSelectionRange([],1) | Asserts runPass | 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) |
|
Pass | textarea setSelectionRange({},1) | Asserts runPass | 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) |
|
Pass | textarea setSelectionRange(NaN,1) | Asserts runPass | 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) |
|
Pass | textarea setSelectionRange(null,1) | Asserts runPass | 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) |
|
Pass | textarea setSelectionRange(undefined,1) | Asserts runPass | 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) |
|
Pass | textarea setSelectionRange(Math.pow(2,32) - 2, Math.pow(2,32) - 1) | Asserts runPass | 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) |
|
Pass | textarea setSelectionRange(Math.pow(2,31), Math.pow(2,32) - 1) | Asserts runPass | 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) |
|