Summary

Harness status: OK

Found 42 tests

Details

ResultTest NameMessage
PassInput element programmatic selection support
Asserts runNo asserts ran
Passinput type text should support the select() method
Asserts run
Pass
assert_equals("text", "text", "the given input type is not supported")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:44:7)
Passinput type search should support the select() method
Asserts run
Pass
assert_equals("search", "search", "the given input type is not supported")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:44:7)
Passinput type url should support the select() method
Asserts run
Pass
assert_equals("url", "url", "the given input type is not supported")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:44:7)
Passinput type tel should support the select() method
Asserts run
Pass
assert_equals("tel", "tel", "the given input type is not supported")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:44:7)
Passinput type email should support the select() method
Asserts run
Pass
assert_equals("email", "email", "the given input type is not supported")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:44:7)
Passinput type password should support the select() method
Asserts run
Pass
assert_equals("password", "password", "the given input type is not supported")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:44:7)
Passinput type date should support the select() method
Asserts run
Pass
assert_equals("date", "date", "the given input type is not supported")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:44:7)
Passinput type time should support the select() method
Asserts run
Pass
assert_equals("time", "time", "the given input type is not supported")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:44:7)
Passinput type datetime-local should support the select() method
Asserts run
Pass
assert_equals("datetime-local", "datetime-local", "the given input type is not supported")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:44:7)
Passinput type number should support the select() method
Asserts run
Pass
assert_equals("number", "number", "the given input type is not supported")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:44:7)
Passinput type color should support the select() method
Asserts run
Pass
assert_equals("color", "color", "the given input type is not supported")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:44:7)
Passinput type file should support the select() method
Asserts run
Pass
assert_equals("file", "file", "the given input type is not supported")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:44:7)
Passinput type hidden should do nothing when the select() method is called (but, not throw)
Asserts run
Pass
assert_equals("hidden", "hidden", "the given input type is not supported")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:56:7)
Pass
assert_equals(null, null, "selectionStart must not change")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:65:7)
Pass
assert_equals(null, null, "selectionEnd must not change")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:66:7)
Pass
assert_equals(null, null, "selectionDirection must not change")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:67:7)
Passinput type range should do nothing when the select() method is called (but, not throw)
Asserts run
Pass
assert_equals("range", "range", "the given input type is not supported")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:56:7)
Pass
assert_equals(null, null, "selectionStart must not change")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:65:7)
Pass
assert_equals(null, null, "selectionEnd must not change")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:66:7)
Pass
assert_equals(null, null, "selectionDirection must not change")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:67:7)
Passinput type checkbox should do nothing when the select() method is called (but, not throw)
Asserts run
Pass
assert_equals("checkbox", "checkbox", "the given input type is not supported")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:56:7)
Pass
assert_equals(null, null, "selectionStart must not change")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:65:7)
Pass
assert_equals(null, null, "selectionEnd must not change")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:66:7)
Pass
assert_equals(null, null, "selectionDirection must not change")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:67:7)
Passinput type radio should do nothing when the select() method is called (but, not throw)
Asserts run
Pass
assert_equals("radio", "radio", "the given input type is not supported")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:56:7)
Pass
assert_equals(null, null, "selectionStart must not change")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:65:7)
Pass
assert_equals(null, null, "selectionEnd must not change")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:66:7)
Pass
assert_equals(null, null, "selectionDirection must not change")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:67:7)
Passinput type submit should do nothing when the select() method is called (but, not throw)
Asserts run
Pass
assert_equals("submit", "submit", "the given input type is not supported")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:56:7)
Pass
assert_equals(null, null, "selectionStart must not change")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:65:7)
Pass
assert_equals(null, null, "selectionEnd must not change")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:66:7)
Pass
assert_equals(null, null, "selectionDirection must not change")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:67:7)
Passinput type image should do nothing when the select() method is called (but, not throw)
Asserts run
Pass
assert_equals("image", "image", "the given input type is not supported")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:56:7)
Pass
assert_equals(null, null, "selectionStart must not change")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:65:7)
Pass
assert_equals(null, null, "selectionEnd must not change")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:66:7)
Pass
assert_equals(null, null, "selectionDirection must not change")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:67:7)
Passinput type reset should do nothing when the select() method is called (but, not throw)
Asserts run
Pass
assert_equals("reset", "reset", "the given input type is not supported")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:56:7)
Pass
assert_equals(null, null, "selectionStart must not change")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:65:7)
Pass
assert_equals(null, null, "selectionEnd must not change")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:66:7)
Pass
assert_equals(null, null, "selectionDirection must not change")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:67:7)
Passinput type button should do nothing when the select() method is called (but, not throw)
Asserts run
Pass
assert_equals("button", "button", "the given input type is not supported")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:56:7)
Pass
assert_equals(null, null, "selectionStart must not change")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:65:7)
Pass
assert_equals(null, null, "selectionEnd must not change")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:66:7)
Pass
assert_equals(null, null, "selectionDirection must not change")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:67:7)
PassInput element programmatic selection support 1
Asserts runNo asserts ran
Passinput type text should support all selection attributes and methods
Asserts run
Pass
assert_equals("text", "text", "the given input type is not supported")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:107:7)
Passinput type search should support all selection attributes and methods
Asserts run
Pass
assert_equals("search", "search", "the given input type is not supported")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:107:7)
Passinput type url should support all selection attributes and methods
Asserts run
Pass
assert_equals("url", "url", "the given input type is not supported")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:107:7)
Passinput type tel should support all selection attributes and methods
Asserts run
Pass
assert_equals("tel", "tel", "the given input type is not supported")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:107:7)
Passinput type password should support all selection attributes and methods
Asserts run
Pass
assert_equals("password", "password", "the given input type is not supported")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:107:7)
Passinput type hidden should not support variable-length selections
Asserts run
Pass
assert_equals("hidden", "hidden", "the given input type is not supported")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:126:7)
Pass
assert_equals(null, null, "getting input.selectionStart")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:128:7)
Pass
assert_throws_dom("INVALID_STATE_ERR", function "function() { input.selectionStart = 0; }")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:129:7)
Pass
assert_equals(null, null, "getting input.selectionEnd")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:130:7)
Pass
assert_throws_dom("INVALID_STATE_ERR", function "function() { input.selectionEnd = 0; }")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:131:7)
Pass
assert_equals(null, null, "getting input.selectionDirection")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:132:7)
Pass
assert_throws_dom("INVALID_STATE_ERR", function "function() { input.selectionDirection = "none"; }")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:133:7)
Pass
assert_throws_dom("INVALID_STATE_ERR", function "function() { input.setSelectionRange(0, 0); }")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:134:7)
Pass
assert_throws_dom("INVALID_STATE_ERR", function "function() { input.setRangeText('', 0, 0); }")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:135:7)
Passinput type email should not support variable-length selections
Asserts run
Pass
assert_equals("email", "email", "the given input type is not supported")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:126:7)
Pass
assert_equals(null, null, "getting input.selectionStart")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:128:7)
Pass
assert_throws_dom("INVALID_STATE_ERR", function "function() { input.selectionStart = 0; }")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:129:7)
Pass
assert_equals(null, null, "getting input.selectionEnd")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:130:7)
Pass
assert_throws_dom("INVALID_STATE_ERR", function "function() { input.selectionEnd = 0; }")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:131:7)
Pass
assert_equals(null, null, "getting input.selectionDirection")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:132:7)
Pass
assert_throws_dom("INVALID_STATE_ERR", function "function() { input.selectionDirection = "none"; }")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:133:7)
Pass
assert_throws_dom("INVALID_STATE_ERR", function "function() { input.setSelectionRange(0, 0); }")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:134:7)
Pass
assert_throws_dom("INVALID_STATE_ERR", function "function() { input.setRangeText('', 0, 0); }")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:135:7)
Passinput type date should not support variable-length selections
Asserts run
Pass
assert_equals("date", "date", "the given input type is not supported")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:126:7)
Pass
assert_equals(null, null, "getting input.selectionStart")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:128:7)
Pass
assert_throws_dom("INVALID_STATE_ERR", function "function() { input.selectionStart = 0; }")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:129:7)
Pass
assert_equals(null, null, "getting input.selectionEnd")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:130:7)
Pass
assert_throws_dom("INVALID_STATE_ERR", function "function() { input.selectionEnd = 0; }")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:131:7)
Pass
assert_equals(null, null, "getting input.selectionDirection")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:132:7)
Pass
assert_throws_dom("INVALID_STATE_ERR", function "function() { input.selectionDirection = "none"; }")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:133:7)
Pass
assert_throws_dom("INVALID_STATE_ERR", function "function() { input.setSelectionRange(0, 0); }")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:134:7)
Pass
assert_throws_dom("INVALID_STATE_ERR", function "function() { input.setRangeText('', 0, 0); }")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:135:7)
Passinput type time should not support variable-length selections
Asserts run
Pass
assert_equals("time", "time", "the given input type is not supported")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:126:7)
Pass
assert_equals(null, null, "getting input.selectionStart")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:128:7)
Pass
assert_throws_dom("INVALID_STATE_ERR", function "function() { input.selectionStart = 0; }")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:129:7)
Pass
assert_equals(null, null, "getting input.selectionEnd")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:130:7)
Pass
assert_throws_dom("INVALID_STATE_ERR", function "function() { input.selectionEnd = 0; }")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:131:7)
Pass
assert_equals(null, null, "getting input.selectionDirection")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:132:7)
Pass
assert_throws_dom("INVALID_STATE_ERR", function "function() { input.selectionDirection = "none"; }")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:133:7)
Pass
assert_throws_dom("INVALID_STATE_ERR", function "function() { input.setSelectionRange(0, 0); }")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:134:7)
Pass
assert_throws_dom("INVALID_STATE_ERR", function "function() { input.setRangeText('', 0, 0); }")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:135:7)
Passinput type datetime-local should not support variable-length selections
Asserts run
Pass
assert_equals("datetime-local", "datetime-local", "the given input type is not supported")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:126:7)
Pass
assert_equals(null, null, "getting input.selectionStart")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:128:7)
Pass
assert_throws_dom("INVALID_STATE_ERR", function "function() { input.selectionStart = 0; }")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:129:7)
Pass
assert_equals(null, null, "getting input.selectionEnd")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:130:7)
Pass
assert_throws_dom("INVALID_STATE_ERR", function "function() { input.selectionEnd = 0; }")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:131:7)
Pass
assert_equals(null, null, "getting input.selectionDirection")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:132:7)
Pass
assert_throws_dom("INVALID_STATE_ERR", function "function() { input.selectionDirection = "none"; }")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:133:7)
Pass
assert_throws_dom("INVALID_STATE_ERR", function "function() { input.setSelectionRange(0, 0); }")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:134:7)
Pass
assert_throws_dom("INVALID_STATE_ERR", function "function() { input.setRangeText('', 0, 0); }")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:135:7)
Passinput type number should not support variable-length selections
Asserts run
Pass
assert_equals("number", "number", "the given input type is not supported")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:126:7)
Pass
assert_equals(null, null, "getting input.selectionStart")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:128:7)
Pass
assert_throws_dom("INVALID_STATE_ERR", function "function() { input.selectionStart = 0; }")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:129:7)
Pass
assert_equals(null, null, "getting input.selectionEnd")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:130:7)
Pass
assert_throws_dom("INVALID_STATE_ERR", function "function() { input.selectionEnd = 0; }")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:131:7)
Pass
assert_equals(null, null, "getting input.selectionDirection")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:132:7)
Pass
assert_throws_dom("INVALID_STATE_ERR", function "function() { input.selectionDirection = "none"; }")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:133:7)
Pass
assert_throws_dom("INVALID_STATE_ERR", function "function() { input.setSelectionRange(0, 0); }")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:134:7)
Pass
assert_throws_dom("INVALID_STATE_ERR", function "function() { input.setRangeText('', 0, 0); }")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:135:7)
Passinput type range should not support variable-length selections
Asserts run
Pass
assert_equals("range", "range", "the given input type is not supported")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:126:7)
Pass
assert_equals(null, null, "getting input.selectionStart")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:128:7)
Pass
assert_throws_dom("INVALID_STATE_ERR", function "function() { input.selectionStart = 0; }")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:129:7)
Pass
assert_equals(null, null, "getting input.selectionEnd")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:130:7)
Pass
assert_throws_dom("INVALID_STATE_ERR", function "function() { input.selectionEnd = 0; }")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:131:7)
Pass
assert_equals(null, null, "getting input.selectionDirection")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:132:7)
Pass
assert_throws_dom("INVALID_STATE_ERR", function "function() { input.selectionDirection = "none"; }")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:133:7)
Pass
assert_throws_dom("INVALID_STATE_ERR", function "function() { input.setSelectionRange(0, 0); }")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:134:7)
Pass
assert_throws_dom("INVALID_STATE_ERR", function "function() { input.setRangeText('', 0, 0); }")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:135:7)
Passinput type color should not support variable-length selections
Asserts run
Pass
assert_equals("color", "color", "the given input type is not supported")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:126:7)
Pass
assert_equals(null, null, "getting input.selectionStart")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:128:7)
Pass
assert_throws_dom("INVALID_STATE_ERR", function "function() { input.selectionStart = 0; }")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:129:7)
Pass
assert_equals(null, null, "getting input.selectionEnd")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:130:7)
Pass
assert_throws_dom("INVALID_STATE_ERR", function "function() { input.selectionEnd = 0; }")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:131:7)
Pass
assert_equals(null, null, "getting input.selectionDirection")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:132:7)
Pass
assert_throws_dom("INVALID_STATE_ERR", function "function() { input.selectionDirection = "none"; }")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:133:7)
Pass
assert_throws_dom("INVALID_STATE_ERR", function "function() { input.setSelectionRange(0, 0); }")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:134:7)
Pass
assert_throws_dom("INVALID_STATE_ERR", function "function() { input.setRangeText('', 0, 0); }")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:135:7)
Passinput type checkbox should not support variable-length selections
Asserts run
Pass
assert_equals("checkbox", "checkbox", "the given input type is not supported")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:126:7)
Pass
assert_equals(null, null, "getting input.selectionStart")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:128:7)
Pass
assert_throws_dom("INVALID_STATE_ERR", function "function() { input.selectionStart = 0; }")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:129:7)
Pass
assert_equals(null, null, "getting input.selectionEnd")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:130:7)
Pass
assert_throws_dom("INVALID_STATE_ERR", function "function() { input.selectionEnd = 0; }")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:131:7)
Pass
assert_equals(null, null, "getting input.selectionDirection")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:132:7)
Pass
assert_throws_dom("INVALID_STATE_ERR", function "function() { input.selectionDirection = "none"; }")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:133:7)
Pass
assert_throws_dom("INVALID_STATE_ERR", function "function() { input.setSelectionRange(0, 0); }")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:134:7)
Pass
assert_throws_dom("INVALID_STATE_ERR", function "function() { input.setRangeText('', 0, 0); }")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:135:7)
Passinput type radio should not support variable-length selections
Asserts run
Pass
assert_equals("radio", "radio", "the given input type is not supported")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:126:7)
Pass
assert_equals(null, null, "getting input.selectionStart")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:128:7)
Pass
assert_throws_dom("INVALID_STATE_ERR", function "function() { input.selectionStart = 0; }")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:129:7)
Pass
assert_equals(null, null, "getting input.selectionEnd")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:130:7)
Pass
assert_throws_dom("INVALID_STATE_ERR", function "function() { input.selectionEnd = 0; }")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:131:7)
Pass
assert_equals(null, null, "getting input.selectionDirection")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:132:7)
Pass
assert_throws_dom("INVALID_STATE_ERR", function "function() { input.selectionDirection = "none"; }")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:133:7)
Pass
assert_throws_dom("INVALID_STATE_ERR", function "function() { input.setSelectionRange(0, 0); }")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:134:7)
Pass
assert_throws_dom("INVALID_STATE_ERR", function "function() { input.setRangeText('', 0, 0); }")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:135:7)
Passinput type file should not support variable-length selections
Asserts run
Pass
assert_equals("file", "file", "the given input type is not supported")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:126:7)
Pass
assert_equals(null, null, "getting input.selectionStart")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:128:7)
Pass
assert_throws_dom("INVALID_STATE_ERR", function "function() { input.selectionStart = 0; }")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:129:7)
Pass
assert_equals(null, null, "getting input.selectionEnd")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:130:7)
Pass
assert_throws_dom("INVALID_STATE_ERR", function "function() { input.selectionEnd = 0; }")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:131:7)
Pass
assert_equals(null, null, "getting input.selectionDirection")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:132:7)
Pass
assert_throws_dom("INVALID_STATE_ERR", function "function() { input.selectionDirection = "none"; }")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:133:7)
Pass
assert_throws_dom("INVALID_STATE_ERR", function "function() { input.setSelectionRange(0, 0); }")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:134:7)
Pass
assert_throws_dom("INVALID_STATE_ERR", function "function() { input.setRangeText('', 0, 0); }")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:135:7)
Passinput type submit should not support variable-length selections
Asserts run
Pass
assert_equals("submit", "submit", "the given input type is not supported")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:126:7)
Pass
assert_equals(null, null, "getting input.selectionStart")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:128:7)
Pass
assert_throws_dom("INVALID_STATE_ERR", function "function() { input.selectionStart = 0; }")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:129:7)
Pass
assert_equals(null, null, "getting input.selectionEnd")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:130:7)
Pass
assert_throws_dom("INVALID_STATE_ERR", function "function() { input.selectionEnd = 0; }")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:131:7)
Pass
assert_equals(null, null, "getting input.selectionDirection")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:132:7)
Pass
assert_throws_dom("INVALID_STATE_ERR", function "function() { input.selectionDirection = "none"; }")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:133:7)
Pass
assert_throws_dom("INVALID_STATE_ERR", function "function() { input.setSelectionRange(0, 0); }")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:134:7)
Pass
assert_throws_dom("INVALID_STATE_ERR", function "function() { input.setRangeText('', 0, 0); }")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:135:7)
Passinput type image should not support variable-length selections
Asserts run
Pass
assert_equals("image", "image", "the given input type is not supported")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:126:7)
Pass
assert_equals(null, null, "getting input.selectionStart")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:128:7)
Pass
assert_throws_dom("INVALID_STATE_ERR", function "function() { input.selectionStart = 0; }")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:129:7)
Pass
assert_equals(null, null, "getting input.selectionEnd")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:130:7)
Pass
assert_throws_dom("INVALID_STATE_ERR", function "function() { input.selectionEnd = 0; }")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:131:7)
Pass
assert_equals(null, null, "getting input.selectionDirection")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:132:7)
Pass
assert_throws_dom("INVALID_STATE_ERR", function "function() { input.selectionDirection = "none"; }")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:133:7)
Pass
assert_throws_dom("INVALID_STATE_ERR", function "function() { input.setSelectionRange(0, 0); }")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:134:7)
Pass
assert_throws_dom("INVALID_STATE_ERR", function "function() { input.setRangeText('', 0, 0); }")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:135:7)
Passinput type reset should not support variable-length selections
Asserts run
Pass
assert_equals("reset", "reset", "the given input type is not supported")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:126:7)
Pass
assert_equals(null, null, "getting input.selectionStart")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:128:7)
Pass
assert_throws_dom("INVALID_STATE_ERR", function "function() { input.selectionStart = 0; }")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:129:7)
Pass
assert_equals(null, null, "getting input.selectionEnd")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:130:7)
Pass
assert_throws_dom("INVALID_STATE_ERR", function "function() { input.selectionEnd = 0; }")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:131:7)
Pass
assert_equals(null, null, "getting input.selectionDirection")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:132:7)
Pass
assert_throws_dom("INVALID_STATE_ERR", function "function() { input.selectionDirection = "none"; }")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:133:7)
Pass
assert_throws_dom("INVALID_STATE_ERR", function "function() { input.setSelectionRange(0, 0); }")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:134:7)
Pass
assert_throws_dom("INVALID_STATE_ERR", function "function() { input.setRangeText('', 0, 0); }")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:135:7)
Passinput type button should not support variable-length selections
Asserts run
Pass
assert_equals("button", "button", "the given input type is not supported")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:126:7)
Pass
assert_equals(null, null, "getting input.selectionStart")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:128:7)
Pass
assert_throws_dom("INVALID_STATE_ERR", function "function() { input.selectionStart = 0; }")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:129:7)
Pass
assert_equals(null, null, "getting input.selectionEnd")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:130:7)
Pass
assert_throws_dom("INVALID_STATE_ERR", function "function() { input.selectionEnd = 0; }")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:131:7)
Pass
assert_equals(null, null, "getting input.selectionDirection")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:132:7)
Pass
assert_throws_dom("INVALID_STATE_ERR", function "function() { input.selectionDirection = "none"; }")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:133:7)
Pass
assert_throws_dom("INVALID_STATE_ERR", function "function() { input.setSelectionRange(0, 0); }")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:134:7)
Pass
assert_throws_dom("INVALID_STATE_ERR", function "function() { input.setRangeText('', 0, 0); }")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/selection.html:135:7)