Changeset 289813 in webkit
- Timestamp:
- Feb 15, 2022 7:22:01 AM (5 months ago)
- Location:
- trunk
- Files:
-
- 6 added
- 16 edited
- 1 copied
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/fast/forms/selection-functions-expected.txt (modified) (1 diff)
-
LayoutTests/fast/forms/selection-wrongtype-expected.txt (modified) (1 diff)
-
LayoutTests/fast/forms/selection-wrongtype.html (modified) (1 diff)
-
LayoutTests/imported/w3c/ChangeLog (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-input-element/selection-expected.txt (modified) (2 diffs)
-
LayoutTests/platform/gtk/imported/w3c/web-platform-tests/html/semantics/forms/textfieldselection (added)
-
LayoutTests/platform/gtk/imported/w3c/web-platform-tests/html/semantics/forms/textfieldselection/selection-not-application-expected.txt (added)
-
LayoutTests/platform/gtk/imported/w3c/web-platform-tests/html/semantics/forms/the-input-element/selection-expected.txt (modified) (2 diffs)
-
LayoutTests/platform/gtk/imported/w3c/web-platform-tests/html/semantics/forms/the-input-element/type-change-state-expected.txt (added)
-
LayoutTests/platform/ios-wk2/imported/w3c/web-platform-tests/html/semantics/forms/textfieldselection/selection-not-application-expected.txt (modified) (1 diff)
-
LayoutTests/platform/ios-wk2/imported/w3c/web-platform-tests/html/semantics/forms/the-input-element/type-change-state-expected.txt (modified) (4 diffs)
-
LayoutTests/platform/mac-wk1/imported/w3c/web-platform-tests/html/semantics/forms/textfieldselection (added)
-
LayoutTests/platform/mac-wk1/imported/w3c/web-platform-tests/html/semantics/forms/textfieldselection/selection-not-application-expected.txt (added)
-
LayoutTests/platform/mac-wk1/imported/w3c/web-platform-tests/html/semantics/forms/the-input-element/selection-expected.txt (copied) (copied from trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-input-element/selection-expected.txt) (3 diffs)
-
LayoutTests/platform/mac-wk1/imported/w3c/web-platform-tests/html/semantics/forms/the-input-element/type-change-state-expected.txt (added)
-
LayoutTests/platform/mac-wk2/imported/w3c/web-platform-tests/html/semantics/forms/textfieldselection/selection-not-application-expected.txt (modified) (1 diff)
-
LayoutTests/platform/mac-wk2/imported/w3c/web-platform-tests/html/semantics/forms/the-input-element/selection-expected.txt (modified) (2 diffs)
-
LayoutTests/platform/mac-wk2/imported/w3c/web-platform-tests/html/semantics/forms/the-input-element/type-change-state-expected.txt (modified) (4 diffs)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/html/HTMLInputElement.cpp (modified) (4 diffs)
-
Source/WebCore/html/HTMLInputElement.h (modified) (1 diff)
-
Source/WebCore/html/HTMLInputElement.idl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r289810 r289813 1 2022-02-15 Ziran Sun <zsun@igalia.com> 2 3 [Forms] the select() method returns should be in line with specs 4 https://bugs.webkit.org/show_bug.cgi?id=236435 5 6 Reviewed by Chris Dumez. 7 8 * fast/forms/selection-functions-expected.txt: 9 * fast/forms/selection-wrongtype-expected.txt: 10 * fast/forms/selection-wrongtype.html: 11 * platform/gtk/imported/w3c/web-platform-tests/html/semantics/forms/textfieldselection/selection-not-application-expected.txt: Added. 12 * platform/gtk/imported/w3c/web-platform-tests/html/semantics/forms/the-input-element/selection-expected.txt: 13 * platform/gtk/imported/w3c/web-platform-tests/html/semantics/forms/the-input-element/type-change-state-expected.txt: Added. 14 * platform/ios-wk2/imported/w3c/web-platform-tests/html/semantics/forms/textfieldselection/selection-not-application-expected.txt: 15 * platform/ios-wk2/imported/w3c/web-platform-tests/html/semantics/forms/the-input-element/type-change-state-expected.txt: 16 * platform/mac-wk1/imported/w3c/web-platform-tests/html/semantics/forms/textfieldselection/selection-not-application-expected.txt: Added. 17 * platform/mac-wk1/imported/w3c/web-platform-tests/html/semantics/forms/the-input-element/selection-expected.txt: Copied from LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-input-element/selection-expected.txt. 18 * platform/mac-wk1/imported/w3c/web-platform-tests/html/semantics/forms/the-input-element/type-change-state-expected.txt: Added. 19 * platform/mac-wk2/imported/w3c/web-platform-tests/html/semantics/forms/textfieldselection/selection-not-application-expected.txt: 20 * platform/mac-wk2/imported/w3c/web-platform-tests/html/semantics/forms/the-input-element/selection-expected.txt: 21 * platform/mac-wk2/imported/w3c/web-platform-tests/html/semantics/forms/the-input-element/type-change-state-expected.txt: 22 1 23 2022-02-15 Martin Robinson <mrobinson@webkit.org> 2 24 -
trunk/LayoutTests/fast/forms/selection-functions-expected.txt
r267644 r289813 47 47 48 48 ===button=== 49 button.selectionStart threw exception49 button.selectionStart did not throw exception 50 50 button.selectionStart = 0 threw exception 51 button.selectionEnd threw exception51 button.selectionEnd did not throw exception 52 52 button.selectionEnd = 0 threw exception 53 53 button.setSelectionRange defined -
trunk/LayoutTests/fast/forms/selection-wrongtype-expected.txt
r92088 r289813 4 4 5 5 6 PASS button - retrieving selectionStart threw an exception 7 PASS button - assigning selectionStart threw an exception 8 PASS button - retrieving selectionEnd threw an exception 9 PASS button - assigning selectionEnd threw an exception 10 PASS button - retrieving selectionDirection threw an exception 11 PASS button - assigning selectionDirection threw an exception 12 PASS checkbox - retrieving selectionStart threw an exception 13 PASS checkbox - assigning selectionStart threw an exception 14 PASS checkbox - retrieving selectionEnd threw an exception 15 PASS checkbox - assigning selectionEnd threw an exception 16 PASS checkbox - retrieving selectionDirection threw an exception 17 PASS checkbox - assigning selectionDirection threw an exception 18 PASS file - retrieving selectionStart threw an exception 19 PASS file - assigning selectionStart threw an exception 20 PASS file - retrieving selectionEnd threw an exception 21 PASS file - assigning selectionEnd threw an exception 22 PASS file - retrieving selectionDirection threw an exception 23 PASS file - assigning selectionDirection threw an exception 24 PASS hidden - retrieving selectionStart threw an exception 25 PASS hidden - assigning selectionStart threw an exception 26 PASS hidden - retrieving selectionEnd threw an exception 27 PASS hidden - assigning selectionEnd threw an exception 28 PASS hidden - retrieving selectionDirection threw an exception 29 PASS hidden - assigning selectionDirection threw an exception 30 PASS image - retrieving selectionStart threw an exception 31 PASS image - assigning selectionStart threw an exception 32 PASS image - retrieving selectionEnd threw an exception 33 PASS image - assigning selectionEnd threw an exception 34 PASS image - retrieving selectionDirection threw an exception 35 PASS image - assigning selectionDirection threw an exception 36 PASS radio - retrieving selectionStart threw an exception 37 PASS radio - assigning selectionStart threw an exception 38 PASS radio - retrieving selectionEnd threw an exception 39 PASS radio - assigning selectionEnd threw an exception 40 PASS radio - retrieving selectionDirection threw an exception 41 PASS radio - assigning selectionDirection threw an exception 42 PASS range - retrieving selectionStart threw an exception 43 PASS range - assigning selectionStart threw an exception 44 PASS range - retrieving selectionEnd threw an exception 45 PASS range - assigning selectionEnd threw an exception 46 PASS range - retrieving selectionDirection threw an exception 47 PASS range - assigning selectionDirection threw an exception 48 PASS reset - retrieving selectionStart threw an exception 49 PASS reset - assigning selectionStart threw an exception 50 PASS reset - retrieving selectionEnd threw an exception 51 PASS reset - assigning selectionEnd threw an exception 52 PASS reset - retrieving selectionDirection threw an exception 53 PASS reset - assigning selectionDirection threw an exception 54 PASS submit - retrieving selectionStart threw an exception 55 PASS submit - assigning selectionStart threw an exception 56 PASS submit - retrieving selectionEnd threw an exception 57 PASS submit - assigning selectionEnd threw an exception 58 PASS submit - retrieving selectionDirection threw an exception 59 PASS submit - assigning selectionDirection threw an exception 6 PASS test.selectionStart is null 7 PASS test.selectionStart = 0 threw exception InvalidStateError: The input element's type ('button') does not support selection.. 8 PASS test.selectionEnd is null 9 PASS test.selectionEnd = 0 threw exception InvalidStateError: The input element's type ('button') does not support selection.. 10 PASS test.selectionDirection is null 11 PASS test.selectionDirection = 0 threw exception InvalidStateError: The input element's type ('button') does not support selection.. 12 PASS test.selectionRange() threw exception TypeError: test.selectionRange is not a function. (In 'test.selectionRange()', 'test.selectionRange' is undefined). 13 PASS test.selectionStart is null 14 PASS test.selectionStart = 0 threw exception InvalidStateError: The input element's type ('checkbox') does not support selection.. 15 PASS test.selectionEnd is null 16 PASS test.selectionEnd = 0 threw exception InvalidStateError: The input element's type ('checkbox') does not support selection.. 17 PASS test.selectionDirection is null 18 PASS test.selectionDirection = 0 threw exception InvalidStateError: The input element's type ('checkbox') does not support selection.. 19 PASS test.selectionRange() threw exception TypeError: test.selectionRange is not a function. (In 'test.selectionRange()', 'test.selectionRange' is undefined). 20 PASS test.selectionStart is null 21 PASS test.selectionStart = 0 threw exception InvalidStateError: The input element's type ('file') does not support selection.. 22 PASS test.selectionEnd is null 23 PASS test.selectionEnd = 0 threw exception InvalidStateError: The input element's type ('file') does not support selection.. 24 PASS test.selectionDirection is null 25 PASS test.selectionDirection = 0 threw exception InvalidStateError: The input element's type ('file') does not support selection.. 26 PASS test.selectionRange() threw exception TypeError: test.selectionRange is not a function. (In 'test.selectionRange()', 'test.selectionRange' is undefined). 27 PASS test.selectionStart is null 28 PASS test.selectionStart = 0 threw exception InvalidStateError: The input element's type ('hidden') does not support selection.. 29 PASS test.selectionEnd is null 30 PASS test.selectionEnd = 0 threw exception InvalidStateError: The input element's type ('hidden') does not support selection.. 31 PASS test.selectionDirection is null 32 PASS test.selectionDirection = 0 threw exception InvalidStateError: The input element's type ('hidden') does not support selection.. 33 PASS test.selectionRange() threw exception TypeError: test.selectionRange is not a function. (In 'test.selectionRange()', 'test.selectionRange' is undefined). 34 PASS test.selectionStart is null 35 PASS test.selectionStart = 0 threw exception InvalidStateError: The input element's type ('image') does not support selection.. 36 PASS test.selectionEnd is null 37 PASS test.selectionEnd = 0 threw exception InvalidStateError: The input element's type ('image') does not support selection.. 38 PASS test.selectionDirection is null 39 PASS test.selectionDirection = 0 threw exception InvalidStateError: The input element's type ('image') does not support selection.. 40 PASS test.selectionRange() threw exception TypeError: test.selectionRange is not a function. (In 'test.selectionRange()', 'test.selectionRange' is undefined). 41 PASS test.selectionStart is null 42 PASS test.selectionStart = 0 threw exception InvalidStateError: The input element's type ('radio') does not support selection.. 43 PASS test.selectionEnd is null 44 PASS test.selectionEnd = 0 threw exception InvalidStateError: The input element's type ('radio') does not support selection.. 45 PASS test.selectionDirection is null 46 PASS test.selectionDirection = 0 threw exception InvalidStateError: The input element's type ('radio') does not support selection.. 47 PASS test.selectionRange() threw exception TypeError: test.selectionRange is not a function. (In 'test.selectionRange()', 'test.selectionRange' is undefined). 48 PASS test.selectionStart is null 49 PASS test.selectionStart = 0 threw exception InvalidStateError: The input element's type ('range') does not support selection.. 50 PASS test.selectionEnd is null 51 PASS test.selectionEnd = 0 threw exception InvalidStateError: The input element's type ('range') does not support selection.. 52 PASS test.selectionDirection is null 53 PASS test.selectionDirection = 0 threw exception InvalidStateError: The input element's type ('range') does not support selection.. 54 PASS test.selectionRange() threw exception TypeError: test.selectionRange is not a function. (In 'test.selectionRange()', 'test.selectionRange' is undefined). 55 PASS test.selectionStart is null 56 PASS test.selectionStart = 0 threw exception InvalidStateError: The input element's type ('reset') does not support selection.. 57 PASS test.selectionEnd is null 58 PASS test.selectionEnd = 0 threw exception InvalidStateError: The input element's type ('reset') does not support selection.. 59 PASS test.selectionDirection is null 60 PASS test.selectionDirection = 0 threw exception InvalidStateError: The input element's type ('reset') does not support selection.. 61 PASS test.selectionRange() threw exception TypeError: test.selectionRange is not a function. (In 'test.selectionRange()', 'test.selectionRange' is undefined). 62 PASS test.selectionStart is null 63 PASS test.selectionStart = 0 threw exception InvalidStateError: The input element's type ('submit') does not support selection.. 64 PASS test.selectionEnd is null 65 PASS test.selectionEnd = 0 threw exception InvalidStateError: The input element's type ('submit') does not support selection.. 66 PASS test.selectionDirection is null 67 PASS test.selectionDirection = 0 threw exception InvalidStateError: The input element's type ('submit') does not support selection.. 68 PASS test.selectionRange() threw exception TypeError: test.selectionRange is not a function. (In 'test.selectionRange()', 'test.selectionRange' is undefined). 60 69 PASS successfullyParsed is true 61 70 -
trunk/LayoutTests/fast/forms/selection-wrongtype.html
r155268 r289813 18 18 test.focus(); 19 19 20 var name = test.type + ' - retrieving selectionStart'; 21 try { 22 var value = test.selectionStart; 23 testFailed(name + ' did not throw an exception'); 24 } catch (e) { 25 testPassed(name + ' threw an exception'); 26 } 27 28 name = test.type + ' - assigning selectionStart'; 29 try { 30 test.selectionStart = 0; 31 testFailed(name + ' did not throw an exception'); 32 } catch (e) { 33 testPassed(name + ' threw an exception'); 34 } 35 36 var name = test.type + ' - retrieving selectionEnd'; 37 try { 38 var value = test.selectionEnd; 39 testFailed(name + ' did not throw an exception'); 40 } catch (e) { 41 testPassed(name + ' threw an exception'); 42 } 43 44 name = test.type + ' - assigning selectionEnd'; 45 try { 46 test.selectionEnd = 0; 47 testFailed(name + ' did not throw an exception'); 48 } catch (e) { 49 testPassed(name + ' threw an exception'); 50 } 51 52 name = test.type + ' - retrieving selectionDirection'; 53 try { 54 var value = test.selectionDirection; 55 testFailed(name + ' did not throw an exception'); 56 } catch (e) { 57 testPassed(name + ' threw an exception'); 58 } 59 60 name = test.type + ' - assigning selectionDirection'; 61 try { 62 test.selectionDirection = 'forward'; 63 testFailed(name + ' did not throw an exception'); 64 } catch (e) { 65 testPassed(name + ' threw an exception'); 66 } 20 shouldBe('test.selectionStart', 'null'); 21 shouldThrow('test.selectionStart = 0'); 22 shouldBe('test.selectionEnd', 'null'); 23 shouldThrow('test.selectionEnd = 0'); 24 shouldBe('test.selectionDirection', 'null'); 25 shouldThrow('test.selectionDirection = 0'); 26 shouldThrow('test.selectionRange()'); 67 27 } 68 28 -
trunk/LayoutTests/imported/w3c/ChangeLog
r289812 r289813 1 2022-02-15 Ziran Sun <zsun@igalia.com> 2 3 [Forms] the select() method returns should be in line with specs 4 https://bugs.webkit.org/show_bug.cgi?id=236435 5 6 Reviewed by Chris Dumez. 7 8 * web-platform-tests/html/semantics/forms/the-input-element/selection-expected.txt: 9 1 10 2022-02-15 Ziran Sun <zsun@igalia.com> 2 11 -
trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-input-element/selection-expected.txt
r267646 r289813 7 7 PASS input type email should support the select() method 8 8 PASS input type password should support the select() method 9 FAIL input type date should support the select() method assert_equals: the given input type is not supported expected "date" but got "text" 10 FAIL input type month should support the select() method assert_equals: the given input type is not supported expected "month" but got "text" 11 FAIL input type week should support the select() method assert_equals: the given input type is not supported expected "week" but got "text" 12 FAIL input type time should support the select() method assert_equals: the given input type is not supported expected "time" but got "text" 13 FAIL input type datetime-local should support the select() method assert_equals: the given input type is not supported expected "datetime-local" but got "text" 9 PASS input type date should support the select() method 10 PASS input type month should support the select() method 11 PASS input type week should support the select() method 12 PASS input type time should support the select() method 13 PASS input type datetime-local should support the select() method 14 14 PASS input type number should support the select() method 15 FAIL input type color should support the select() method assert_equals: the given input type is not supported expected "color" but got "text" 15 PASS input type color should support the select() method 16 16 PASS input type file should support the select() method 17 FAIL input type hidden should do nothing when the select() method is called (but, not throw) Type error 18 FAIL input type range should do nothing when the select() method is called (but, not throw) Type error 19 FAIL input type checkbox should do nothing when the select() method is called (but, not throw) Type error 20 FAIL input type radio should do nothing when the select() method is called (but, not throw) Type error 21 FAIL input type submit should do nothing when the select() method is called (but, not throw) Type error 22 FAIL input type image should do nothing when the select() method is called (but, not throw) Type error 23 FAIL input type reset should do nothing when the select() method is called (but, not throw) Type error 24 FAIL input type button should do nothing when the select() method is called (but, not throw) Type error 17 PASS input type hidden should do nothing when the select() method is called (but, not throw) 18 PASS input type range should do nothing when the select() method is called (but, not throw) 19 PASS input type checkbox should do nothing when the select() method is called (but, not throw) 20 PASS input type radio should do nothing when the select() method is called (but, not throw) 21 PASS input type submit should do nothing when the select() method is called (but, not throw) 22 PASS input type image should do nothing when the select() method is called (but, not throw) 23 PASS input type reset should do nothing when the select() method is called (but, not throw) 24 PASS input type button should do nothing when the select() method is called (but, not throw) 25 25 PASS Input element programmatic selection support 1 26 26 PASS input type text should support all selection attributes and methods … … 29 29 PASS input type tel should support all selection attributes and methods 30 30 PASS input type password should support all selection attributes and methods 31 FAIL input type hidden should not support variable-length selections Type error 32 FAIL input type email should not support variable-length selections assert_equals: getting input.selectionStart expected (object) null but got (number) 0 33 FAIL input type date should not support variable-length selections assert_equals: the given input type is not supported expected "date" but got "text" 34 FAIL input type month should not support variable-length selections assert_equals: the given input type is not supported expected "month" but got "text" 35 FAIL input type week should not support variable-length selections assert_equals: the given input type is not supported expected "week" but got "text" 36 FAIL input type time should not support variable-length selections assert_equals: the given input type is not supported expected "time" but got "text" 37 FAIL input type datetime-local should not support variable-length selections assert_equals: the given input type is not supported expected "datetime-local" but got "text" 38 FAIL input type number should not support variable-length selections assert_equals: getting input.selectionStart expected (object) null but got (number) 0 39 FAIL input type range should not support variable-length selections Type error 40 FAIL input type color should not support variable-length selections assert_equals: the given input type is not supported expected "color" but got "text" 41 FAIL input type checkbox should not support variable-length selections Type error 42 FAIL input type radio should not support variable-length selections Type error 43 FAIL input type file should not support variable-length selections Type error 44 FAIL input type submit should not support variable-length selections Type error 45 FAIL input type image should not support variable-length selections Type error 46 FAIL input type reset should not support variable-length selections Type error 47 FAIL input type button should not support variable-length selections Type error 31 PASS input type hidden should not support variable-length selections 32 PASS input type email should not support variable-length selections 33 PASS input type date should not support variable-length selections 34 PASS input type month should not support variable-length selections 35 PASS input type week should not support variable-length selections 36 PASS input type time should not support variable-length selections 37 PASS input type datetime-local should not support variable-length selections 38 PASS input type number should not support variable-length selections 39 PASS input type range should not support variable-length selections 40 PASS input type color should not support variable-length selections 41 PASS input type checkbox should not support variable-length selections 42 PASS input type radio should not support variable-length selections 43 PASS input type file should not support variable-length selections 44 PASS input type submit should not support variable-length selections 45 PASS input type image should not support variable-length selections 46 PASS input type reset should not support variable-length selections 47 PASS input type button should not support variable-length selections 48 48 -
trunk/LayoutTests/platform/gtk/imported/w3c/web-platform-tests/html/semantics/forms/the-input-element/selection-expected.txt
r276481 r289813 15 15 PASS input type color should support the select() method 16 16 PASS input type file should support the select() method 17 FAIL input type hidden should do nothing when the select() method is called (but, not throw) Type error 18 FAIL input type range should do nothing when the select() method is called (but, not throw) Type error 19 FAIL input type checkbox should do nothing when the select() method is called (but, not throw) Type error 20 FAIL input type radio should do nothing when the select() method is called (but, not throw) Type error 21 FAIL input type submit should do nothing when the select() method is called (but, not throw) Type error 22 FAIL input type image should do nothing when the select() method is called (but, not throw) Type error 23 FAIL input type reset should do nothing when the select() method is called (but, not throw) Type error 24 FAIL input type button should do nothing when the select() method is called (but, not throw) Type error 17 PASS input type hidden should do nothing when the select() method is called (but, not throw) 18 PASS input type range should do nothing when the select() method is called (but, not throw) 19 PASS input type checkbox should do nothing when the select() method is called (but, not throw) 20 PASS input type radio should do nothing when the select() method is called (but, not throw) 21 PASS input type submit should do nothing when the select() method is called (but, not throw) 22 PASS input type image should do nothing when the select() method is called (but, not throw) 23 PASS input type reset should do nothing when the select() method is called (but, not throw) 24 PASS input type button should do nothing when the select() method is called (but, not throw) 25 25 PASS Input element programmatic selection support 1 26 26 PASS input type text should support all selection attributes and methods … … 29 29 PASS input type tel should support all selection attributes and methods 30 30 PASS input type password should support all selection attributes and methods 31 FAIL input type hidden should not support variable-length selections Type error 32 FAIL input type email should not support variable-length selections assert_equals: getting input.selectionStart expected (object) null but got (number) 0 33 FAIL input type date should not support variable-length selections Type error 34 FAIL input type month should not support variable-length selections Type error 35 FAIL input type week should not support variable-length selections Type error 36 FAIL input type time should not support variable-length selections Type error 37 FAIL input type datetime-local should not support variable-length selections Type error 38 FAIL input type number should not support variable-length selections assert_equals: getting input.selectionStart expected (object) null but got (number) 0 39 FAIL input type range should not support variable-length selections Type error 40 FAIL input type color should not support variable-length selections Type error 41 FAIL input type checkbox should not support variable-length selections Type error 42 FAIL input type radio should not support variable-length selections Type error 43 FAIL input type file should not support variable-length selections Type error 44 FAIL input type submit should not support variable-length selections Type error 45 FAIL input type image should not support variable-length selections Type error 46 FAIL input type reset should not support variable-length selections Type error 47 FAIL input type button should not support variable-length selections Type error 31 PASS input type hidden should not support variable-length selections 32 PASS input type email should not support variable-length selections 33 PASS input type date should not support variable-length selections 34 PASS input type month should not support variable-length selections 35 PASS input type week should not support variable-length selections 36 PASS input type time should not support variable-length selections 37 PASS input type datetime-local should not support variable-length selections 38 PASS input type number should not support variable-length selections 39 PASS input type range should not support variable-length selections 40 PASS input type color should not support variable-length selections 41 PASS input type checkbox should not support variable-length selections 42 PASS input type radio should not support variable-length selections 43 PASS input type file should not support variable-length selections 44 PASS input type submit should not support variable-length selections 45 PASS input type image should not support variable-length selections 46 PASS input type reset should not support variable-length selections 47 PASS input type button should not support variable-length selections 48 48 -
trunk/LayoutTests/platform/ios-wk2/imported/w3c/web-platform-tests/html/semantics/forms/textfieldselection/selection-not-application-expected.txt
r279427 r289813 1 1 2 FAIL selectionStart on an input[type=hidden] returns null Type error 3 FAIL selectionEnd on an input[type=hidden] returns null Type error 4 FAIL selectionDirection on an input[type=hidden] returns null Type error 5 FAIL assigning selectionStart on an input[type=hidden] throws InvalidStateError assert_throws_dom: function "function (){ 6 el.selectionStart = 0; 7 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 8 FAIL assigning selectionEnd on an input[type=hidden] throws InvalidStateError assert_throws_dom: function "function (){ 9 el.selectionEnd = 0; 10 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 11 FAIL assigning selectionDirection on an input[type=hidden] throws InvalidStateError assert_throws_dom: function "function (){ 12 el.selectionDirection = 'none'; 13 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 2 PASS selectionStart on an input[type=hidden] returns null 3 PASS selectionEnd on an input[type=hidden] returns null 4 PASS selectionDirection on an input[type=hidden] returns null 5 PASS assigning selectionStart on an input[type=hidden] throws InvalidStateError 6 PASS assigning selectionEnd on an input[type=hidden] throws InvalidStateError 7 PASS assigning selectionDirection on an input[type=hidden] throws InvalidStateError 14 8 PASS setRangeText on an input[type=hidden] throws InvalidStateError 15 FAIL setSelectionRange on an input[type=hidden] throws InvalidStateError assert_throws_dom: function "function (){ 16 el.setSelectionRange(0, 1); 17 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 18 FAIL selectionStart on an input[type=email] returns null assert_equals: expected (object) null but got (number) 0 19 FAIL selectionEnd on an input[type=email] returns null assert_equals: expected (object) null but got (number) 0 20 FAIL selectionDirection on an input[type=email] returns null assert_equals: expected (object) null but got (string) "none" 21 FAIL assigning selectionStart on an input[type=email] throws InvalidStateError assert_throws_dom: function "function (){ 22 el.selectionStart = 0; 23 }" did not throw 24 FAIL assigning selectionEnd on an input[type=email] throws InvalidStateError assert_throws_dom: function "function (){ 25 el.selectionEnd = 0; 26 }" did not throw 27 FAIL assigning selectionDirection on an input[type=email] throws InvalidStateError assert_throws_dom: function "function (){ 28 el.selectionDirection = 'none'; 29 }" did not throw 9 PASS setSelectionRange on an input[type=hidden] throws InvalidStateError 10 PASS selectionStart on an input[type=email] returns null 11 PASS selectionEnd on an input[type=email] returns null 12 PASS selectionDirection on an input[type=email] returns null 13 PASS assigning selectionStart on an input[type=email] throws InvalidStateError 14 PASS assigning selectionEnd on an input[type=email] throws InvalidStateError 15 PASS assigning selectionDirection on an input[type=email] throws InvalidStateError 30 16 PASS setRangeText on an input[type=email] throws InvalidStateError 31 FAIL setSelectionRange on an input[type=email] throws InvalidStateError assert_throws_dom: function "function (){ 32 el.setSelectionRange(0, 1); 33 }" did not throw 34 FAIL selectionStart on an input[type=datetime-local] returns null Type error 35 FAIL selectionEnd on an input[type=datetime-local] returns null Type error 36 FAIL selectionDirection on an input[type=datetime-local] returns null Type error 37 FAIL assigning selectionStart on an input[type=datetime-local] throws InvalidStateError assert_throws_dom: function "function (){ 38 el.selectionStart = 0; 39 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 40 FAIL assigning selectionEnd on an input[type=datetime-local] throws InvalidStateError assert_throws_dom: function "function (){ 41 el.selectionEnd = 0; 42 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 43 FAIL assigning selectionDirection on an input[type=datetime-local] throws InvalidStateError assert_throws_dom: function "function (){ 44 el.selectionDirection = 'none'; 45 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 17 PASS setSelectionRange on an input[type=email] throws InvalidStateError 18 PASS selectionStart on an input[type=datetime-local] returns null 19 PASS selectionEnd on an input[type=datetime-local] returns null 20 PASS selectionDirection on an input[type=datetime-local] returns null 21 PASS assigning selectionStart on an input[type=datetime-local] throws InvalidStateError 22 PASS assigning selectionEnd on an input[type=datetime-local] throws InvalidStateError 23 PASS assigning selectionDirection on an input[type=datetime-local] throws InvalidStateError 46 24 PASS setRangeText on an input[type=datetime-local] throws InvalidStateError 47 FAIL setSelectionRange on an input[type=datetime-local] throws InvalidStateError assert_throws_dom: function "function (){ 48 el.setSelectionRange(0, 1); 49 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 50 FAIL selectionStart on an input[type=date] returns null Type error 51 FAIL selectionEnd on an input[type=date] returns null Type error 52 FAIL selectionDirection on an input[type=date] returns null Type error 53 FAIL assigning selectionStart on an input[type=date] throws InvalidStateError assert_throws_dom: function "function (){ 54 el.selectionStart = 0; 55 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 56 FAIL assigning selectionEnd on an input[type=date] throws InvalidStateError assert_throws_dom: function "function (){ 57 el.selectionEnd = 0; 58 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 59 FAIL assigning selectionDirection on an input[type=date] throws InvalidStateError assert_throws_dom: function "function (){ 60 el.selectionDirection = 'none'; 61 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 25 PASS setSelectionRange on an input[type=datetime-local] throws InvalidStateError 26 PASS selectionStart on an input[type=date] returns null 27 PASS selectionEnd on an input[type=date] returns null 28 PASS selectionDirection on an input[type=date] returns null 29 PASS assigning selectionStart on an input[type=date] throws InvalidStateError 30 PASS assigning selectionEnd on an input[type=date] throws InvalidStateError 31 PASS assigning selectionDirection on an input[type=date] throws InvalidStateError 62 32 PASS setRangeText on an input[type=date] throws InvalidStateError 63 FAIL setSelectionRange on an input[type=date] throws InvalidStateError assert_throws_dom: function "function (){ 64 el.setSelectionRange(0, 1); 65 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 66 FAIL selectionStart on an input[type=month] returns null Type error 67 FAIL selectionEnd on an input[type=month] returns null Type error 68 FAIL selectionDirection on an input[type=month] returns null Type error 69 FAIL assigning selectionStart on an input[type=month] throws InvalidStateError assert_throws_dom: function "function (){ 70 el.selectionStart = 0; 71 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 72 FAIL assigning selectionEnd on an input[type=month] throws InvalidStateError assert_throws_dom: function "function (){ 73 el.selectionEnd = 0; 74 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 75 FAIL assigning selectionDirection on an input[type=month] throws InvalidStateError assert_throws_dom: function "function (){ 76 el.selectionDirection = 'none'; 77 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 33 PASS setSelectionRange on an input[type=date] throws InvalidStateError 34 PASS selectionStart on an input[type=month] returns null 35 PASS selectionEnd on an input[type=month] returns null 36 PASS selectionDirection on an input[type=month] returns null 37 PASS assigning selectionStart on an input[type=month] throws InvalidStateError 38 PASS assigning selectionEnd on an input[type=month] throws InvalidStateError 39 PASS assigning selectionDirection on an input[type=month] throws InvalidStateError 78 40 PASS setRangeText on an input[type=month] throws InvalidStateError 79 FAIL setSelectionRange on an input[type=month] throws InvalidStateError assert_throws_dom: function "function (){ 80 el.setSelectionRange(0, 1); 81 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 82 FAIL selectionStart on an input[type=week] returns null Type error 83 FAIL selectionEnd on an input[type=week] returns null Type error 84 FAIL selectionDirection on an input[type=week] returns null Type error 85 FAIL assigning selectionStart on an input[type=week] throws InvalidStateError assert_throws_dom: function "function (){ 86 el.selectionStart = 0; 87 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 88 FAIL assigning selectionEnd on an input[type=week] throws InvalidStateError assert_throws_dom: function "function (){ 89 el.selectionEnd = 0; 90 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 91 FAIL assigning selectionDirection on an input[type=week] throws InvalidStateError assert_throws_dom: function "function (){ 92 el.selectionDirection = 'none'; 93 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 41 PASS setSelectionRange on an input[type=month] throws InvalidStateError 42 PASS selectionStart on an input[type=week] returns null 43 PASS selectionEnd on an input[type=week] returns null 44 PASS selectionDirection on an input[type=week] returns null 45 PASS assigning selectionStart on an input[type=week] throws InvalidStateError 46 PASS assigning selectionEnd on an input[type=week] throws InvalidStateError 47 PASS assigning selectionDirection on an input[type=week] throws InvalidStateError 94 48 PASS setRangeText on an input[type=week] throws InvalidStateError 95 FAIL setSelectionRange on an input[type=week] throws InvalidStateError assert_throws_dom: function "function (){ 96 el.setSelectionRange(0, 1); 97 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 98 FAIL selectionStart on an input[type=time] returns null Type error 99 FAIL selectionEnd on an input[type=time] returns null Type error 100 FAIL selectionDirection on an input[type=time] returns null Type error 101 FAIL assigning selectionStart on an input[type=time] throws InvalidStateError assert_throws_dom: function "function (){ 102 el.selectionStart = 0; 103 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 104 FAIL assigning selectionEnd on an input[type=time] throws InvalidStateError assert_throws_dom: function "function (){ 105 el.selectionEnd = 0; 106 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 107 FAIL assigning selectionDirection on an input[type=time] throws InvalidStateError assert_throws_dom: function "function (){ 108 el.selectionDirection = 'none'; 109 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 49 PASS setSelectionRange on an input[type=week] throws InvalidStateError 50 PASS selectionStart on an input[type=time] returns null 51 PASS selectionEnd on an input[type=time] returns null 52 PASS selectionDirection on an input[type=time] returns null 53 PASS assigning selectionStart on an input[type=time] throws InvalidStateError 54 PASS assigning selectionEnd on an input[type=time] throws InvalidStateError 55 PASS assigning selectionDirection on an input[type=time] throws InvalidStateError 110 56 PASS setRangeText on an input[type=time] throws InvalidStateError 111 FAIL setSelectionRange on an input[type=time] throws InvalidStateError assert_throws_dom: function "function (){ 112 el.setSelectionRange(0, 1); 113 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 114 FAIL selectionStart on an input[type=number] returns null assert_equals: expected (object) null but got (number) 0 115 FAIL selectionEnd on an input[type=number] returns null assert_equals: expected (object) null but got (number) 0 116 FAIL selectionDirection on an input[type=number] returns null assert_equals: expected (object) null but got (string) "none" 117 FAIL assigning selectionStart on an input[type=number] throws InvalidStateError assert_throws_dom: function "function (){ 118 el.selectionStart = 0; 119 }" did not throw 120 FAIL assigning selectionEnd on an input[type=number] throws InvalidStateError assert_throws_dom: function "function (){ 121 el.selectionEnd = 0; 122 }" did not throw 123 FAIL assigning selectionDirection on an input[type=number] throws InvalidStateError assert_throws_dom: function "function (){ 124 el.selectionDirection = 'none'; 125 }" did not throw 57 PASS setSelectionRange on an input[type=time] throws InvalidStateError 58 PASS selectionStart on an input[type=number] returns null 59 PASS selectionEnd on an input[type=number] returns null 60 PASS selectionDirection on an input[type=number] returns null 61 PASS assigning selectionStart on an input[type=number] throws InvalidStateError 62 PASS assigning selectionEnd on an input[type=number] throws InvalidStateError 63 PASS assigning selectionDirection on an input[type=number] throws InvalidStateError 126 64 PASS setRangeText on an input[type=number] throws InvalidStateError 127 FAIL setSelectionRange on an input[type=number] throws InvalidStateError assert_throws_dom: function "function (){ 128 el.setSelectionRange(0, 1); 129 }" did not throw 130 FAIL selectionStart on an input[type=range] returns null Type error 131 FAIL selectionEnd on an input[type=range] returns null Type error 132 FAIL selectionDirection on an input[type=range] returns null Type error 133 FAIL assigning selectionStart on an input[type=range] throws InvalidStateError assert_throws_dom: function "function (){ 134 el.selectionStart = 0; 135 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 136 FAIL assigning selectionEnd on an input[type=range] throws InvalidStateError assert_throws_dom: function "function (){ 137 el.selectionEnd = 0; 138 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 139 FAIL assigning selectionDirection on an input[type=range] throws InvalidStateError assert_throws_dom: function "function (){ 140 el.selectionDirection = 'none'; 141 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 65 PASS setSelectionRange on an input[type=number] throws InvalidStateError 66 PASS selectionStart on an input[type=range] returns null 67 PASS selectionEnd on an input[type=range] returns null 68 PASS selectionDirection on an input[type=range] returns null 69 PASS assigning selectionStart on an input[type=range] throws InvalidStateError 70 PASS assigning selectionEnd on an input[type=range] throws InvalidStateError 71 PASS assigning selectionDirection on an input[type=range] throws InvalidStateError 142 72 PASS setRangeText on an input[type=range] throws InvalidStateError 143 FAIL setSelectionRange on an input[type=range] throws InvalidStateError assert_throws_dom: function "function (){ 144 el.setSelectionRange(0, 1); 145 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 146 FAIL selectionStart on an input[type=color] returns null Type error 147 FAIL selectionEnd on an input[type=color] returns null Type error 148 FAIL selectionDirection on an input[type=color] returns null Type error 149 FAIL assigning selectionStart on an input[type=color] throws InvalidStateError assert_throws_dom: function "function (){ 150 el.selectionStart = 0; 151 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 152 FAIL assigning selectionEnd on an input[type=color] throws InvalidStateError assert_throws_dom: function "function (){ 153 el.selectionEnd = 0; 154 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 155 FAIL assigning selectionDirection on an input[type=color] throws InvalidStateError assert_throws_dom: function "function (){ 156 el.selectionDirection = 'none'; 157 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 73 PASS setSelectionRange on an input[type=range] throws InvalidStateError 74 PASS selectionStart on an input[type=color] returns null 75 PASS selectionEnd on an input[type=color] returns null 76 PASS selectionDirection on an input[type=color] returns null 77 PASS assigning selectionStart on an input[type=color] throws InvalidStateError 78 PASS assigning selectionEnd on an input[type=color] throws InvalidStateError 79 PASS assigning selectionDirection on an input[type=color] throws InvalidStateError 158 80 PASS setRangeText on an input[type=color] throws InvalidStateError 159 FAIL setSelectionRange on an input[type=color] throws InvalidStateError assert_throws_dom: function "function (){ 160 el.setSelectionRange(0, 1); 161 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 162 FAIL selectionStart on an input[type=checkbox] returns null Type error 163 FAIL selectionEnd on an input[type=checkbox] returns null Type error 164 FAIL selectionDirection on an input[type=checkbox] returns null Type error 165 FAIL assigning selectionStart on an input[type=checkbox] throws InvalidStateError assert_throws_dom: function "function (){ 166 el.selectionStart = 0; 167 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 168 FAIL assigning selectionEnd on an input[type=checkbox] throws InvalidStateError assert_throws_dom: function "function (){ 169 el.selectionEnd = 0; 170 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 171 FAIL assigning selectionDirection on an input[type=checkbox] throws InvalidStateError assert_throws_dom: function "function (){ 172 el.selectionDirection = 'none'; 173 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 81 PASS setSelectionRange on an input[type=color] throws InvalidStateError 82 PASS selectionStart on an input[type=checkbox] returns null 83 PASS selectionEnd on an input[type=checkbox] returns null 84 PASS selectionDirection on an input[type=checkbox] returns null 85 PASS assigning selectionStart on an input[type=checkbox] throws InvalidStateError 86 PASS assigning selectionEnd on an input[type=checkbox] throws InvalidStateError 87 PASS assigning selectionDirection on an input[type=checkbox] throws InvalidStateError 174 88 PASS setRangeText on an input[type=checkbox] throws InvalidStateError 175 FAIL setSelectionRange on an input[type=checkbox] throws InvalidStateError assert_throws_dom: function "function (){ 176 el.setSelectionRange(0, 1); 177 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 178 FAIL selectionStart on an input[type=radio] returns null Type error 179 FAIL selectionEnd on an input[type=radio] returns null Type error 180 FAIL selectionDirection on an input[type=radio] returns null Type error 181 FAIL assigning selectionStart on an input[type=radio] throws InvalidStateError assert_throws_dom: function "function (){ 182 el.selectionStart = 0; 183 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 184 FAIL assigning selectionEnd on an input[type=radio] throws InvalidStateError assert_throws_dom: function "function (){ 185 el.selectionEnd = 0; 186 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 187 FAIL assigning selectionDirection on an input[type=radio] throws InvalidStateError assert_throws_dom: function "function (){ 188 el.selectionDirection = 'none'; 189 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 89 PASS setSelectionRange on an input[type=checkbox] throws InvalidStateError 90 PASS selectionStart on an input[type=radio] returns null 91 PASS selectionEnd on an input[type=radio] returns null 92 PASS selectionDirection on an input[type=radio] returns null 93 PASS assigning selectionStart on an input[type=radio] throws InvalidStateError 94 PASS assigning selectionEnd on an input[type=radio] throws InvalidStateError 95 PASS assigning selectionDirection on an input[type=radio] throws InvalidStateError 190 96 PASS setRangeText on an input[type=radio] throws InvalidStateError 191 FAIL setSelectionRange on an input[type=radio] throws InvalidStateError assert_throws_dom: function "function (){ 192 el.setSelectionRange(0, 1); 193 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 194 FAIL selectionStart on an input[type=file] returns null Type error 195 FAIL selectionEnd on an input[type=file] returns null Type error 196 FAIL selectionDirection on an input[type=file] returns null Type error 197 FAIL assigning selectionStart on an input[type=file] throws InvalidStateError assert_throws_dom: function "function (){ 198 el.selectionStart = 0; 199 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 200 FAIL assigning selectionEnd on an input[type=file] throws InvalidStateError assert_throws_dom: function "function (){ 201 el.selectionEnd = 0; 202 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 203 FAIL assigning selectionDirection on an input[type=file] throws InvalidStateError assert_throws_dom: function "function (){ 204 el.selectionDirection = 'none'; 205 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 97 PASS setSelectionRange on an input[type=radio] throws InvalidStateError 98 PASS selectionStart on an input[type=file] returns null 99 PASS selectionEnd on an input[type=file] returns null 100 PASS selectionDirection on an input[type=file] returns null 101 PASS assigning selectionStart on an input[type=file] throws InvalidStateError 102 PASS assigning selectionEnd on an input[type=file] throws InvalidStateError 103 PASS assigning selectionDirection on an input[type=file] throws InvalidStateError 206 104 PASS setRangeText on an input[type=file] throws InvalidStateError 207 FAIL setSelectionRange on an input[type=file] throws InvalidStateError assert_throws_dom: function "function (){ 208 el.setSelectionRange(0, 1); 209 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 210 FAIL selectionStart on an input[type=submit] returns null Type error 211 FAIL selectionEnd on an input[type=submit] returns null Type error 212 FAIL selectionDirection on an input[type=submit] returns null Type error 213 FAIL assigning selectionStart on an input[type=submit] throws InvalidStateError assert_throws_dom: function "function (){ 214 el.selectionStart = 0; 215 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 216 FAIL assigning selectionEnd on an input[type=submit] throws InvalidStateError assert_throws_dom: function "function (){ 217 el.selectionEnd = 0; 218 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 219 FAIL assigning selectionDirection on an input[type=submit] throws InvalidStateError assert_throws_dom: function "function (){ 220 el.selectionDirection = 'none'; 221 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 105 PASS setSelectionRange on an input[type=file] throws InvalidStateError 106 PASS selectionStart on an input[type=submit] returns null 107 PASS selectionEnd on an input[type=submit] returns null 108 PASS selectionDirection on an input[type=submit] returns null 109 PASS assigning selectionStart on an input[type=submit] throws InvalidStateError 110 PASS assigning selectionEnd on an input[type=submit] throws InvalidStateError 111 PASS assigning selectionDirection on an input[type=submit] throws InvalidStateError 222 112 PASS setRangeText on an input[type=submit] throws InvalidStateError 223 FAIL setSelectionRange on an input[type=submit] throws InvalidStateError assert_throws_dom: function "function (){ 224 el.setSelectionRange(0, 1); 225 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 226 FAIL selectionStart on an input[type=image] returns null Type error 227 FAIL selectionEnd on an input[type=image] returns null Type error 228 FAIL selectionDirection on an input[type=image] returns null Type error 229 FAIL assigning selectionStart on an input[type=image] throws InvalidStateError assert_throws_dom: function "function (){ 230 el.selectionStart = 0; 231 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 232 FAIL assigning selectionEnd on an input[type=image] throws InvalidStateError assert_throws_dom: function "function (){ 233 el.selectionEnd = 0; 234 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 235 FAIL assigning selectionDirection on an input[type=image] throws InvalidStateError assert_throws_dom: function "function (){ 236 el.selectionDirection = 'none'; 237 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 113 PASS setSelectionRange on an input[type=submit] throws InvalidStateError 114 PASS selectionStart on an input[type=image] returns null 115 PASS selectionEnd on an input[type=image] returns null 116 PASS selectionDirection on an input[type=image] returns null 117 PASS assigning selectionStart on an input[type=image] throws InvalidStateError 118 PASS assigning selectionEnd on an input[type=image] throws InvalidStateError 119 PASS assigning selectionDirection on an input[type=image] throws InvalidStateError 238 120 PASS setRangeText on an input[type=image] throws InvalidStateError 239 FAIL setSelectionRange on an input[type=image] throws InvalidStateError assert_throws_dom: function "function (){ 240 el.setSelectionRange(0, 1); 241 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 242 FAIL selectionStart on an input[type=reset] returns null Type error 243 FAIL selectionEnd on an input[type=reset] returns null Type error 244 FAIL selectionDirection on an input[type=reset] returns null Type error 245 FAIL assigning selectionStart on an input[type=reset] throws InvalidStateError assert_throws_dom: function "function (){ 246 el.selectionStart = 0; 247 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 248 FAIL assigning selectionEnd on an input[type=reset] throws InvalidStateError assert_throws_dom: function "function (){ 249 el.selectionEnd = 0; 250 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 251 FAIL assigning selectionDirection on an input[type=reset] throws InvalidStateError assert_throws_dom: function "function (){ 252 el.selectionDirection = 'none'; 253 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 121 PASS setSelectionRange on an input[type=image] throws InvalidStateError 122 PASS selectionStart on an input[type=reset] returns null 123 PASS selectionEnd on an input[type=reset] returns null 124 PASS selectionDirection on an input[type=reset] returns null 125 PASS assigning selectionStart on an input[type=reset] throws InvalidStateError 126 PASS assigning selectionEnd on an input[type=reset] throws InvalidStateError 127 PASS assigning selectionDirection on an input[type=reset] throws InvalidStateError 254 128 PASS setRangeText on an input[type=reset] throws InvalidStateError 255 FAIL setSelectionRange on an input[type=reset] throws InvalidStateError assert_throws_dom: function "function (){ 256 el.setSelectionRange(0, 1); 257 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 258 FAIL selectionStart on an input[type=button] returns null Type error 259 FAIL selectionEnd on an input[type=button] returns null Type error 260 FAIL selectionDirection on an input[type=button] returns null Type error 261 FAIL assigning selectionStart on an input[type=button] throws InvalidStateError assert_throws_dom: function "function (){ 262 el.selectionStart = 0; 263 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 264 FAIL assigning selectionEnd on an input[type=button] throws InvalidStateError assert_throws_dom: function "function (){ 265 el.selectionEnd = 0; 266 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 267 FAIL assigning selectionDirection on an input[type=button] throws InvalidStateError assert_throws_dom: function "function (){ 268 el.selectionDirection = 'none'; 269 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 129 PASS setSelectionRange on an input[type=reset] throws InvalidStateError 130 PASS selectionStart on an input[type=button] returns null 131 PASS selectionEnd on an input[type=button] returns null 132 PASS selectionDirection on an input[type=button] returns null 133 PASS assigning selectionStart on an input[type=button] throws InvalidStateError 134 PASS assigning selectionEnd on an input[type=button] throws InvalidStateError 135 PASS assigning selectionDirection on an input[type=button] throws InvalidStateError 270 136 PASS setRangeText on an input[type=button] throws InvalidStateError 271 FAIL setSelectionRange on an input[type=button] throws InvalidStateError assert_throws_dom: function "function (){ 272 el.setSelectionRange(0, 1); 273 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 137 PASS setSelectionRange on an input[type=button] throws InvalidStateError 274 138 PASS selectionStart on an input[type=text] returns a value 275 139 PASS selectionEnd on an input[type=text] returns a value -
trunk/LayoutTests/platform/ios-wk2/imported/w3c/web-platform-tests/html/semantics/forms/the-input-element/type-change-state-expected.txt
r267658 r289813 1 1 2 FAIL change state from hidden to text Type error 3 FAIL change state from hidden to search Type error 4 FAIL change state from hidden to tel Type error 5 FAIL change state from hidden to url Type error 6 FAIL change state from hidden to email Type error 7 FAIL change state from hidden to password Type error 8 FAIL change state from hidden to datetime-local Type error 9 FAIL change state from hidden to date Type error 10 FAIL change state from hidden to month Type error 11 FAIL change state from hidden to week Type error 12 FAIL change state from hidden to time Type error 13 FAIL change state from hidden to number Type error14 FAIL change state from hidden to range Type error 15 FAIL change state from hidden to color Type error16 FAIL change state from hidden to checkbox Type error 17 FAIL change state from hidden to radio Type error 2 PASS change state from hidden to text 3 PASS change state from hidden to search 4 PASS change state from hidden to tel 5 PASS change state from hidden to url 6 PASS change state from hidden to email 7 PASS change state from hidden to password 8 PASS change state from hidden to datetime-local 9 PASS change state from hidden to date 10 PASS change state from hidden to month 11 PASS change state from hidden to week 12 PASS change state from hidden to time 13 PASS change state from hidden to number 14 PASS change state from hidden to range 15 PASS change state from hidden to color 16 PASS change state from hidden to checkbox 17 PASS change state from hidden to radio 18 18 PASS change state from hidden to file 19 FAIL change state from hidden to submit Type error 20 FAIL change state from hidden to image Type error 21 FAIL change state from hidden to reset Type error 22 FAIL change state from hidden to button Type error 23 FAIL change state from text to hidden Type error 19 PASS change state from hidden to submit 20 PASS change state from hidden to image 21 PASS change state from hidden to reset 22 PASS change state from hidden to button 23 PASS change state from text to hidden 24 24 PASS change state from text to search 25 25 PASS change state from text to tel 26 26 FAIL change state from text to url assert_equals: selectionStart should be unchanged expected 2 but got 6 27 FAIL change state from text to email assert_equals: selectionStart should be unchanged expected 2 but got 6 27 PASS change state from text to email 28 28 PASS change state from text to password 29 FAIL change state from text to datetime-local Type error 30 FAIL change state from text to date Type error 31 FAIL change state from text to month Type error 32 FAIL change state from text to week Type error 33 FAIL change state from text to time Type error 34 FAIL change state from text to number assert_equals: selectionStart should be unchanged expected 2 but got 0 35 FAIL change state from text to range Type error 36 FAIL change state from text to color Type error37 FAIL change state from text to checkbox Type error 38 FAIL change state from text to radio Type error 29 PASS change state from text to datetime-local 30 PASS change state from text to date 31 PASS change state from text to month 32 PASS change state from text to week 33 PASS change state from text to time 34 PASS change state from text to number 35 PASS change state from text to range 36 PASS change state from text to color 37 PASS change state from text to checkbox 38 PASS change state from text to radio 39 39 PASS change state from text to file 40 FAIL change state from text to submit Type error 41 FAIL change state from text to image Type error 42 FAIL change state from text to reset Type error 43 FAIL change state from text to button Type error 44 FAIL change state from search to hidden Type error 40 PASS change state from text to submit 41 PASS change state from text to image 42 PASS change state from text to reset 43 PASS change state from text to button 44 PASS change state from search to hidden 45 45 PASS change state from search to text 46 46 PASS change state from search to tel 47 47 FAIL change state from search to url assert_equals: selectionStart should be unchanged expected 2 but got 6 48 FAIL change state from search to email assert_equals: selectionStart should be unchanged expected 2 but got 6 48 PASS change state from search to email 49 49 PASS change state from search to password 50 FAIL change state from search to datetime-local Type error 51 FAIL change state from search to date Type error 52 FAIL change state from search to month Type error 53 FAIL change state from search to week Type error 54 FAIL change state from search to time Type error 55 FAIL change state from search to number assert_equals: selectionStart should be unchanged expected 2 but got 0 56 FAIL change state from search to range Type error 57 FAIL change state from search to color Type error58 FAIL change state from search to checkbox Type error 59 FAIL change state from search to radio Type error 50 PASS change state from search to datetime-local 51 PASS change state from search to date 52 PASS change state from search to month 53 PASS change state from search to week 54 PASS change state from search to time 55 PASS change state from search to number 56 PASS change state from search to range 57 PASS change state from search to color 58 PASS change state from search to checkbox 59 PASS change state from search to radio 60 60 PASS change state from search to file 61 FAIL change state from search to submit Type error 62 FAIL change state from search to image Type error 63 FAIL change state from search to reset Type error 64 FAIL change state from search to button Type error 65 FAIL change state from tel to hidden Type error 61 PASS change state from search to submit 62 PASS change state from search to image 63 PASS change state from search to reset 64 PASS change state from search to button 65 PASS change state from tel to hidden 66 66 PASS change state from tel to text 67 67 PASS change state from tel to search 68 68 FAIL change state from tel to url assert_equals: selectionStart should be unchanged expected 2 but got 6 69 FAIL change state from tel to email assert_equals: selectionStart should be unchanged expected 2 but got 6 69 PASS change state from tel to email 70 70 PASS change state from tel to password 71 FAIL change state from tel to datetime-local Type error 72 FAIL change state from tel to date Type error 73 FAIL change state from tel to month Type error 74 FAIL change state from tel to week Type error 75 FAIL change state from tel to time Type error 76 FAIL change state from tel to number assert_equals: selectionStart should be unchanged expected 2 but got 0 77 FAIL change state from tel to range Type error 78 FAIL change state from tel to color Type error79 FAIL change state from tel to checkbox Type error 80 FAIL change state from tel to radio Type error 71 PASS change state from tel to datetime-local 72 PASS change state from tel to date 73 PASS change state from tel to month 74 PASS change state from tel to week 75 PASS change state from tel to time 76 PASS change state from tel to number 77 PASS change state from tel to range 78 PASS change state from tel to color 79 PASS change state from tel to checkbox 80 PASS change state from tel to radio 81 81 PASS change state from tel to file 82 FAIL change state from tel to submit Type error 83 FAIL change state from tel to image Type error 84 FAIL change state from tel to reset Type error 85 FAIL change state from tel to button Type error 86 FAIL change state from url to hidden Type error 82 PASS change state from tel to submit 83 PASS change state from tel to image 84 PASS change state from tel to reset 85 PASS change state from tel to button 86 PASS change state from url to hidden 87 87 PASS change state from url to text 88 88 PASS change state from url to search … … 90 90 PASS change state from url to email 91 91 PASS change state from url to password 92 FAIL change state from url to datetime-local Type error 93 FAIL change state from url to date Type error 94 FAIL change state from url to month Type error 95 FAIL change state from url to week Type error 96 FAIL change state from url to time Type error 97 FAIL change state from url to number assert_equals: selectionStart should be unchanged expected 2 but got 0 98 FAIL change state from url to range Type error 99 FAIL change state from url to color Type error100 FAIL change state from url to checkbox Type error 101 FAIL change state from url to radio Type error 92 PASS change state from url to datetime-local 93 PASS change state from url to date 94 PASS change state from url to month 95 PASS change state from url to week 96 PASS change state from url to time 97 PASS change state from url to number 98 PASS change state from url to range 99 PASS change state from url to color 100 PASS change state from url to checkbox 101 PASS change state from url to radio 102 102 PASS change state from url to file 103 FAIL change state from url to submit Type error 104 FAIL change state from url to image Type error 105 FAIL change state from url to reset Type error 106 FAIL change state from url to button Type error 107 FAIL change state from email to hidden Type error 108 PASS change state from email to text 109 PASS change state from email to search 110 PASS change state from email to tel 111 PASS change state from email to url 112 PASS change state from email to password 113 FAIL change state from email to datetime-local Type error 114 FAIL change state from email to date Type error 115 FAIL change state from email to month Type error 116 FAIL change state from email to week Type error 117 FAIL change state from email to time Type error 118 FAIL change state from email to number assert_equals: selectionStart should be unchanged expected 2 but got 0 119 FAIL change state from email to range Type error 120 FAIL change state from email to color Type error121 FAIL change state from email to checkbox Type error 122 FAIL change state from email to radio Type error 103 PASS change state from url to submit 104 PASS change state from url to image 105 PASS change state from url to reset 106 PASS change state from url to button 107 PASS change state from email to hidden 108 FAIL change state from email to text assert_equals: selectionStart should be 0 expected 0 but got 6 109 FAIL change state from email to search assert_equals: selectionStart should be 0 expected 0 but got 6 110 FAIL change state from email to tel assert_equals: selectionStart should be 0 expected 0 but got 6 111 FAIL change state from email to url assert_equals: selectionStart should be 0 expected 0 but got 6 112 FAIL change state from email to password assert_equals: selectionStart should be 0 expected 0 but got 6 113 PASS change state from email to datetime-local 114 PASS change state from email to date 115 PASS change state from email to month 116 PASS change state from email to week 117 PASS change state from email to time 118 PASS change state from email to number 119 PASS change state from email to range 120 PASS change state from email to color 121 PASS change state from email to checkbox 122 PASS change state from email to radio 123 123 PASS change state from email to file 124 FAIL change state from email to submit Type error 125 FAIL change state from email to image Type error 126 FAIL change state from email to reset Type error 127 FAIL change state from email to button Type error 128 FAIL change state from password to hidden Type error 124 PASS change state from email to submit 125 PASS change state from email to image 126 PASS change state from email to reset 127 PASS change state from email to button 128 PASS change state from password to hidden 129 129 PASS change state from password to text 130 130 PASS change state from password to search 131 131 PASS change state from password to tel 132 132 FAIL change state from password to url assert_equals: selectionStart should be unchanged expected 2 but got 6 133 FAIL change state from password to email assert_equals: selectionStart should be unchanged expected 2 but got 6 134 FAIL change state from password to datetime-local Type error 135 FAIL change state from password to date Type error 136 FAIL change state from password to month Type error 137 FAIL change state from password to week Type error 138 FAIL change state from password to time Type error 139 FAIL change state from password to number assert_equals: selectionStart should be unchanged expected 2 but got 0 140 FAIL change state from password to range Type error 141 FAIL change state from password to color Type error142 FAIL change state from password to checkbox Type error 143 FAIL change state from password to radio Type error 133 PASS change state from password to email 134 PASS change state from password to datetime-local 135 PASS change state from password to date 136 PASS change state from password to month 137 PASS change state from password to week 138 PASS change state from password to time 139 PASS change state from password to number 140 PASS change state from password to range 141 PASS change state from password to color 142 PASS change state from password to checkbox 143 PASS change state from password to radio 144 144 PASS change state from password to file 145 FAIL change state from password to submit Type error 146 FAIL change state from password to image Type error 147 FAIL change state from password to reset Type error 148 FAIL change state from password to button Type error 149 FAIL change state from datetime-local to hidden Type error 150 FAIL change state from datetime-local to text Type error 151 FAIL change state from datetime-local to search Type error 152 FAIL change state from datetime-local to tel Type error 153 FAIL change state from datetime-local to url Type error 154 FAIL change state from datetime-local to email Type error 155 FAIL change state from datetime-local to password Type error 156 FAIL change state from datetime-local to date Type error 157 FAIL change state from datetime-local to month Type error 158 FAIL change state from datetime-local to week Type error 159 FAIL change state from datetime-local to time Type error 160 FAIL change state from datetime-local to number Type error161 FAIL change state from datetime-local to range Type error 162 FAIL change state from datetime-local to color Type error163 FAIL change state from datetime-local to checkbox Type error164 FAIL change state from datetime-local to radio Type error145 PASS change state from password to submit 146 PASS change state from password to image 147 PASS change state from password to reset 148 PASS change state from password to button 149 PASS change state from datetime-local to hidden 150 PASS change state from datetime-local to text 151 PASS change state from datetime-local to search 152 PASS change state from datetime-local to tel 153 PASS change state from datetime-local to url 154 PASS change state from datetime-local to email 155 PASS change state from datetime-local to password 156 PASS change state from datetime-local to date 157 PASS change state from datetime-local to month 158 PASS change state from datetime-local to week 159 PASS change state from datetime-local to time 160 PASS change state from datetime-local to number 161 PASS change state from datetime-local to range 162 PASS change state from datetime-local to color 163 FAIL change state from datetime-local to checkbox assert_equals: input.value should be 'on' after change of state expected "on" but got "" 164 FAIL change state from datetime-local to radio assert_equals: input.value should be 'on' after change of state expected "on" but got "" 165 165 PASS change state from datetime-local to file 166 FAIL change state from datetime-local to submit Type error 167 FAIL change state from datetime-local to image Type error 168 FAIL change state from datetime-local to reset Type error 169 FAIL change state from datetime-local to button Type error 170 FAIL change state from date to hidden Type error 171 FAIL change state from date to text Type error 172 FAIL change state from date to search Type error 173 FAIL change state from date to tel Type error 174 FAIL change state from date to url Type error 175 FAIL change state from date to email Type error 176 FAIL change state from date to password Type error 177 FAIL change state from date to datetime-local Type error 178 FAIL change state from date to month Type error 179 FAIL change state from date to week Type error 180 FAIL change state from date to time Type error 181 FAIL change state from date to number Type error182 FAIL change state from date to range Type error 183 FAIL change state from date to color Type error184 FAIL change state from date to checkbox Type error 185 FAIL change state from date to radio Type error 166 PASS change state from datetime-local to submit 167 PASS change state from datetime-local to image 168 PASS change state from datetime-local to reset 169 PASS change state from datetime-local to button 170 PASS change state from date to hidden 171 PASS change state from date to text 172 PASS change state from date to search 173 PASS change state from date to tel 174 PASS change state from date to url 175 PASS change state from date to email 176 PASS change state from date to password 177 PASS change state from date to datetime-local 178 PASS change state from date to month 179 PASS change state from date to week 180 PASS change state from date to time 181 PASS change state from date to number 182 PASS change state from date to range 183 PASS change state from date to color 184 PASS change state from date to checkbox 185 PASS change state from date to radio 186 186 PASS change state from date to file 187 FAIL change state from date to submit Type error 188 FAIL change state from date to image Type error 189 FAIL change state from date to reset Type error 190 FAIL change state from date to button Type error 191 FAIL change state from month to hidden Type error 192 FAIL change state from month to text Type error 193 FAIL change state from month to search Type error 194 FAIL change state from month to tel Type error 195 FAIL change state from month to url Type error 196 FAIL change state from month to email Type error 197 FAIL change state from month to password Type error 198 FAIL change state from month to datetime-local Type error 199 FAIL change state from month to date Type error 200 FAIL change state from month to week Type error 201 FAIL change state from month to time Type error 202 FAIL change state from month to number Type error203 FAIL change state from month to range Type error 204 FAIL change state from month to color Type error205 FAIL change state from month to checkbox Type error 206 FAIL change state from month to radio Type error 187 PASS change state from date to submit 188 PASS change state from date to image 189 PASS change state from date to reset 190 PASS change state from date to button 191 PASS change state from month to hidden 192 PASS change state from month to text 193 PASS change state from month to search 194 PASS change state from month to tel 195 PASS change state from month to url 196 PASS change state from month to email 197 PASS change state from month to password 198 PASS change state from month to datetime-local 199 PASS change state from month to date 200 PASS change state from month to week 201 PASS change state from month to time 202 PASS change state from month to number 203 PASS change state from month to range 204 PASS change state from month to color 205 PASS change state from month to checkbox 206 PASS change state from month to radio 207 207 PASS change state from month to file 208 FAIL change state from month to submit Type error 209 FAIL change state from month to image Type error 210 FAIL change state from month to reset Type error 211 FAIL change state from month to button Type error 212 FAIL change state from week to hidden Type error 213 FAIL change state from week to text Type error 214 FAIL change state from week to search Type error 215 FAIL change state from week to tel Type error 216 FAIL change state from week to url Type error 217 FAIL change state from week to email Type error 218 FAIL change state from week to password Type error 219 FAIL change state from week to datetime-local Type error 220 FAIL change state from week to date Type error 221 FAIL change state from week to month Type error 222 FAIL change state from week to time Type error 223 FAIL change state from week to number Type error224 FAIL change state from week to range Type error 225 FAIL change state from week to color Type error226 FAIL change state from week to checkbox Type error 227 FAIL change state from week to radio Type error 208 PASS change state from month to submit 209 PASS change state from month to image 210 PASS change state from month to reset 211 PASS change state from month to button 212 PASS change state from week to hidden 213 PASS change state from week to text 214 PASS change state from week to search 215 PASS change state from week to tel 216 PASS change state from week to url 217 PASS change state from week to email 218 PASS change state from week to password 219 PASS change state from week to datetime-local 220 PASS change state from week to date 221 PASS change state from week to month 222 PASS change state from week to time 223 PASS change state from week to number 224 PASS change state from week to range 225 PASS change state from week to color 226 PASS change state from week to checkbox 227 PASS change state from week to radio 228 228 PASS change state from week to file 229 FAIL change state from week to submit Type error 230 FAIL change state from week to image Type error 231 FAIL change state from week to reset Type error 232 FAIL change state from week to button Type error 233 FAIL change state from time to hidden Type error 234 FAIL change state from time to text Type error 235 FAIL change state from time to search Type error 236 FAIL change state from time to tel Type error 237 FAIL change state from time to url Type error 238 FAIL change state from time to email Type error 239 FAIL change state from time to password Type error 240 FAIL change state from time to datetime-local Type error 241 FAIL change state from time to date Type error 242 FAIL change state from time to month Type error 243 FAIL change state from time to week Type error 244 FAIL change state from time to number Type error245 FAIL change state from time to range Type error 246 FAIL change state from time to color Type error247 FAIL change state from time to checkbox Type error 248 FAIL change state from time to radio Type error 229 PASS change state from week to submit 230 PASS change state from week to image 231 PASS change state from week to reset 232 PASS change state from week to button 233 PASS change state from time to hidden 234 PASS change state from time to text 235 PASS change state from time to search 236 PASS change state from time to tel 237 PASS change state from time to url 238 PASS change state from time to email 239 PASS change state from time to password 240 PASS change state from time to datetime-local 241 PASS change state from time to date 242 PASS change state from time to month 243 PASS change state from time to week 244 PASS change state from time to number 245 PASS change state from time to range 246 PASS change state from time to color 247 PASS change state from time to checkbox 248 PASS change state from time to radio 249 249 PASS change state from time to file 250 FAIL change state from time to submit Type error 251 FAIL change state from time to image Type error 252 FAIL change state from time to reset Type error 253 FAIL change state from time to button Type error 254 FAIL change state from number to hidden Type error 250 PASS change state from time to submit 251 PASS change state from time to image 252 PASS change state from time to reset 253 PASS change state from time to button 254 PASS change state from number to hidden 255 255 PASS change state from number to text 256 256 PASS change state from number to search … … 259 259 PASS change state from number to email 260 260 PASS change state from number to password 261 FAIL change state from number to datetime-local Type error 262 FAIL change state from number to date Type error 263 FAIL change state from number to month Type error 264 FAIL change state from number to week Type error 265 FAIL change state from number to time Type error 266 FAIL change state from number to range Type error 267 FAIL change state from number to color Type error261 PASS change state from number to datetime-local 262 PASS change state from number to date 263 PASS change state from number to month 264 PASS change state from number to week 265 PASS change state from number to time 266 PASS change state from number to range 267 PASS change state from number to color 268 268 FAIL change state from number to checkbox assert_equals: input.value should be 'on' after change of state expected "on" but got "" 269 269 FAIL change state from number to radio assert_equals: input.value should be 'on' after change of state expected "on" but got "" 270 270 PASS change state from number to file 271 FAIL change state from number to submit Type error 272 FAIL change state from number to image Type error 273 FAIL change state from number to reset Type error 274 FAIL change state from number to button Type error 275 FAIL change state from range to hidden Type error 276 FAIL change state from range to text Type error 277 FAIL change state from range to search Type error 278 FAIL change state from range to tel Type error 279 FAIL change state from range to url Type error 280 FAIL change state from range to email Type error 281 FAIL change state from range to password Type error 282 FAIL change state from range to datetime-local Type error 283 FAIL change state from range to date Type error 284 FAIL change state from range to month Type error 285 FAIL change state from range to week Type error 286 FAIL change state from range to time Type error 287 FAIL change state from range to number Type error288 FAIL change state from range to color Type error289 FAIL change state from range to checkbox Type error 290 FAIL change state from range to radio Type error 271 PASS change state from number to submit 272 PASS change state from number to image 273 PASS change state from number to reset 274 PASS change state from number to button 275 PASS change state from range to hidden 276 PASS change state from range to text 277 PASS change state from range to search 278 PASS change state from range to tel 279 PASS change state from range to url 280 PASS change state from range to email 281 PASS change state from range to password 282 PASS change state from range to datetime-local 283 PASS change state from range to date 284 PASS change state from range to month 285 PASS change state from range to week 286 PASS change state from range to time 287 PASS change state from range to number 288 PASS change state from range to color 289 PASS change state from range to checkbox 290 PASS change state from range to radio 291 291 PASS change state from range to file 292 FAIL change state from range to submit Type error 293 FAIL change state from range to image Type error 294 FAIL change state from range to reset Type error 295 FAIL change state from range to button Type error 296 FAIL change state from color to hidden Type error 297 FAIL change state from color to text Type error 298 FAIL change state from color to search Type error 299 FAIL change state from color to tel Type error 300 FAIL change state from color to url Type error 301 FAIL change state from color to email Type error 302 FAIL change state from color to password Type error 303 FAIL change state from color to datetime-local Type error 304 FAIL change state from color to date Type error 305 FAIL change state from color to month Type error 306 FAIL change state from color to week Type error 307 FAIL change state from color to time Type error 308 FAIL change state from color to number Type error309 FAIL change state from color to range Type error 310 FAIL change state from color to checkbox Type error 311 FAIL change state from color to radio Type error 292 PASS change state from range to submit 293 PASS change state from range to image 294 PASS change state from range to reset 295 PASS change state from range to button 296 PASS change state from color to hidden 297 PASS change state from color to text 298 PASS change state from color to search 299 PASS change state from color to tel 300 PASS change state from color to url 301 PASS change state from color to email 302 PASS change state from color to password 303 PASS change state from color to datetime-local 304 PASS change state from color to date 305 PASS change state from color to month 306 PASS change state from color to week 307 PASS change state from color to time 308 PASS change state from color to number 309 PASS change state from color to range 310 PASS change state from color to checkbox 311 PASS change state from color to radio 312 312 PASS change state from color to file 313 FAIL change state from color to submit Type error 314 FAIL change state from color to image Type error 315 FAIL change state from color to reset Type error 316 FAIL change state from color to button Type error 317 FAIL change state from checkbox to hidden Type error 318 FAIL change state from checkbox to text Type error 319 FAIL change state from checkbox to search Type error 320 FAIL change state from checkbox to tel Type error 321 FAIL change state from checkbox to url Type error 322 FAIL change state from checkbox to email Type error 323 FAIL change state from checkbox to password Type error 324 FAIL change state from checkbox to datetime-local Type error 325 FAIL change state from checkbox to date Type error 326 FAIL change state from checkbox to month Type error 327 FAIL change state from checkbox to week Type error 328 FAIL change state from checkbox to time Type error 329 FAIL change state from checkbox to number Type error330 FAIL change state from checkbox to range Type error 331 FAIL change state from checkbox to color Type error332 FAIL change state from checkbox to radio Type error 313 PASS change state from color to submit 314 PASS change state from color to image 315 PASS change state from color to reset 316 PASS change state from color to button 317 PASS change state from checkbox to hidden 318 PASS change state from checkbox to text 319 PASS change state from checkbox to search 320 PASS change state from checkbox to tel 321 PASS change state from checkbox to url 322 PASS change state from checkbox to email 323 PASS change state from checkbox to password 324 PASS change state from checkbox to datetime-local 325 PASS change state from checkbox to date 326 PASS change state from checkbox to month 327 PASS change state from checkbox to week 328 PASS change state from checkbox to time 329 PASS change state from checkbox to number 330 PASS change state from checkbox to range 331 PASS change state from checkbox to color 332 PASS change state from checkbox to radio 333 333 PASS change state from checkbox to file 334 FAIL change state from checkbox to submit Type error 335 FAIL change state from checkbox to image Type error 336 FAIL change state from checkbox to reset Type error 337 FAIL change state from checkbox to button Type error 338 FAIL change state from radio to hidden Type error 339 FAIL change state from radio to text Type error 340 FAIL change state from radio to search Type error 341 FAIL change state from radio to tel Type error 342 FAIL change state from radio to url Type error 343 FAIL change state from radio to email Type error 344 FAIL change state from radio to password Type error 345 FAIL change state from radio to datetime-local Type error 346 FAIL change state from radio to date Type error 347 FAIL change state from radio to month Type error 348 FAIL change state from radio to week Type error 349 FAIL change state from radio to time Type error 350 FAIL change state from radio to number Type error351 FAIL change state from radio to range Type error 352 FAIL change state from radio to color Type error353 FAIL change state from radio to checkbox Type error 334 PASS change state from checkbox to submit 335 PASS change state from checkbox to image 336 PASS change state from checkbox to reset 337 PASS change state from checkbox to button 338 PASS change state from radio to hidden 339 PASS change state from radio to text 340 PASS change state from radio to search 341 PASS change state from radio to tel 342 PASS change state from radio to url 343 PASS change state from radio to email 344 PASS change state from radio to password 345 PASS change state from radio to datetime-local 346 PASS change state from radio to date 347 PASS change state from radio to month 348 PASS change state from radio to week 349 PASS change state from radio to time 350 PASS change state from radio to number 351 PASS change state from radio to range 352 PASS change state from radio to color 353 PASS change state from radio to checkbox 354 354 PASS change state from radio to file 355 FAIL change state from radio to submit Type error 356 FAIL change state from radio to image Type error 357 FAIL change state from radio to reset Type error 358 FAIL change state from radio to button Type error 355 PASS change state from radio to submit 356 PASS change state from radio to image 357 PASS change state from radio to reset 358 PASS change state from radio to button 359 359 PASS change state from file to hidden 360 360 PASS change state from file to text … … 378 378 PASS change state from file to reset 379 379 PASS change state from file to button 380 FAIL change state from submit to hidden Type error 381 FAIL change state from submit to text Type error 382 FAIL change state from submit to search Type error 383 FAIL change state from submit to tel Type error 384 FAIL change state from submit to url Type error 385 FAIL change state from submit to email Type error 386 FAIL change state from submit to password Type error 387 FAIL change state from submit to datetime-local Type error 388 FAIL change state from submit to date Type error 389 FAIL change state from submit to month Type error 390 FAIL change state from submit to week Type error 391 FAIL change state from submit to time Type error 392 FAIL change state from submit to number Type error393 FAIL change state from submit to range Type error 394 FAIL change state from submit to color Type error395 FAIL change state from submit to checkbox Type error 396 FAIL change state from submit to radio Type error 380 PASS change state from submit to hidden 381 PASS change state from submit to text 382 PASS change state from submit to search 383 PASS change state from submit to tel 384 PASS change state from submit to url 385 PASS change state from submit to email 386 PASS change state from submit to password 387 PASS change state from submit to datetime-local 388 PASS change state from submit to date 389 PASS change state from submit to month 390 PASS change state from submit to week 391 PASS change state from submit to time 392 PASS change state from submit to number 393 PASS change state from submit to range 394 PASS change state from submit to color 395 PASS change state from submit to checkbox 396 PASS change state from submit to radio 397 397 PASS change state from submit to file 398 FAIL change state from submit to image Type error 399 FAIL change state from submit to reset Type error 400 FAIL change state from submit to button Type error 401 FAIL change state from image to hidden Type error 402 FAIL change state from image to text Type error 403 FAIL change state from image to search Type error 404 FAIL change state from image to tel Type error 405 FAIL change state from image to url Type error 406 FAIL change state from image to email Type error 407 FAIL change state from image to password Type error 408 FAIL change state from image to datetime-local Type error 409 FAIL change state from image to date Type error 410 FAIL change state from image to month Type error 411 FAIL change state from image to week Type error 412 FAIL change state from image to time Type error 413 FAIL change state from image to number Type error414 FAIL change state from image to range Type error 415 FAIL change state from image to color Type error416 FAIL change state from image to checkbox Type error 417 FAIL change state from image to radio Type error 398 PASS change state from submit to image 399 PASS change state from submit to reset 400 PASS change state from submit to button 401 PASS change state from image to hidden 402 PASS change state from image to text 403 PASS change state from image to search 404 PASS change state from image to tel 405 PASS change state from image to url 406 PASS change state from image to email 407 PASS change state from image to password 408 PASS change state from image to datetime-local 409 PASS change state from image to date 410 PASS change state from image to month 411 PASS change state from image to week 412 PASS change state from image to time 413 PASS change state from image to number 414 PASS change state from image to range 415 PASS change state from image to color 416 PASS change state from image to checkbox 417 PASS change state from image to radio 418 418 PASS change state from image to file 419 FAIL change state from image to submit Type error 420 FAIL change state from image to reset Type error 421 FAIL change state from image to button Type error 422 FAIL change state from reset to hidden Type error 423 FAIL change state from reset to text Type error 424 FAIL change state from reset to search Type error 425 FAIL change state from reset to tel Type error 426 FAIL change state from reset to url Type error 427 FAIL change state from reset to email Type error 428 FAIL change state from reset to password Type error 429 FAIL change state from reset to datetime-local Type error 430 FAIL change state from reset to date Type error 431 FAIL change state from reset to month Type error 432 FAIL change state from reset to week Type error 433 FAIL change state from reset to time Type error 434 FAIL change state from reset to number Type error435 FAIL change state from reset to range Type error 436 FAIL change state from reset to color Type error437 FAIL change state from reset to checkbox Type error 438 FAIL change state from reset to radio Type error 419 PASS change state from image to submit 420 PASS change state from image to reset 421 PASS change state from image to button 422 PASS change state from reset to hidden 423 PASS change state from reset to text 424 PASS change state from reset to search 425 PASS change state from reset to tel 426 PASS change state from reset to url 427 PASS change state from reset to email 428 PASS change state from reset to password 429 PASS change state from reset to datetime-local 430 PASS change state from reset to date 431 PASS change state from reset to month 432 PASS change state from reset to week 433 PASS change state from reset to time 434 PASS change state from reset to number 435 PASS change state from reset to range 436 PASS change state from reset to color 437 PASS change state from reset to checkbox 438 PASS change state from reset to radio 439 439 PASS change state from reset to file 440 FAIL change state from reset to submit Type error 441 FAIL change state from reset to image Type error 442 FAIL change state from reset to button Type error 443 FAIL change state from button to hidden Type error 444 FAIL change state from button to text Type error 445 FAIL change state from button to search Type error 446 FAIL change state from button to tel Type error 447 FAIL change state from button to url Type error 448 FAIL change state from button to email Type error 449 FAIL change state from button to password Type error 450 FAIL change state from button to datetime-local Type error 451 FAIL change state from button to date Type error 452 FAIL change state from button to month Type error 453 FAIL change state from button to week Type error 454 FAIL change state from button to time Type error 455 FAIL change state from button to number Type error456 FAIL change state from button to range Type error 457 FAIL change state from button to color Type error458 FAIL change state from button to checkbox Type error 459 FAIL change state from button to radio Type error 440 PASS change state from reset to submit 441 PASS change state from reset to image 442 PASS change state from reset to button 443 PASS change state from button to hidden 444 PASS change state from button to text 445 PASS change state from button to search 446 PASS change state from button to tel 447 PASS change state from button to url 448 PASS change state from button to email 449 PASS change state from button to password 450 PASS change state from button to datetime-local 451 PASS change state from button to date 452 PASS change state from button to month 453 PASS change state from button to week 454 PASS change state from button to time 455 PASS change state from button to number 456 PASS change state from button to range 457 PASS change state from button to color 458 PASS change state from button to checkbox 459 PASS change state from button to radio 460 460 PASS change state from button to file 461 FAIL change state from button to submit Type error 462 FAIL change state from button to image Type error 463 FAIL change state from button to reset Type error 461 PASS change state from button to submit 462 PASS change state from button to image 463 PASS change state from button to reset 464 464 -
trunk/LayoutTests/platform/mac-wk1/imported/w3c/web-platform-tests/html/semantics/forms/the-input-element/selection-expected.txt
r289812 r289813 15 15 FAIL input type color should support the select() method assert_equals: the given input type is not supported expected "color" but got "text" 16 16 PASS input type file should support the select() method 17 FAIL input type hidden should do nothing when the select() method is called (but, not throw) Type error 18 FAIL input type range should do nothing when the select() method is called (but, not throw) Type error 19 FAIL input type checkbox should do nothing when the select() method is called (but, not throw) Type error 20 FAIL input type radio should do nothing when the select() method is called (but, not throw) Type error 21 FAIL input type submit should do nothing when the select() method is called (but, not throw) Type error 22 FAIL input type image should do nothing when the select() method is called (but, not throw) Type error 23 FAIL input type reset should do nothing when the select() method is called (but, not throw) Type error 24 FAIL input type button should do nothing when the select() method is called (but, not throw) Type error 17 PASS input type hidden should do nothing when the select() method is called (but, not throw) 18 PASS input type range should do nothing when the select() method is called (but, not throw) 19 PASS input type checkbox should do nothing when the select() method is called (but, not throw) 20 PASS input type radio should do nothing when the select() method is called (but, not throw) 21 PASS input type submit should do nothing when the select() method is called (but, not throw) 22 PASS input type image should do nothing when the select() method is called (but, not throw) 23 PASS input type reset should do nothing when the select() method is called (but, not throw) 24 PASS input type button should do nothing when the select() method is called (but, not throw) 25 25 PASS Input element programmatic selection support 1 26 26 PASS input type text should support all selection attributes and methods … … 29 29 PASS input type tel should support all selection attributes and methods 30 30 PASS input type password should support all selection attributes and methods 31 FAIL input type hidden should not support variable-length selections Type error 32 FAIL input type email should not support variable-length selections assert_equals: getting input.selectionStart expected (object) null but got (number) 0 31 PASS input type hidden should not support variable-length selections 32 PASS input type email should not support variable-length selections 33 33 FAIL input type date should not support variable-length selections assert_equals: the given input type is not supported expected "date" but got "text" 34 34 FAIL input type month should not support variable-length selections assert_equals: the given input type is not supported expected "month" but got "text" … … 36 36 FAIL input type time should not support variable-length selections assert_equals: the given input type is not supported expected "time" but got "text" 37 37 FAIL input type datetime-local should not support variable-length selections assert_equals: the given input type is not supported expected "datetime-local" but got "text" 38 FAIL input type number should not support variable-length selections assert_equals: getting input.selectionStart expected (object) null but got (number) 0 39 FAIL input type range should not support variable-length selections Type error 38 PASS input type number should not support variable-length selections 39 PASS input type range should not support variable-length selections 40 40 FAIL input type color should not support variable-length selections assert_equals: the given input type is not supported expected "color" but got "text" 41 FAIL input type checkbox should not support variable-length selections Type error 42 FAIL input type radio should not support variable-length selections Type error 43 FAIL input type file should not support variable-length selections Type error 44 FAIL input type submit should not support variable-length selections Type error 45 FAIL input type image should not support variable-length selections Type error 46 FAIL input type reset should not support variable-length selections Type error 47 FAIL input type button should not support variable-length selections Type error 41 PASS input type checkbox should not support variable-length selections 42 PASS input type radio should not support variable-length selections 43 PASS input type file should not support variable-length selections 44 PASS input type submit should not support variable-length selections 45 PASS input type image should not support variable-length selections 46 PASS input type reset should not support variable-length selections 47 PASS input type button should not support variable-length selections 48 48 -
trunk/LayoutTests/platform/mac-wk2/imported/w3c/web-platform-tests/html/semantics/forms/textfieldselection/selection-not-application-expected.txt
r279427 r289813 1 1 2 FAIL selectionStart on an input[type=hidden] returns null Type error 3 FAIL selectionEnd on an input[type=hidden] returns null Type error 4 FAIL selectionDirection on an input[type=hidden] returns null Type error 5 FAIL assigning selectionStart on an input[type=hidden] throws InvalidStateError assert_throws_dom: function "function (){ 6 el.selectionStart = 0; 7 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 8 FAIL assigning selectionEnd on an input[type=hidden] throws InvalidStateError assert_throws_dom: function "function (){ 9 el.selectionEnd = 0; 10 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 11 FAIL assigning selectionDirection on an input[type=hidden] throws InvalidStateError assert_throws_dom: function "function (){ 12 el.selectionDirection = 'none'; 13 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 2 PASS selectionStart on an input[type=hidden] returns null 3 PASS selectionEnd on an input[type=hidden] returns null 4 PASS selectionDirection on an input[type=hidden] returns null 5 PASS assigning selectionStart on an input[type=hidden] throws InvalidStateError 6 PASS assigning selectionEnd on an input[type=hidden] throws InvalidStateError 7 PASS assigning selectionDirection on an input[type=hidden] throws InvalidStateError 14 8 PASS setRangeText on an input[type=hidden] throws InvalidStateError 15 FAIL setSelectionRange on an input[type=hidden] throws InvalidStateError assert_throws_dom: function "function (){ 16 el.setSelectionRange(0, 1); 17 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 18 FAIL selectionStart on an input[type=email] returns null assert_equals: expected (object) null but got (number) 0 19 FAIL selectionEnd on an input[type=email] returns null assert_equals: expected (object) null but got (number) 0 20 FAIL selectionDirection on an input[type=email] returns null assert_equals: expected (object) null but got (string) "none" 21 FAIL assigning selectionStart on an input[type=email] throws InvalidStateError assert_throws_dom: function "function (){ 22 el.selectionStart = 0; 23 }" did not throw 24 FAIL assigning selectionEnd on an input[type=email] throws InvalidStateError assert_throws_dom: function "function (){ 25 el.selectionEnd = 0; 26 }" did not throw 27 FAIL assigning selectionDirection on an input[type=email] throws InvalidStateError assert_throws_dom: function "function (){ 28 el.selectionDirection = 'none'; 29 }" did not throw 9 PASS setSelectionRange on an input[type=hidden] throws InvalidStateError 10 PASS selectionStart on an input[type=email] returns null 11 PASS selectionEnd on an input[type=email] returns null 12 PASS selectionDirection on an input[type=email] returns null 13 PASS assigning selectionStart on an input[type=email] throws InvalidStateError 14 PASS assigning selectionEnd on an input[type=email] throws InvalidStateError 15 PASS assigning selectionDirection on an input[type=email] throws InvalidStateError 30 16 PASS setRangeText on an input[type=email] throws InvalidStateError 31 FAIL setSelectionRange on an input[type=email] throws InvalidStateError assert_throws_dom: function "function (){ 32 el.setSelectionRange(0, 1); 33 }" did not throw 34 FAIL selectionStart on an input[type=datetime-local] returns null Type error 35 FAIL selectionEnd on an input[type=datetime-local] returns null Type error 36 FAIL selectionDirection on an input[type=datetime-local] returns null Type error 37 FAIL assigning selectionStart on an input[type=datetime-local] throws InvalidStateError assert_throws_dom: function "function (){ 38 el.selectionStart = 0; 39 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 40 FAIL assigning selectionEnd on an input[type=datetime-local] throws InvalidStateError assert_throws_dom: function "function (){ 41 el.selectionEnd = 0; 42 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 43 FAIL assigning selectionDirection on an input[type=datetime-local] throws InvalidStateError assert_throws_dom: function "function (){ 44 el.selectionDirection = 'none'; 45 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 17 PASS setSelectionRange on an input[type=email] throws InvalidStateError 18 PASS selectionStart on an input[type=datetime-local] returns null 19 PASS selectionEnd on an input[type=datetime-local] returns null 20 PASS selectionDirection on an input[type=datetime-local] returns null 21 PASS assigning selectionStart on an input[type=datetime-local] throws InvalidStateError 22 PASS assigning selectionEnd on an input[type=datetime-local] throws InvalidStateError 23 PASS assigning selectionDirection on an input[type=datetime-local] throws InvalidStateError 46 24 PASS setRangeText on an input[type=datetime-local] throws InvalidStateError 47 FAIL setSelectionRange on an input[type=datetime-local] throws InvalidStateError assert_throws_dom: function "function (){ 48 el.setSelectionRange(0, 1); 49 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 50 FAIL selectionStart on an input[type=date] returns null Type error 51 FAIL selectionEnd on an input[type=date] returns null Type error 52 FAIL selectionDirection on an input[type=date] returns null Type error 53 FAIL assigning selectionStart on an input[type=date] throws InvalidStateError assert_throws_dom: function "function (){ 54 el.selectionStart = 0; 55 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 56 FAIL assigning selectionEnd on an input[type=date] throws InvalidStateError assert_throws_dom: function "function (){ 57 el.selectionEnd = 0; 58 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 59 FAIL assigning selectionDirection on an input[type=date] throws InvalidStateError assert_throws_dom: function "function (){ 60 el.selectionDirection = 'none'; 61 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 25 PASS setSelectionRange on an input[type=datetime-local] throws InvalidStateError 26 PASS selectionStart on an input[type=date] returns null 27 PASS selectionEnd on an input[type=date] returns null 28 PASS selectionDirection on an input[type=date] returns null 29 PASS assigning selectionStart on an input[type=date] throws InvalidStateError 30 PASS assigning selectionEnd on an input[type=date] throws InvalidStateError 31 PASS assigning selectionDirection on an input[type=date] throws InvalidStateError 62 32 PASS setRangeText on an input[type=date] throws InvalidStateError 63 FAIL setSelectionRange on an input[type=date] throws InvalidStateError assert_throws_dom: function "function (){ 64 el.setSelectionRange(0, 1); 65 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 66 FAIL selectionStart on an input[type=month] returns null Type error 67 FAIL selectionEnd on an input[type=month] returns null Type error 68 FAIL selectionDirection on an input[type=month] returns null Type error 69 FAIL assigning selectionStart on an input[type=month] throws InvalidStateError assert_throws_dom: function "function (){ 70 el.selectionStart = 0; 71 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 72 FAIL assigning selectionEnd on an input[type=month] throws InvalidStateError assert_throws_dom: function "function (){ 73 el.selectionEnd = 0; 74 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 75 FAIL assigning selectionDirection on an input[type=month] throws InvalidStateError assert_throws_dom: function "function (){ 76 el.selectionDirection = 'none'; 77 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 33 PASS setSelectionRange on an input[type=date] throws InvalidStateError 34 PASS selectionStart on an input[type=month] returns null 35 PASS selectionEnd on an input[type=month] returns null 36 PASS selectionDirection on an input[type=month] returns null 37 PASS assigning selectionStart on an input[type=month] throws InvalidStateError 38 PASS assigning selectionEnd on an input[type=month] throws InvalidStateError 39 PASS assigning selectionDirection on an input[type=month] throws InvalidStateError 78 40 PASS setRangeText on an input[type=month] throws InvalidStateError 79 FAIL setSelectionRange on an input[type=month] throws InvalidStateError assert_throws_dom: function "function (){ 80 el.setSelectionRange(0, 1); 81 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 82 FAIL selectionStart on an input[type=week] returns null Type error 83 FAIL selectionEnd on an input[type=week] returns null Type error 84 FAIL selectionDirection on an input[type=week] returns null Type error 85 FAIL assigning selectionStart on an input[type=week] throws InvalidStateError assert_throws_dom: function "function (){ 86 el.selectionStart = 0; 87 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 88 FAIL assigning selectionEnd on an input[type=week] throws InvalidStateError assert_throws_dom: function "function (){ 89 el.selectionEnd = 0; 90 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 91 FAIL assigning selectionDirection on an input[type=week] throws InvalidStateError assert_throws_dom: function "function (){ 92 el.selectionDirection = 'none'; 93 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 41 PASS setSelectionRange on an input[type=month] throws InvalidStateError 42 PASS selectionStart on an input[type=week] returns null 43 PASS selectionEnd on an input[type=week] returns null 44 PASS selectionDirection on an input[type=week] returns null 45 PASS assigning selectionStart on an input[type=week] throws InvalidStateError 46 PASS assigning selectionEnd on an input[type=week] throws InvalidStateError 47 PASS assigning selectionDirection on an input[type=week] throws InvalidStateError 94 48 PASS setRangeText on an input[type=week] throws InvalidStateError 95 FAIL setSelectionRange on an input[type=week] throws InvalidStateError assert_throws_dom: function "function (){ 96 el.setSelectionRange(0, 1); 97 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 98 FAIL selectionStart on an input[type=time] returns null Type error 99 FAIL selectionEnd on an input[type=time] returns null Type error 100 FAIL selectionDirection on an input[type=time] returns null Type error 101 FAIL assigning selectionStart on an input[type=time] throws InvalidStateError assert_throws_dom: function "function (){ 102 el.selectionStart = 0; 103 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 104 FAIL assigning selectionEnd on an input[type=time] throws InvalidStateError assert_throws_dom: function "function (){ 105 el.selectionEnd = 0; 106 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 107 FAIL assigning selectionDirection on an input[type=time] throws InvalidStateError assert_throws_dom: function "function (){ 108 el.selectionDirection = 'none'; 109 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 49 PASS setSelectionRange on an input[type=week] throws InvalidStateError 50 PASS selectionStart on an input[type=time] returns null 51 PASS selectionEnd on an input[type=time] returns null 52 PASS selectionDirection on an input[type=time] returns null 53 PASS assigning selectionStart on an input[type=time] throws InvalidStateError 54 PASS assigning selectionEnd on an input[type=time] throws InvalidStateError 55 PASS assigning selectionDirection on an input[type=time] throws InvalidStateError 110 56 PASS setRangeText on an input[type=time] throws InvalidStateError 111 FAIL setSelectionRange on an input[type=time] throws InvalidStateError assert_throws_dom: function "function (){ 112 el.setSelectionRange(0, 1); 113 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 114 FAIL selectionStart on an input[type=number] returns null assert_equals: expected (object) null but got (number) 0 115 FAIL selectionEnd on an input[type=number] returns null assert_equals: expected (object) null but got (number) 0 116 FAIL selectionDirection on an input[type=number] returns null assert_equals: expected (object) null but got (string) "none" 117 FAIL assigning selectionStart on an input[type=number] throws InvalidStateError assert_throws_dom: function "function (){ 118 el.selectionStart = 0; 119 }" did not throw 120 FAIL assigning selectionEnd on an input[type=number] throws InvalidStateError assert_throws_dom: function "function (){ 121 el.selectionEnd = 0; 122 }" did not throw 123 FAIL assigning selectionDirection on an input[type=number] throws InvalidStateError assert_throws_dom: function "function (){ 124 el.selectionDirection = 'none'; 125 }" did not throw 57 PASS setSelectionRange on an input[type=time] throws InvalidStateError 58 PASS selectionStart on an input[type=number] returns null 59 PASS selectionEnd on an input[type=number] returns null 60 PASS selectionDirection on an input[type=number] returns null 61 PASS assigning selectionStart on an input[type=number] throws InvalidStateError 62 PASS assigning selectionEnd on an input[type=number] throws InvalidStateError 63 PASS assigning selectionDirection on an input[type=number] throws InvalidStateError 126 64 PASS setRangeText on an input[type=number] throws InvalidStateError 127 FAIL setSelectionRange on an input[type=number] throws InvalidStateError assert_throws_dom: function "function (){ 128 el.setSelectionRange(0, 1); 129 }" did not throw 130 FAIL selectionStart on an input[type=range] returns null Type error 131 FAIL selectionEnd on an input[type=range] returns null Type error 132 FAIL selectionDirection on an input[type=range] returns null Type error 133 FAIL assigning selectionStart on an input[type=range] throws InvalidStateError assert_throws_dom: function "function (){ 134 el.selectionStart = 0; 135 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 136 FAIL assigning selectionEnd on an input[type=range] throws InvalidStateError assert_throws_dom: function "function (){ 137 el.selectionEnd = 0; 138 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 139 FAIL assigning selectionDirection on an input[type=range] throws InvalidStateError assert_throws_dom: function "function (){ 140 el.selectionDirection = 'none'; 141 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 65 PASS setSelectionRange on an input[type=number] throws InvalidStateError 66 PASS selectionStart on an input[type=range] returns null 67 PASS selectionEnd on an input[type=range] returns null 68 PASS selectionDirection on an input[type=range] returns null 69 PASS assigning selectionStart on an input[type=range] throws InvalidStateError 70 PASS assigning selectionEnd on an input[type=range] throws InvalidStateError 71 PASS assigning selectionDirection on an input[type=range] throws InvalidStateError 142 72 PASS setRangeText on an input[type=range] throws InvalidStateError 143 FAIL setSelectionRange on an input[type=range] throws InvalidStateError assert_throws_dom: function "function (){ 144 el.setSelectionRange(0, 1); 145 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 146 FAIL selectionStart on an input[type=color] returns null Type error 147 FAIL selectionEnd on an input[type=color] returns null Type error 148 FAIL selectionDirection on an input[type=color] returns null Type error 149 FAIL assigning selectionStart on an input[type=color] throws InvalidStateError assert_throws_dom: function "function (){ 150 el.selectionStart = 0; 151 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 152 FAIL assigning selectionEnd on an input[type=color] throws InvalidStateError assert_throws_dom: function "function (){ 153 el.selectionEnd = 0; 154 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 155 FAIL assigning selectionDirection on an input[type=color] throws InvalidStateError assert_throws_dom: function "function (){ 156 el.selectionDirection = 'none'; 157 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 73 PASS setSelectionRange on an input[type=range] throws InvalidStateError 74 PASS selectionStart on an input[type=color] returns null 75 PASS selectionEnd on an input[type=color] returns null 76 PASS selectionDirection on an input[type=color] returns null 77 PASS assigning selectionStart on an input[type=color] throws InvalidStateError 78 PASS assigning selectionEnd on an input[type=color] throws InvalidStateError 79 PASS assigning selectionDirection on an input[type=color] throws InvalidStateError 158 80 PASS setRangeText on an input[type=color] throws InvalidStateError 159 FAIL setSelectionRange on an input[type=color] throws InvalidStateError assert_throws_dom: function "function (){ 160 el.setSelectionRange(0, 1); 161 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 162 FAIL selectionStart on an input[type=checkbox] returns null Type error 163 FAIL selectionEnd on an input[type=checkbox] returns null Type error 164 FAIL selectionDirection on an input[type=checkbox] returns null Type error 165 FAIL assigning selectionStart on an input[type=checkbox] throws InvalidStateError assert_throws_dom: function "function (){ 166 el.selectionStart = 0; 167 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 168 FAIL assigning selectionEnd on an input[type=checkbox] throws InvalidStateError assert_throws_dom: function "function (){ 169 el.selectionEnd = 0; 170 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 171 FAIL assigning selectionDirection on an input[type=checkbox] throws InvalidStateError assert_throws_dom: function "function (){ 172 el.selectionDirection = 'none'; 173 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 81 PASS setSelectionRange on an input[type=color] throws InvalidStateError 82 PASS selectionStart on an input[type=checkbox] returns null 83 PASS selectionEnd on an input[type=checkbox] returns null 84 PASS selectionDirection on an input[type=checkbox] returns null 85 PASS assigning selectionStart on an input[type=checkbox] throws InvalidStateError 86 PASS assigning selectionEnd on an input[type=checkbox] throws InvalidStateError 87 PASS assigning selectionDirection on an input[type=checkbox] throws InvalidStateError 174 88 PASS setRangeText on an input[type=checkbox] throws InvalidStateError 175 FAIL setSelectionRange on an input[type=checkbox] throws InvalidStateError assert_throws_dom: function "function (){ 176 el.setSelectionRange(0, 1); 177 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 178 FAIL selectionStart on an input[type=radio] returns null Type error 179 FAIL selectionEnd on an input[type=radio] returns null Type error 180 FAIL selectionDirection on an input[type=radio] returns null Type error 181 FAIL assigning selectionStart on an input[type=radio] throws InvalidStateError assert_throws_dom: function "function (){ 182 el.selectionStart = 0; 183 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 184 FAIL assigning selectionEnd on an input[type=radio] throws InvalidStateError assert_throws_dom: function "function (){ 185 el.selectionEnd = 0; 186 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 187 FAIL assigning selectionDirection on an input[type=radio] throws InvalidStateError assert_throws_dom: function "function (){ 188 el.selectionDirection = 'none'; 189 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 89 PASS setSelectionRange on an input[type=checkbox] throws InvalidStateError 90 PASS selectionStart on an input[type=radio] returns null 91 PASS selectionEnd on an input[type=radio] returns null 92 PASS selectionDirection on an input[type=radio] returns null 93 PASS assigning selectionStart on an input[type=radio] throws InvalidStateError 94 PASS assigning selectionEnd on an input[type=radio] throws InvalidStateError 95 PASS assigning selectionDirection on an input[type=radio] throws InvalidStateError 190 96 PASS setRangeText on an input[type=radio] throws InvalidStateError 191 FAIL setSelectionRange on an input[type=radio] throws InvalidStateError assert_throws_dom: function "function (){ 192 el.setSelectionRange(0, 1); 193 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 194 FAIL selectionStart on an input[type=file] returns null Type error 195 FAIL selectionEnd on an input[type=file] returns null Type error 196 FAIL selectionDirection on an input[type=file] returns null Type error 197 FAIL assigning selectionStart on an input[type=file] throws InvalidStateError assert_throws_dom: function "function (){ 198 el.selectionStart = 0; 199 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 200 FAIL assigning selectionEnd on an input[type=file] throws InvalidStateError assert_throws_dom: function "function (){ 201 el.selectionEnd = 0; 202 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 203 FAIL assigning selectionDirection on an input[type=file] throws InvalidStateError assert_throws_dom: function "function (){ 204 el.selectionDirection = 'none'; 205 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 97 PASS setSelectionRange on an input[type=radio] throws InvalidStateError 98 PASS selectionStart on an input[type=file] returns null 99 PASS selectionEnd on an input[type=file] returns null 100 PASS selectionDirection on an input[type=file] returns null 101 PASS assigning selectionStart on an input[type=file] throws InvalidStateError 102 PASS assigning selectionEnd on an input[type=file] throws InvalidStateError 103 PASS assigning selectionDirection on an input[type=file] throws InvalidStateError 206 104 PASS setRangeText on an input[type=file] throws InvalidStateError 207 FAIL setSelectionRange on an input[type=file] throws InvalidStateError assert_throws_dom: function "function (){ 208 el.setSelectionRange(0, 1); 209 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 210 FAIL selectionStart on an input[type=submit] returns null Type error 211 FAIL selectionEnd on an input[type=submit] returns null Type error 212 FAIL selectionDirection on an input[type=submit] returns null Type error 213 FAIL assigning selectionStart on an input[type=submit] throws InvalidStateError assert_throws_dom: function "function (){ 214 el.selectionStart = 0; 215 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 216 FAIL assigning selectionEnd on an input[type=submit] throws InvalidStateError assert_throws_dom: function "function (){ 217 el.selectionEnd = 0; 218 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 219 FAIL assigning selectionDirection on an input[type=submit] throws InvalidStateError assert_throws_dom: function "function (){ 220 el.selectionDirection = 'none'; 221 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 105 PASS setSelectionRange on an input[type=file] throws InvalidStateError 106 PASS selectionStart on an input[type=submit] returns null 107 PASS selectionEnd on an input[type=submit] returns null 108 PASS selectionDirection on an input[type=submit] returns null 109 PASS assigning selectionStart on an input[type=submit] throws InvalidStateError 110 PASS assigning selectionEnd on an input[type=submit] throws InvalidStateError 111 PASS assigning selectionDirection on an input[type=submit] throws InvalidStateError 222 112 PASS setRangeText on an input[type=submit] throws InvalidStateError 223 FAIL setSelectionRange on an input[type=submit] throws InvalidStateError assert_throws_dom: function "function (){ 224 el.setSelectionRange(0, 1); 225 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 226 FAIL selectionStart on an input[type=image] returns null Type error 227 FAIL selectionEnd on an input[type=image] returns null Type error 228 FAIL selectionDirection on an input[type=image] returns null Type error 229 FAIL assigning selectionStart on an input[type=image] throws InvalidStateError assert_throws_dom: function "function (){ 230 el.selectionStart = 0; 231 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 232 FAIL assigning selectionEnd on an input[type=image] throws InvalidStateError assert_throws_dom: function "function (){ 233 el.selectionEnd = 0; 234 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 235 FAIL assigning selectionDirection on an input[type=image] throws InvalidStateError assert_throws_dom: function "function (){ 236 el.selectionDirection = 'none'; 237 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 113 PASS setSelectionRange on an input[type=submit] throws InvalidStateError 114 PASS selectionStart on an input[type=image] returns null 115 PASS selectionEnd on an input[type=image] returns null 116 PASS selectionDirection on an input[type=image] returns null 117 PASS assigning selectionStart on an input[type=image] throws InvalidStateError 118 PASS assigning selectionEnd on an input[type=image] throws InvalidStateError 119 PASS assigning selectionDirection on an input[type=image] throws InvalidStateError 238 120 PASS setRangeText on an input[type=image] throws InvalidStateError 239 FAIL setSelectionRange on an input[type=image] throws InvalidStateError assert_throws_dom: function "function (){ 240 el.setSelectionRange(0, 1); 241 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 242 FAIL selectionStart on an input[type=reset] returns null Type error 243 FAIL selectionEnd on an input[type=reset] returns null Type error 244 FAIL selectionDirection on an input[type=reset] returns null Type error 245 FAIL assigning selectionStart on an input[type=reset] throws InvalidStateError assert_throws_dom: function "function (){ 246 el.selectionStart = 0; 247 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 248 FAIL assigning selectionEnd on an input[type=reset] throws InvalidStateError assert_throws_dom: function "function (){ 249 el.selectionEnd = 0; 250 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 251 FAIL assigning selectionDirection on an input[type=reset] throws InvalidStateError assert_throws_dom: function "function (){ 252 el.selectionDirection = 'none'; 253 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 121 PASS setSelectionRange on an input[type=image] throws InvalidStateError 122 PASS selectionStart on an input[type=reset] returns null 123 PASS selectionEnd on an input[type=reset] returns null 124 PASS selectionDirection on an input[type=reset] returns null 125 PASS assigning selectionStart on an input[type=reset] throws InvalidStateError 126 PASS assigning selectionEnd on an input[type=reset] throws InvalidStateError 127 PASS assigning selectionDirection on an input[type=reset] throws InvalidStateError 254 128 PASS setRangeText on an input[type=reset] throws InvalidStateError 255 FAIL setSelectionRange on an input[type=reset] throws InvalidStateError assert_throws_dom: function "function (){ 256 el.setSelectionRange(0, 1); 257 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 258 FAIL selectionStart on an input[type=button] returns null Type error 259 FAIL selectionEnd on an input[type=button] returns null Type error 260 FAIL selectionDirection on an input[type=button] returns null Type error 261 FAIL assigning selectionStart on an input[type=button] throws InvalidStateError assert_throws_dom: function "function (){ 262 el.selectionStart = 0; 263 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 264 FAIL assigning selectionEnd on an input[type=button] throws InvalidStateError assert_throws_dom: function "function (){ 265 el.selectionEnd = 0; 266 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 267 FAIL assigning selectionDirection on an input[type=button] throws InvalidStateError assert_throws_dom: function "function (){ 268 el.selectionDirection = 'none'; 269 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 129 PASS setSelectionRange on an input[type=reset] throws InvalidStateError 130 PASS selectionStart on an input[type=button] returns null 131 PASS selectionEnd on an input[type=button] returns null 132 PASS selectionDirection on an input[type=button] returns null 133 PASS assigning selectionStart on an input[type=button] throws InvalidStateError 134 PASS assigning selectionEnd on an input[type=button] throws InvalidStateError 135 PASS assigning selectionDirection on an input[type=button] throws InvalidStateError 270 136 PASS setRangeText on an input[type=button] throws InvalidStateError 271 FAIL setSelectionRange on an input[type=button] throws InvalidStateError assert_throws_dom: function "function (){ 272 el.setSelectionRange(0, 1); 273 }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11 137 PASS setSelectionRange on an input[type=button] throws InvalidStateError 274 138 PASS selectionStart on an input[type=text] returns a value 275 139 PASS selectionEnd on an input[type=text] returns a value -
trunk/LayoutTests/platform/mac-wk2/imported/w3c/web-platform-tests/html/semantics/forms/the-input-element/selection-expected.txt
r267658 r289813 15 15 PASS input type color should support the select() method 16 16 PASS input type file should support the select() method 17 FAIL input type hidden should do nothing when the select() method is called (but, not throw) Type error 18 FAIL input type range should do nothing when the select() method is called (but, not throw) Type error 19 FAIL input type checkbox should do nothing when the select() method is called (but, not throw) Type error 20 FAIL input type radio should do nothing when the select() method is called (but, not throw) Type error 21 FAIL input type submit should do nothing when the select() method is called (but, not throw) Type error 22 FAIL input type image should do nothing when the select() method is called (but, not throw) Type error 23 FAIL input type reset should do nothing when the select() method is called (but, not throw) Type error 24 FAIL input type button should do nothing when the select() method is called (but, not throw) Type error 17 PASS input type hidden should do nothing when the select() method is called (but, not throw) 18 PASS input type range should do nothing when the select() method is called (but, not throw) 19 PASS input type checkbox should do nothing when the select() method is called (but, not throw) 20 PASS input type radio should do nothing when the select() method is called (but, not throw) 21 PASS input type submit should do nothing when the select() method is called (but, not throw) 22 PASS input type image should do nothing when the select() method is called (but, not throw) 23 PASS input type reset should do nothing when the select() method is called (but, not throw) 24 PASS input type button should do nothing when the select() method is called (but, not throw) 25 25 PASS Input element programmatic selection support 1 26 26 PASS input type text should support all selection attributes and methods … … 29 29 PASS input type tel should support all selection attributes and methods 30 30 PASS input type password should support all selection attributes and methods 31 FAIL input type hidden should not support variable-length selections Type error 32 FAIL input type email should not support variable-length selections assert_equals: getting input.selectionStart expected (object) null but got (number) 0 33 FAIL input type date should not support variable-length selections Type error 34 FAIL input type month should not support variable-length selections Type error 35 FAIL input type week should not support variable-length selections Type error 36 FAIL input type time should not support variable-length selections Type error 37 FAIL input type datetime-local should not support variable-length selections Type error 38 FAIL input type number should not support variable-length selections assert_equals: getting input.selectionStart expected (object) null but got (number) 0 39 FAIL input type range should not support variable-length selections Type error 40 FAIL input type color should not support variable-length selections Type error 41 FAIL input type checkbox should not support variable-length selections Type error 42 FAIL input type radio should not support variable-length selections Type error 43 FAIL input type file should not support variable-length selections Type error 44 FAIL input type submit should not support variable-length selections Type error 45 FAIL input type image should not support variable-length selections Type error 46 FAIL input type reset should not support variable-length selections Type error 47 FAIL input type button should not support variable-length selections Type error 31 PASS input type hidden should not support variable-length selections 32 PASS input type email should not support variable-length selections 33 PASS input type date should not support variable-length selections 34 PASS input type month should not support variable-length selections 35 PASS input type week should not support variable-length selections 36 PASS input type time should not support variable-length selections 37 PASS input type datetime-local should not support variable-length selections 38 PASS input type number should not support variable-length selections 39 PASS input type range should not support variable-length selections 40 PASS input type color should not support variable-length selections 41 PASS input type checkbox should not support variable-length selections 42 PASS input type radio should not support variable-length selections 43 PASS input type file should not support variable-length selections 44 PASS input type submit should not support variable-length selections 45 PASS input type image should not support variable-length selections 46 PASS input type reset should not support variable-length selections 47 PASS input type button should not support variable-length selections 48 48 -
trunk/LayoutTests/platform/mac-wk2/imported/w3c/web-platform-tests/html/semantics/forms/the-input-element/type-change-state-expected.txt
r267658 r289813 1 1 2 FAIL change state from hidden to text Type error 3 FAIL change state from hidden to search Type error 4 FAIL change state from hidden to tel Type error 5 FAIL change state from hidden to url Type error 6 FAIL change state from hidden to email Type error 7 FAIL change state from hidden to password Type error 8 FAIL change state from hidden to datetime-local Type error 9 FAIL change state from hidden to date Type error 10 FAIL change state from hidden to month Type error 11 FAIL change state from hidden to week Type error 12 FAIL change state from hidden to time Type error 13 FAIL change state from hidden to number Type error14 FAIL change state from hidden to range Type error 15 FAIL change state from hidden to color Type error16 FAIL change state from hidden to checkbox Type error 17 FAIL change state from hidden to radio Type error 2 PASS change state from hidden to text 3 PASS change state from hidden to search 4 PASS change state from hidden to tel 5 PASS change state from hidden to url 6 PASS change state from hidden to email 7 PASS change state from hidden to password 8 PASS change state from hidden to datetime-local 9 PASS change state from hidden to date 10 PASS change state from hidden to month 11 PASS change state from hidden to week 12 PASS change state from hidden to time 13 PASS change state from hidden to number 14 PASS change state from hidden to range 15 PASS change state from hidden to color 16 PASS change state from hidden to checkbox 17 PASS change state from hidden to radio 18 18 PASS change state from hidden to file 19 FAIL change state from hidden to submit Type error 20 FAIL change state from hidden to image Type error 21 FAIL change state from hidden to reset Type error 22 FAIL change state from hidden to button Type error 23 FAIL change state from text to hidden Type error 19 PASS change state from hidden to submit 20 PASS change state from hidden to image 21 PASS change state from hidden to reset 22 PASS change state from hidden to button 23 PASS change state from text to hidden 24 24 PASS change state from text to search 25 25 PASS change state from text to tel 26 26 FAIL change state from text to url assert_equals: selectionStart should be unchanged expected 2 but got 6 27 FAIL change state from text to email assert_equals: selectionStart should be unchanged expected 2 but got 6 27 PASS change state from text to email 28 28 PASS change state from text to password 29 FAIL change state from text to datetime-local Type error 30 FAIL change state from text to date Type error 31 FAIL change state from text to month Type error 32 FAIL change state from text to week Type error 33 FAIL change state from text to time Type error 34 FAIL change state from text to number assert_equals: selectionStart should be unchanged expected 2 but got 0 35 FAIL change state from text to range Type error 36 FAIL change state from text to color Type error37 FAIL change state from text to checkbox Type error 38 FAIL change state from text to radio Type error 29 PASS change state from text to datetime-local 30 PASS change state from text to date 31 PASS change state from text to month 32 PASS change state from text to week 33 PASS change state from text to time 34 PASS change state from text to number 35 PASS change state from text to range 36 PASS change state from text to color 37 PASS change state from text to checkbox 38 PASS change state from text to radio 39 39 PASS change state from text to file 40 FAIL change state from text to submit Type error 41 FAIL change state from text to image Type error 42 FAIL change state from text to reset Type error 43 FAIL change state from text to button Type error 44 FAIL change state from search to hidden Type error 40 PASS change state from text to submit 41 PASS change state from text to image 42 PASS change state from text to reset 43 PASS change state from text to button 44 PASS change state from search to hidden 45 45 PASS change state from search to text 46 46 PASS change state from search to tel 47 47 FAIL change state from search to url assert_equals: selectionStart should be unchanged expected 2 but got 6 48 FAIL change state from search to email assert_equals: selectionStart should be unchanged expected 2 but got 6 48 PASS change state from search to email 49 49 PASS change state from search to password 50 FAIL change state from search to datetime-local Type error 51 FAIL change state from search to date Type error 52 FAIL change state from search to month Type error 53 FAIL change state from search to week Type error 54 FAIL change state from search to time Type error 55 FAIL change state from search to number assert_equals: selectionStart should be unchanged expected 2 but got 0 56 FAIL change state from search to range Type error 57 FAIL change state from search to color Type error58 FAIL change state from search to checkbox Type error 59 FAIL change state from search to radio Type error 50 PASS change state from search to datetime-local 51 PASS change state from search to date 52 PASS change state from search to month 53 PASS change state from search to week 54 PASS change state from search to time 55 PASS change state from search to number 56 PASS change state from search to range 57 PASS change state from search to color 58 PASS change state from search to checkbox 59 PASS change state from search to radio 60 60 PASS change state from search to file 61 FAIL change state from search to submit Type error 62 FAIL change state from search to image Type error 63 FAIL change state from search to reset Type error 64 FAIL change state from search to button Type error 65 FAIL change state from tel to hidden Type error 61 PASS change state from search to submit 62 PASS change state from search to image 63 PASS change state from search to reset 64 PASS change state from search to button 65 PASS change state from tel to hidden 66 66 PASS change state from tel to text 67 67 PASS change state from tel to search 68 68 FAIL change state from tel to url assert_equals: selectionStart should be unchanged expected 2 but got 6 69 FAIL change state from tel to email assert_equals: selectionStart should be unchanged expected 2 but got 6 69 PASS change state from tel to email 70 70 PASS change state from tel to password 71 FAIL change state from tel to datetime-local Type error 72 FAIL change state from tel to date Type error 73 FAIL change state from tel to month Type error 74 FAIL change state from tel to week Type error 75 FAIL change state from tel to time Type error 76 FAIL change state from tel to number assert_equals: selectionStart should be unchanged expected 2 but got 0 77 FAIL change state from tel to range Type error 78 FAIL change state from tel to color Type error79 FAIL change state from tel to checkbox Type error 80 FAIL change state from tel to radio Type error 71 PASS change state from tel to datetime-local 72 PASS change state from tel to date 73 PASS change state from tel to month 74 PASS change state from tel to week 75 PASS change state from tel to time 76 PASS change state from tel to number 77 PASS change state from tel to range 78 PASS change state from tel to color 79 PASS change state from tel to checkbox 80 PASS change state from tel to radio 81 81 PASS change state from tel to file 82 FAIL change state from tel to submit Type error 83 FAIL change state from tel to image Type error 84 FAIL change state from tel to reset Type error 85 FAIL change state from tel to button Type error 86 FAIL change state from url to hidden Type error 82 PASS change state from tel to submit 83 PASS change state from tel to image 84 PASS change state from tel to reset 85 PASS change state from tel to button 86 PASS change state from url to hidden 87 87 PASS change state from url to text 88 88 PASS change state from url to search … … 90 90 PASS change state from url to email 91 91 PASS change state from url to password 92 FAIL change state from url to datetime-local Type error 93 FAIL change state from url to date Type error 94 FAIL change state from url to month Type error 95 FAIL change state from url to week Type error 96 FAIL change state from url to time Type error 97 FAIL change state from url to number assert_equals: selectionStart should be unchanged expected 2 but got 0 98 FAIL change state from url to range Type error 99 FAIL change state from url to color Type error100 FAIL change state from url to checkbox Type error 101 FAIL change state from url to radio Type error 92 PASS change state from url to datetime-local 93 PASS change state from url to date 94 PASS change state from url to month 95 PASS change state from url to week 96 PASS change state from url to time 97 PASS change state from url to number 98 PASS change state from url to range 99 PASS change state from url to color 100 PASS change state from url to checkbox 101 PASS change state from url to radio 102 102 PASS change state from url to file 103 FAIL change state from url to submit Type error 104 FAIL change state from url to image Type error 105 FAIL change state from url to reset Type error 106 FAIL change state from url to button Type error 107 FAIL change state from email to hidden Type error 108 PASS change state from email to text 109 PASS change state from email to search 110 PASS change state from email to tel 111 PASS change state from email to url 112 PASS change state from email to password 113 FAIL change state from email to datetime-local Type error 114 FAIL change state from email to date Type error 115 FAIL change state from email to month Type error 116 FAIL change state from email to week Type error 117 FAIL change state from email to time Type error 118 FAIL change state from email to number assert_equals: selectionStart should be unchanged expected 2 but got 0 119 FAIL change state from email to range Type error 120 FAIL change state from email to color Type error121 FAIL change state from email to checkbox Type error 122 FAIL change state from email to radio Type error 103 PASS change state from url to submit 104 PASS change state from url to image 105 PASS change state from url to reset 106 PASS change state from url to button 107 PASS change state from email to hidden 108 FAIL change state from email to text assert_equals: selectionStart should be 0 expected 0 but got 6 109 FAIL change state from email to search assert_equals: selectionStart should be 0 expected 0 but got 6 110 FAIL change state from email to tel assert_equals: selectionStart should be 0 expected 0 but got 6 111 FAIL change state from email to url assert_equals: selectionStart should be 0 expected 0 but got 6 112 FAIL change state from email to password assert_equals: selectionStart should be 0 expected 0 but got 6 113 PASS change state from email to datetime-local 114 PASS change state from email to date 115 PASS change state from email to month 116 PASS change state from email to week 117 PASS change state from email to time 118 PASS change state from email to number 119 PASS change state from email to range 120 PASS change state from email to color 121 PASS change state from email to checkbox 122 PASS change state from email to radio 123 123 PASS change state from email to file 124 FAIL change state from email to submit Type error 125 FAIL change state from email to image Type error 126 FAIL change state from email to reset Type error 127 FAIL change state from email to button Type error 128 FAIL change state from password to hidden Type error 124 PASS change state from email to submit 125 PASS change state from email to image 126 PASS change state from email to reset 127 PASS change state from email to button 128 PASS change state from password to hidden 129 129 PASS change state from password to text 130 130 PASS change state from password to search 131 131 PASS change state from password to tel 132 132 FAIL change state from password to url assert_equals: selectionStart should be unchanged expected 2 but got 6 133 FAIL change state from password to email assert_equals: selectionStart should be unchanged expected 2 but got 6 134 FAIL change state from password to datetime-local Type error 135 FAIL change state from password to date Type error 136 FAIL change state from password to month Type error 137 FAIL change state from password to week Type error 138 FAIL change state from password to time Type error 139 FAIL change state from password to number assert_equals: selectionStart should be unchanged expected 2 but got 0 140 FAIL change state from password to range Type error 141 FAIL change state from password to color Type error142 FAIL change state from password to checkbox Type error 143 FAIL change state from password to radio Type error 133 PASS change state from password to email 134 PASS change state from password to datetime-local 135 PASS change state from password to date 136 PASS change state from password to month 137 PASS change state from password to week 138 PASS change state from password to time 139 PASS change state from password to number 140 PASS change state from password to range 141 PASS change state from password to color 142 PASS change state from password to checkbox 143 PASS change state from password to radio 144 144 PASS change state from password to file 145 FAIL change state from password to submit Type error 146 FAIL change state from password to image Type error 147 FAIL change state from password to reset Type error 148 FAIL change state from password to button Type error 149 FAIL change state from datetime-local to hidden Type error 150 FAIL change state from datetime-local to text Type error 151 FAIL change state from datetime-local to search Type error 152 FAIL change state from datetime-local to tel Type error 153 FAIL change state from datetime-local to url Type error 154 FAIL change state from datetime-local to email Type error 155 FAIL change state from datetime-local to password Type error 156 FAIL change state from datetime-local to date Type error 157 FAIL change state from datetime-local to month Type error 158 FAIL change state from datetime-local to week Type error 159 FAIL change state from datetime-local to time Type error 160 FAIL change state from datetime-local to number Type error161 FAIL change state from datetime-local to range Type error 162 FAIL change state from datetime-local to color Type error163 FAIL change state from datetime-local to checkbox Type error164 FAIL change state from datetime-local to radio Type error145 PASS change state from password to submit 146 PASS change state from password to image 147 PASS change state from password to reset 148 PASS change state from password to button 149 PASS change state from datetime-local to hidden 150 PASS change state from datetime-local to text 151 PASS change state from datetime-local to search 152 PASS change state from datetime-local to tel 153 PASS change state from datetime-local to url 154 PASS change state from datetime-local to email 155 PASS change state from datetime-local to password 156 PASS change state from datetime-local to date 157 PASS change state from datetime-local to month 158 PASS change state from datetime-local to week 159 PASS change state from datetime-local to time 160 PASS change state from datetime-local to number 161 PASS change state from datetime-local to range 162 PASS change state from datetime-local to color 163 FAIL change state from datetime-local to checkbox assert_equals: input.value should be 'on' after change of state expected "on" but got "" 164 FAIL change state from datetime-local to radio assert_equals: input.value should be 'on' after change of state expected "on" but got "" 165 165 PASS change state from datetime-local to file 166 FAIL change state from datetime-local to submit Type error 167 FAIL change state from datetime-local to image Type error 168 FAIL change state from datetime-local to reset Type error 169 FAIL change state from datetime-local to button Type error 170 FAIL change state from date to hidden Type error 171 FAIL change state from date to text Type error 172 FAIL change state from date to search Type error 173 FAIL change state from date to tel Type error 174 FAIL change state from date to url Type error 175 FAIL change state from date to email Type error 176 FAIL change state from date to password Type error 177 FAIL change state from date to datetime-local Type error 178 FAIL change state from date to month Type error 179 FAIL change state from date to week Type error 180 FAIL change state from date to time Type error 181 FAIL change state from date to number Type error182 FAIL change state from date to range Type error 183 FAIL change state from date to color Type error184 FAIL change state from date to checkbox Type error 185 FAIL change state from date to radio Type error 166 PASS change state from datetime-local to submit 167 PASS change state from datetime-local to image 168 PASS change state from datetime-local to reset 169 PASS change state from datetime-local to button 170 PASS change state from date to hidden 171 PASS change state from date to text 172 PASS change state from date to search 173 PASS change state from date to tel 174 PASS change state from date to url 175 PASS change state from date to email 176 PASS change state from date to password 177 PASS change state from date to datetime-local 178 PASS change state from date to month 179 PASS change state from date to week 180 PASS change state from date to time 181 PASS change state from date to number 182 PASS change state from date to range 183 PASS change state from date to color 184 PASS change state from date to checkbox 185 PASS change state from date to radio 186 186 PASS change state from date to file 187 FAIL change state from date to submit Type error 188 FAIL change state from date to image Type error 189 FAIL change state from date to reset Type error 190 FAIL change state from date to button Type error 191 FAIL change state from month to hidden Type error 192 FAIL change state from month to text Type error 193 FAIL change state from month to search Type error 194 FAIL change state from month to tel Type error 195 FAIL change state from month to url Type error 196 FAIL change state from month to email Type error 197 FAIL change state from month to password Type error 198 FAIL change state from month to datetime-local Type error 199 FAIL change state from month to date Type error 200 FAIL change state from month to week Type error 201 FAIL change state from month to time Type error 202 FAIL change state from month to number Type error203 FAIL change state from month to range Type error 204 FAIL change state from month to color Type error205 FAIL change state from month to checkbox Type error 206 FAIL change state from month to radio Type error 187 PASS change state from date to submit 188 PASS change state from date to image 189 PASS change state from date to reset 190 PASS change state from date to button 191 PASS change state from month to hidden 192 PASS change state from month to text 193 PASS change state from month to search 194 PASS change state from month to tel 195 PASS change state from month to url 196 PASS change state from month to email 197 PASS change state from month to password 198 PASS change state from month to datetime-local 199 PASS change state from month to date 200 PASS change state from month to week 201 PASS change state from month to time 202 PASS change state from month to number 203 PASS change state from month to range 204 PASS change state from month to color 205 PASS change state from month to checkbox 206 PASS change state from month to radio 207 207 PASS change state from month to file 208 FAIL change state from month to submit Type error 209 FAIL change state from month to image Type error 210 FAIL change state from month to reset Type error 211 FAIL change state from month to button Type error 212 FAIL change state from week to hidden Type error 213 FAIL change state from week to text Type error 214 FAIL change state from week to search Type error 215 FAIL change state from week to tel Type error 216 FAIL change state from week to url Type error 217 FAIL change state from week to email Type error 218 FAIL change state from week to password Type error 219 FAIL change state from week to datetime-local Type error 220 FAIL change state from week to date Type error 221 FAIL change state from week to month Type error 222 FAIL change state from week to time Type error 223 FAIL change state from week to number Type error224 FAIL change state from week to range Type error 225 FAIL change state from week to color Type error226 FAIL change state from week to checkbox Type error 227 FAIL change state from week to radio Type error 208 PASS change state from month to submit 209 PASS change state from month to image 210 PASS change state from month to reset 211 PASS change state from month to button 212 PASS change state from week to hidden 213 PASS change state from week to text 214 PASS change state from week to search 215 PASS change state from week to tel 216 PASS change state from week to url 217 PASS change state from week to email 218 PASS change state from week to password 219 PASS change state from week to datetime-local 220 PASS change state from week to date 221 PASS change state from week to month 222 PASS change state from week to time 223 PASS change state from week to number 224 PASS change state from week to range 225 PASS change state from week to color 226 PASS change state from week to checkbox 227 PASS change state from week to radio 228 228 PASS change state from week to file 229 FAIL change state from week to submit Type error 230 FAIL change state from week to image Type error 231 FAIL change state from week to reset Type error 232 FAIL change state from week to button Type error 233 FAIL change state from time to hidden Type error 234 FAIL change state from time to text Type error 235 FAIL change state from time to search Type error 236 FAIL change state from time to tel Type error 237 FAIL change state from time to url Type error 238 FAIL change state from time to email Type error 239 FAIL change state from time to password Type error 240 FAIL change state from time to datetime-local Type error 241 FAIL change state from time to date Type error 242 FAIL change state from time to month Type error 243 FAIL change state from time to week Type error 244 FAIL change state from time to number Type error245 FAIL change state from time to range Type error 246 FAIL change state from time to color Type error247 FAIL change state from time to checkbox Type error 248 FAIL change state from time to radio Type error 229 PASS change state from week to submit 230 PASS change state from week to image 231 PASS change state from week to reset 232 PASS change state from week to button 233 PASS change state from time to hidden 234 PASS change state from time to text 235 PASS change state from time to search 236 PASS change state from time to tel 237 PASS change state from time to url 238 PASS change state from time to email 239 PASS change state from time to password 240 PASS change state from time to datetime-local 241 PASS change state from time to date 242 PASS change state from time to month 243 PASS change state from time to week 244 PASS change state from time to number 245 PASS change state from time to range 246 PASS change state from time to color 247 PASS change state from time to checkbox 248 PASS change state from time to radio 249 249 PASS change state from time to file 250 FAIL change state from time to submit Type error 251 FAIL change state from time to image Type error 252 FAIL change state from time to reset Type error 253 FAIL change state from time to button Type error 254 FAIL change state from number to hidden Type error 250 PASS change state from time to submit 251 PASS change state from time to image 252 PASS change state from time to reset 253 PASS change state from time to button 254 PASS change state from number to hidden 255 255 PASS change state from number to text 256 256 PASS change state from number to search … … 259 259 PASS change state from number to email 260 260 PASS change state from number to password 261 FAIL change state from number to datetime-local Type error 262 FAIL change state from number to date Type error 263 FAIL change state from number to month Type error 264 FAIL change state from number to week Type error 265 FAIL change state from number to time Type error 266 FAIL change state from number to range Type error 267 FAIL change state from number to color Type error261 PASS change state from number to datetime-local 262 PASS change state from number to date 263 PASS change state from number to month 264 PASS change state from number to week 265 PASS change state from number to time 266 PASS change state from number to range 267 PASS change state from number to color 268 268 FAIL change state from number to checkbox assert_equals: input.value should be 'on' after change of state expected "on" but got "" 269 269 FAIL change state from number to radio assert_equals: input.value should be 'on' after change of state expected "on" but got "" 270 270 PASS change state from number to file 271 FAIL change state from number to submit Type error 272 FAIL change state from number to image Type error 273 FAIL change state from number to reset Type error 274 FAIL change state from number to button Type error 275 FAIL change state from range to hidden Type error 276 FAIL change state from range to text Type error 277 FAIL change state from range to search Type error 278 FAIL change state from range to tel Type error 279 FAIL change state from range to url Type error 280 FAIL change state from range to email Type error 281 FAIL change state from range to password Type error 282 FAIL change state from range to datetime-local Type error 283 FAIL change state from range to date Type error 284 FAIL change state from range to month Type error 285 FAIL change state from range to week Type error 286 FAIL change state from range to time Type error 287 FAIL change state from range to number Type error288 FAIL change state from range to color Type error289 FAIL change state from range to checkbox Type error 290 FAIL change state from range to radio Type error 271 PASS change state from number to submit 272 PASS change state from number to image 273 PASS change state from number to reset 274 PASS change state from number to button 275 PASS change state from range to hidden 276 PASS change state from range to text 277 PASS change state from range to search 278 PASS change state from range to tel 279 PASS change state from range to url 280 PASS change state from range to email 281 PASS change state from range to password 282 PASS change state from range to datetime-local 283 PASS change state from range to date 284 PASS change state from range to month 285 PASS change state from range to week 286 PASS change state from range to time 287 PASS change state from range to number 288 PASS change state from range to color 289 PASS change state from range to checkbox 290 PASS change state from range to radio 291 291 PASS change state from range to file 292 FAIL change state from range to submit Type error 293 FAIL change state from range to image Type error 294 FAIL change state from range to reset Type error 295 FAIL change state from range to button Type error 296 FAIL change state from color to hidden Type error 297 FAIL change state from color to text Type error 298 FAIL change state from color to search Type error 299 FAIL change state from color to tel Type error 300 FAIL change state from color to url Type error 301 FAIL change state from color to email Type error 302 FAIL change state from color to password Type error 303 FAIL change state from color to datetime-local Type error 304 FAIL change state from color to date Type error 305 FAIL change state from color to month Type error 306 FAIL change state from color to week Type error 307 FAIL change state from color to time Type error 308 FAIL change state from color to number Type error309 FAIL change state from color to range Type error 310 FAIL change state from color to checkbox Type error 311 FAIL change state from color to radio Type error 292 PASS change state from range to submit 293 PASS change state from range to image 294 PASS change state from range to reset 295 PASS change state from range to button 296 PASS change state from color to hidden 297 PASS change state from color to text 298 PASS change state from color to search 299 PASS change state from color to tel 300 PASS change state from color to url 301 PASS change state from color to email 302 PASS change state from color to password 303 PASS change state from color to datetime-local 304 PASS change state from color to date 305 PASS change state from color to month 306 PASS change state from color to week 307 PASS change state from color to time 308 PASS change state from color to number 309 PASS change state from color to range 310 PASS change state from color to checkbox 311 PASS change state from color to radio 312 312 PASS change state from color to file 313 FAIL change state from color to submit Type error 314 FAIL change state from color to image Type error 315 FAIL change state from color to reset Type error 316 FAIL change state from color to button Type error 317 FAIL change state from checkbox to hidden Type error 318 FAIL change state from checkbox to text Type error 319 FAIL change state from checkbox to search Type error 320 FAIL change state from checkbox to tel Type error 321 FAIL change state from checkbox to url Type error 322 FAIL change state from checkbox to email Type error 323 FAIL change state from checkbox to password Type error 324 FAIL change state from checkbox to datetime-local Type error 325 FAIL change state from checkbox to date Type error 326 FAIL change state from checkbox to month Type error 327 FAIL change state from checkbox to week Type error 328 FAIL change state from checkbox to time Type error 329 FAIL change state from checkbox to number Type error330 FAIL change state from checkbox to range Type error 331 FAIL change state from checkbox to color Type error332 FAIL change state from checkbox to radio Type error 313 PASS change state from color to submit 314 PASS change state from color to image 315 PASS change state from color to reset 316 PASS change state from color to button 317 PASS change state from checkbox to hidden 318 PASS change state from checkbox to text 319 PASS change state from checkbox to search 320 PASS change state from checkbox to tel 321 PASS change state from checkbox to url 322 PASS change state from checkbox to email 323 PASS change state from checkbox to password 324 PASS change state from checkbox to datetime-local 325 PASS change state from checkbox to date 326 PASS change state from checkbox to month 327 PASS change state from checkbox to week 328 PASS change state from checkbox to time 329 PASS change state from checkbox to number 330 PASS change state from checkbox to range 331 PASS change state from checkbox to color 332 PASS change state from checkbox to radio 333 333 PASS change state from checkbox to file 334 FAIL change state from checkbox to submit Type error 335 FAIL change state from checkbox to image Type error 336 FAIL change state from checkbox to reset Type error 337 FAIL change state from checkbox to button Type error 338 FAIL change state from radio to hidden Type error 339 FAIL change state from radio to text Type error 340 FAIL change state from radio to search Type error 341 FAIL change state from radio to tel Type error 342 FAIL change state from radio to url Type error 343 FAIL change state from radio to email Type error 344 FAIL change state from radio to password Type error 345 FAIL change state from radio to datetime-local Type error 346 FAIL change state from radio to date Type error 347 FAIL change state from radio to month Type error 348 FAIL change state from radio to week Type error 349 FAIL change state from radio to time Type error 350 FAIL change state from radio to number Type error351 FAIL change state from radio to range Type error 352 FAIL change state from radio to color Type error353 FAIL change state from radio to checkbox Type error 334 PASS change state from checkbox to submit 335 PASS change state from checkbox to image 336 PASS change state from checkbox to reset 337 PASS change state from checkbox to button 338 PASS change state from radio to hidden 339 PASS change state from radio to text 340 PASS change state from radio to search 341 PASS change state from radio to tel 342 PASS change state from radio to url 343 PASS change state from radio to email 344 PASS change state from radio to password 345 PASS change state from radio to datetime-local 346 PASS change state from radio to date 347 PASS change state from radio to month 348 PASS change state from radio to week 349 PASS change state from radio to time 350 PASS change state from radio to number 351 PASS change state from radio to range 352 PASS change state from radio to color 353 PASS change state from radio to checkbox 354 354 PASS change state from radio to file 355 FAIL change state from radio to submit Type error 356 FAIL change state from radio to image Type error 357 FAIL change state from radio to reset Type error 358 FAIL change state from radio to button Type error 355 PASS change state from radio to submit 356 PASS change state from radio to image 357 PASS change state from radio to reset 358 PASS change state from radio to button 359 359 PASS change state from file to hidden 360 360 PASS change state from file to text … … 378 378 PASS change state from file to reset 379 379 PASS change state from file to button 380 FAIL change state from submit to hidden Type error 381 FAIL change state from submit to text Type error 382 FAIL change state from submit to search Type error 383 FAIL change state from submit to tel Type error 384 FAIL change state from submit to url Type error 385 FAIL change state from submit to email Type error 386 FAIL change state from submit to password Type error 387 FAIL change state from submit to datetime-local Type error 388 FAIL change state from submit to date Type error 389 FAIL change state from submit to month Type error 390 FAIL change state from submit to week Type error 391 FAIL change state from submit to time Type error 392 FAIL change state from submit to number Type error393 FAIL change state from submit to range Type error 394 FAIL change state from submit to color Type error395 FAIL change state from submit to checkbox Type error 396 FAIL change state from submit to radio Type error 380 PASS change state from submit to hidden 381 PASS change state from submit to text 382 PASS change state from submit to search 383 PASS change state from submit to tel 384 PASS change state from submit to url 385 PASS change state from submit to email 386 PASS change state from submit to password 387 PASS change state from submit to datetime-local 388 PASS change state from submit to date 389 PASS change state from submit to month 390 PASS change state from submit to week 391 PASS change state from submit to time 392 PASS change state from submit to number 393 PASS change state from submit to range 394 PASS change state from submit to color 395 PASS change state from submit to checkbox 396 PASS change state from submit to radio 397 397 PASS change state from submit to file 398 FAIL change state from submit to image Type error 399 FAIL change state from submit to reset Type error 400 FAIL change state from submit to button Type error 401 FAIL change state from image to hidden Type error 402 FAIL change state from image to text Type error 403 FAIL change state from image to search Type error 404 FAIL change state from image to tel Type error 405 FAIL change state from image to url Type error 406 FAIL change state from image to email Type error 407 FAIL change state from image to password Type error 408 FAIL change state from image to datetime-local Type error 409 FAIL change state from image to date Type error 410 FAIL change state from image to month Type error 411 FAIL change state from image to week Type error 412 FAIL change state from image to time Type error 413 FAIL change state from image to number Type error414 FAIL change state from image to range Type error 415 FAIL change state from image to color Type error416 FAIL change state from image to checkbox Type error 417 FAIL change state from image to radio Type error 398 PASS change state from submit to image 399 PASS change state from submit to reset 400 PASS change state from submit to button 401 PASS change state from image to hidden 402 PASS change state from image to text 403 PASS change state from image to search 404 PASS change state from image to tel 405 PASS change state from image to url 406 PASS change state from image to email 407 PASS change state from image to password 408 PASS change state from image to datetime-local 409 PASS change state from image to date 410 PASS change state from image to month 411 PASS change state from image to week 412 PASS change state from image to time 413 PASS change state from image to number 414 PASS change state from image to range 415 PASS change state from image to color 416 PASS change state from image to checkbox 417 PASS change state from image to radio 418 418 PASS change state from image to file 419 FAIL change state from image to submit Type error 420 FAIL change state from image to reset Type error 421 FAIL change state from image to button Type error 422 FAIL change state from reset to hidden Type error 423 FAIL change state from reset to text Type error 424 FAIL change state from reset to search Type error 425 FAIL change state from reset to tel Type error 426 FAIL change state from reset to url Type error 427 FAIL change state from reset to email Type error 428 FAIL change state from reset to password Type error 429 FAIL change state from reset to datetime-local Type error 430 FAIL change state from reset to date Type error 431 FAIL change state from reset to month Type error 432 FAIL change state from reset to week Type error 433 FAIL change state from reset to time Type error 434 FAIL change state from reset to number Type error435 FAIL change state from reset to range Type error 436 FAIL change state from reset to color Type error437 FAIL change state from reset to checkbox Type error 438 FAIL change state from reset to radio Type error 419 PASS change state from image to submit 420 PASS change state from image to reset 421 PASS change state from image to button 422 PASS change state from reset to hidden 423 PASS change state from reset to text 424 PASS change state from reset to search 425 PASS change state from reset to tel 426 PASS change state from reset to url 427 PASS change state from reset to email 428 PASS change state from reset to password 429 PASS change state from reset to datetime-local 430 PASS change state from reset to date 431 PASS change state from reset to month 432 PASS change state from reset to week 433 PASS change state from reset to time 434 PASS change state from reset to number 435 PASS change state from reset to range 436 PASS change state from reset to color 437 PASS change state from reset to checkbox 438 PASS change state from reset to radio 439 439 PASS change state from reset to file 440 FAIL change state from reset to submit Type error 441 FAIL change state from reset to image Type error 442 FAIL change state from reset to button Type error 443 FAIL change state from button to hidden Type error 444 FAIL change state from button to text Type error 445 FAIL change state from button to search Type error 446 FAIL change state from button to tel Type error 447 FAIL change state from button to url Type error 448 FAIL change state from button to email Type error 449 FAIL change state from button to password Type error 450 FAIL change state from button to datetime-local Type error 451 FAIL change state from button to date Type error 452 FAIL change state from button to month Type error 453 FAIL change state from button to week Type error 454 FAIL change state from button to time Type error 455 FAIL change state from button to number Type error456 FAIL change state from button to range Type error 457 FAIL change state from button to color Type error458 FAIL change state from button to checkbox Type error 459 FAIL change state from button to radio Type error 440 PASS change state from reset to submit 441 PASS change state from reset to image 442 PASS change state from reset to button 443 PASS change state from button to hidden 444 PASS change state from button to text 445 PASS change state from button to search 446 PASS change state from button to tel 447 PASS change state from button to url 448 PASS change state from button to email 449 PASS change state from button to password 450 PASS change state from button to datetime-local 451 PASS change state from button to date 452 PASS change state from button to month 453 PASS change state from button to week 454 PASS change state from button to time 455 PASS change state from button to number 456 PASS change state from button to range 457 PASS change state from button to color 458 PASS change state from button to checkbox 459 PASS change state from button to radio 460 460 PASS change state from button to file 461 FAIL change state from button to submit Type error 462 FAIL change state from button to image Type error 463 FAIL change state from button to reset Type error 461 PASS change state from button to submit 462 PASS change state from button to image 463 PASS change state from button to reset 464 464 -
trunk/Source/WebCore/ChangeLog
r289812 r289813 1 2022-02-15 Ziran Sun <zsun@igalia.com> 2 3 [Forms] the select() method returns should be in line with specs 4 https://bugs.webkit.org/show_bug.cgi?id=236435 5 6 Reviewed by Chris Dumez. 7 8 This CL is to correct the returns for select() method to be in line 9 with specs at 10 https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#dom-textarea%2Finput-select 11 12 It updates the expectations for a few WPT tests as more sub-tests are now passing. 13 * html/HTMLInputElement.cpp: 14 (WebCore::HTMLInputElement::selectionStartForBindings const): 15 (WebCore::HTMLInputElement::setSelectionStartForBindings): 16 (WebCore::HTMLInputElement::selectionEndForBindings const): 17 (WebCore::HTMLInputElement::setSelectionEndForBindings): 18 (WebCore::HTMLInputElement::selectionDirectionForBindings const): 19 (WebCore::HTMLInputElement::setSelectionDirectionForBindings): 20 (WebCore::HTMLInputElement::setSelectionRangeForBindings): 21 * html/HTMLInputElement.h: 22 * html/HTMLInputElement.idl: 23 1 24 2022-02-15 Ziran Sun <zsun@igalia.com> 2 25 -
trunk/Source/WebCore/html/HTMLInputElement.cpp
r289812 r289813 2079 2079 } 2080 2080 2081 ExceptionOr<int> HTMLInputElement::selectionStartForBindings() const2082 { 2083 if (!canHaveSelection() )2084 return Exception { TypeError };2081 std::optional<int> HTMLInputElement::selectionStartForBindings() const 2082 { 2083 if (!canHaveSelection() || !m_inputType->supportsSelectionAPI()) 2084 return std::nullopt; 2085 2085 2086 2086 return selectionStart(); 2087 2087 } 2088 2088 2089 ExceptionOr<void> HTMLInputElement::setSelectionStartForBindings( intstart)2090 { 2091 if (!canHaveSelection() )2092 return Exception { TypeError};2093 2094 setSelectionStart(start );2089 ExceptionOr<void> HTMLInputElement::setSelectionStartForBindings(std::optional<int> start) 2090 { 2091 if (!canHaveSelection() || !m_inputType->supportsSelectionAPI()) 2092 return Exception { InvalidStateError, "The input element's type ('" + m_inputType->formControlType() + "') does not support selection." }; 2093 2094 setSelectionStart(start.value_or(0)); 2095 2095 return { }; 2096 2096 } 2097 2097 2098 ExceptionOr<int> HTMLInputElement::selectionEndForBindings() const2099 { 2100 if (!canHaveSelection() )2101 return Exception { TypeError };2098 std::optional<int> HTMLInputElement::selectionEndForBindings() const 2099 { 2100 if (!canHaveSelection() || !m_inputType->supportsSelectionAPI()) 2101 return std::nullopt; 2102 2102 2103 2103 return selectionEnd(); 2104 2104 } 2105 2105 2106 ExceptionOr<void> HTMLInputElement::setSelectionEndForBindings( intend)2107 { 2108 if (!canHaveSelection() )2109 return Exception { TypeError};2110 2111 setSelectionEnd(end );2106 ExceptionOr<void> HTMLInputElement::setSelectionEndForBindings(std::optional<int> end) 2107 { 2108 if (!canHaveSelection() || !m_inputType->supportsSelectionAPI()) 2109 return Exception { InvalidStateError, "The input element's type ('" + m_inputType->formControlType() + "') does not support selection." }; 2110 2111 setSelectionEnd(end.value_or(0)); 2112 2112 return { }; 2113 2113 } … … 2115 2115 ExceptionOr<String> HTMLInputElement::selectionDirectionForBindings() const 2116 2116 { 2117 if (!canHaveSelection() )2118 return Exception { TypeError };2117 if (!canHaveSelection() || !m_inputType->supportsSelectionAPI()) 2118 return String(); 2119 2119 2120 2120 return String { selectionDirection() }; … … 2123 2123 ExceptionOr<void> HTMLInputElement::setSelectionDirectionForBindings(const String& direction) 2124 2124 { 2125 if (!canHaveSelection() )2126 return Exception { TypeError};2125 if (!canHaveSelection() || !m_inputType->supportsSelectionAPI()) 2126 return Exception { InvalidStateError, "The input element's type ('" + m_inputType->formControlType() + "') does not support selection." }; 2127 2127 2128 2128 setSelectionDirection(direction); … … 2132 2132 ExceptionOr<void> HTMLInputElement::setSelectionRangeForBindings(int start, int end, const String& direction) 2133 2133 { 2134 if (!canHaveSelection() )2135 return Exception { TypeError};2134 if (!canHaveSelection() || !m_inputType->supportsSelectionAPI()) 2135 return Exception { InvalidStateError, "The input element's type ('" + m_inputType->formControlType() + "') does not support selection." }; 2136 2136 2137 2137 setSelectionRange(start, end, direction); -
trunk/Source/WebCore/html/HTMLInputElement.h
r288005 r289813 344 344 void invalidateStyleOnFocusChangeIfNeeded(); 345 345 346 ExceptionOr<int> selectionStartForBindings() const;347 ExceptionOr<void> setSelectionStartForBindings( int);348 349 ExceptionOr<int> selectionEndForBindings() const;350 ExceptionOr<void> setSelectionEndForBindings( int);346 std::optional<int> selectionStartForBindings() const; 347 ExceptionOr<void> setSelectionStartForBindings(std::optional<int>); 348 349 std::optional<int> selectionEndForBindings() const; 350 ExceptionOr<void> setSelectionEndForBindings(std::optional<int>); 351 351 352 352 ExceptionOr<String> selectionDirectionForBindings() const; -
trunk/Source/WebCore/html/HTMLInputElement.idl
r284960 r289813 78 78 79 79 undefined select(); 80 [ImplementedAs=selectionStartForBindings] attribute long selectionStart;81 [ImplementedAs=selectionEndForBindings] attribute long selectionEnd;82 [ImplementedAs=selectionDirectionForBindings] attribute DOMString selectionDirection;80 [ImplementedAs=selectionStartForBindings] attribute long? selectionStart; 81 [ImplementedAs=selectionEndForBindings] attribute long? selectionEnd; 82 [ImplementedAs=selectionDirectionForBindings] attribute DOMString? selectionDirection; 83 83 84 84 undefined setRangeText(DOMString replacement);
Note: See TracChangeset
for help on using the changeset viewer.