Changeset 289813 in webkit


Ignore:
Timestamp:
Feb 15, 2022 7:22:01 AM (5 months ago)
Author:
Ziran Sun
Message:

[Forms] the select() method returns should be in line with specs
https://bugs.webkit.org/show_bug.cgi?id=236435

Reviewed by Chris Dumez.

LayoutTests/imported/w3c:

  • web-platform-tests/html/semantics/forms/the-input-element/selection-expected.txt:

Source/WebCore:

This CL is to correct the returns for select() method to be in line
with specs at
https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#dom-textarea%2Finput-select

It updates the expectations for a few WPT tests as more sub-tests are now passing.

  • html/HTMLInputElement.cpp:

(WebCore::HTMLInputElement::selectionStartForBindings const):
(WebCore::HTMLInputElement::setSelectionStartForBindings):
(WebCore::HTMLInputElement::selectionEndForBindings const):
(WebCore::HTMLInputElement::setSelectionEndForBindings):
(WebCore::HTMLInputElement::selectionDirectionForBindings const):
(WebCore::HTMLInputElement::setSelectionDirectionForBindings):
(WebCore::HTMLInputElement::setSelectionRangeForBindings):

  • html/HTMLInputElement.h:
  • html/HTMLInputElement.idl:

LayoutTests:

  • fast/forms/selection-functions-expected.txt:
  • fast/forms/selection-wrongtype-expected.txt:
  • fast/forms/selection-wrongtype.html:
  • platform/gtk/imported/w3c/web-platform-tests/html/semantics/forms/textfieldselection/selection-not-application-expected.txt: Added.
  • platform/gtk/imported/w3c/web-platform-tests/html/semantics/forms/the-input-element/selection-expected.txt:
  • platform/gtk/imported/w3c/web-platform-tests/html/semantics/forms/the-input-element/type-change-state-expected.txt: Added.
  • platform/ios-wk2/imported/w3c/web-platform-tests/html/semantics/forms/textfieldselection/selection-not-application-expected.txt:
  • platform/ios-wk2/imported/w3c/web-platform-tests/html/semantics/forms/the-input-element/type-change-state-expected.txt:
  • platform/mac-wk1/imported/w3c/web-platform-tests/html/semantics/forms/textfieldselection/selection-not-application-expected.txt: Added.
  • 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.
  • platform/mac-wk1/imported/w3c/web-platform-tests/html/semantics/forms/the-input-element/type-change-state-expected.txt: Added.
  • platform/mac-wk2/imported/w3c/web-platform-tests/html/semantics/forms/textfieldselection/selection-not-application-expected.txt:
  • platform/mac-wk2/imported/w3c/web-platform-tests/html/semantics/forms/the-input-element/selection-expected.txt:
  • platform/mac-wk2/imported/w3c/web-platform-tests/html/semantics/forms/the-input-element/type-change-state-expected.txt:
Location:
trunk
Files:
6 added
16 edited
1 copied

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r289810 r289813  
     12022-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
    1232022-02-15  Martin Robinson  <mrobinson@webkit.org>
    224
  • trunk/LayoutTests/fast/forms/selection-functions-expected.txt

    r267644 r289813  
    4747
    4848===button===
    49 button.selectionStart threw exception
     49button.selectionStart did not throw exception
    5050button.selectionStart = 0 threw exception
    51 button.selectionEnd threw exception
     51button.selectionEnd did not throw exception
    5252button.selectionEnd = 0 threw exception
    5353button.setSelectionRange defined
  • trunk/LayoutTests/fast/forms/selection-wrongtype-expected.txt

    r92088 r289813  
    44
    55
    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
     6PASS test.selectionStart is null
     7PASS test.selectionStart = 0 threw exception InvalidStateError: The input element's type ('button') does not support selection..
     8PASS test.selectionEnd is null
     9PASS test.selectionEnd = 0 threw exception InvalidStateError: The input element's type ('button') does not support selection..
     10PASS test.selectionDirection is null
     11PASS test.selectionDirection = 0 threw exception InvalidStateError: The input element's type ('button') does not support selection..
     12PASS test.selectionRange() threw exception TypeError: test.selectionRange is not a function. (In 'test.selectionRange()', 'test.selectionRange' is undefined).
     13PASS test.selectionStart is null
     14PASS test.selectionStart = 0 threw exception InvalidStateError: The input element's type ('checkbox') does not support selection..
     15PASS test.selectionEnd is null
     16PASS test.selectionEnd = 0 threw exception InvalidStateError: The input element's type ('checkbox') does not support selection..
     17PASS test.selectionDirection is null
     18PASS test.selectionDirection = 0 threw exception InvalidStateError: The input element's type ('checkbox') does not support selection..
     19PASS test.selectionRange() threw exception TypeError: test.selectionRange is not a function. (In 'test.selectionRange()', 'test.selectionRange' is undefined).
     20PASS test.selectionStart is null
     21PASS test.selectionStart = 0 threw exception InvalidStateError: The input element's type ('file') does not support selection..
     22PASS test.selectionEnd is null
     23PASS test.selectionEnd = 0 threw exception InvalidStateError: The input element's type ('file') does not support selection..
     24PASS test.selectionDirection is null
     25PASS test.selectionDirection = 0 threw exception InvalidStateError: The input element's type ('file') does not support selection..
     26PASS test.selectionRange() threw exception TypeError: test.selectionRange is not a function. (In 'test.selectionRange()', 'test.selectionRange' is undefined).
     27PASS test.selectionStart is null
     28PASS test.selectionStart = 0 threw exception InvalidStateError: The input element's type ('hidden') does not support selection..
     29PASS test.selectionEnd is null
     30PASS test.selectionEnd = 0 threw exception InvalidStateError: The input element's type ('hidden') does not support selection..
     31PASS test.selectionDirection is null
     32PASS test.selectionDirection = 0 threw exception InvalidStateError: The input element's type ('hidden') does not support selection..
     33PASS test.selectionRange() threw exception TypeError: test.selectionRange is not a function. (In 'test.selectionRange()', 'test.selectionRange' is undefined).
     34PASS test.selectionStart is null
     35PASS test.selectionStart = 0 threw exception InvalidStateError: The input element's type ('image') does not support selection..
     36PASS test.selectionEnd is null
     37PASS test.selectionEnd = 0 threw exception InvalidStateError: The input element's type ('image') does not support selection..
     38PASS test.selectionDirection is null
     39PASS test.selectionDirection = 0 threw exception InvalidStateError: The input element's type ('image') does not support selection..
     40PASS test.selectionRange() threw exception TypeError: test.selectionRange is not a function. (In 'test.selectionRange()', 'test.selectionRange' is undefined).
     41PASS test.selectionStart is null
     42PASS test.selectionStart = 0 threw exception InvalidStateError: The input element's type ('radio') does not support selection..
     43PASS test.selectionEnd is null
     44PASS test.selectionEnd = 0 threw exception InvalidStateError: The input element's type ('radio') does not support selection..
     45PASS test.selectionDirection is null
     46PASS test.selectionDirection = 0 threw exception InvalidStateError: The input element's type ('radio') does not support selection..
     47PASS test.selectionRange() threw exception TypeError: test.selectionRange is not a function. (In 'test.selectionRange()', 'test.selectionRange' is undefined).
     48PASS test.selectionStart is null
     49PASS test.selectionStart = 0 threw exception InvalidStateError: The input element's type ('range') does not support selection..
     50PASS test.selectionEnd is null
     51PASS test.selectionEnd = 0 threw exception InvalidStateError: The input element's type ('range') does not support selection..
     52PASS test.selectionDirection is null
     53PASS test.selectionDirection = 0 threw exception InvalidStateError: The input element's type ('range') does not support selection..
     54PASS test.selectionRange() threw exception TypeError: test.selectionRange is not a function. (In 'test.selectionRange()', 'test.selectionRange' is undefined).
     55PASS test.selectionStart is null
     56PASS test.selectionStart = 0 threw exception InvalidStateError: The input element's type ('reset') does not support selection..
     57PASS test.selectionEnd is null
     58PASS test.selectionEnd = 0 threw exception InvalidStateError: The input element's type ('reset') does not support selection..
     59PASS test.selectionDirection is null
     60PASS test.selectionDirection = 0 threw exception InvalidStateError: The input element's type ('reset') does not support selection..
     61PASS test.selectionRange() threw exception TypeError: test.selectionRange is not a function. (In 'test.selectionRange()', 'test.selectionRange' is undefined).
     62PASS test.selectionStart is null
     63PASS test.selectionStart = 0 threw exception InvalidStateError: The input element's type ('submit') does not support selection..
     64PASS test.selectionEnd is null
     65PASS test.selectionEnd = 0 threw exception InvalidStateError: The input element's type ('submit') does not support selection..
     66PASS test.selectionDirection is null
     67PASS test.selectionDirection = 0 threw exception InvalidStateError: The input element's type ('submit') does not support selection..
     68PASS test.selectionRange() threw exception TypeError: test.selectionRange is not a function. (In 'test.selectionRange()', 'test.selectionRange' is undefined).
    6069PASS successfullyParsed is true
    6170
  • trunk/LayoutTests/fast/forms/selection-wrongtype.html

    r155268 r289813  
    1818    test.focus();
    1919
    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()');
    6727}
    6828
  • trunk/LayoutTests/imported/w3c/ChangeLog

    r289812 r289813  
     12022-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
    1102022-02-15  Ziran Sun  <zsun@igalia.com>
    211
  • trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-input-element/selection-expected.txt

    r267646 r289813  
    77PASS input type email should support the select() method
    88PASS 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"
     9PASS input type date should support the select() method
     10PASS input type month should support the select() method
     11PASS input type week should support the select() method
     12PASS input type time should support the select() method
     13PASS input type datetime-local should support the select() method
    1414PASS 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"
     15PASS input type color should support the select() method
    1616PASS 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
     17PASS input type hidden should do nothing when the select() method is called (but, not throw)
     18PASS input type range should do nothing when the select() method is called (but, not throw)
     19PASS input type checkbox should do nothing when the select() method is called (but, not throw)
     20PASS input type radio should do nothing when the select() method is called (but, not throw)
     21PASS input type submit should do nothing when the select() method is called (but, not throw)
     22PASS input type image should do nothing when the select() method is called (but, not throw)
     23PASS input type reset should do nothing when the select() method is called (but, not throw)
     24PASS input type button should do nothing when the select() method is called (but, not throw)
    2525PASS Input element programmatic selection support 1
    2626PASS input type text should support all selection attributes and methods
     
    2929PASS input type tel should support all selection attributes and methods
    3030PASS 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
     31PASS input type hidden should not support variable-length selections
     32PASS input type email should not support variable-length selections
     33PASS input type date should not support variable-length selections
     34PASS input type month should not support variable-length selections
     35PASS input type week should not support variable-length selections
     36PASS input type time should not support variable-length selections
     37PASS input type datetime-local should not support variable-length selections
     38PASS input type number should not support variable-length selections
     39PASS input type range should not support variable-length selections
     40PASS input type color should not support variable-length selections
     41PASS input type checkbox should not support variable-length selections
     42PASS input type radio should not support variable-length selections
     43PASS input type file should not support variable-length selections
     44PASS input type submit should not support variable-length selections
     45PASS input type image should not support variable-length selections
     46PASS input type reset should not support variable-length selections
     47PASS input type button should not support variable-length selections
    4848
  • trunk/LayoutTests/platform/gtk/imported/w3c/web-platform-tests/html/semantics/forms/the-input-element/selection-expected.txt

    r276481 r289813  
    1515PASS input type color should support the select() method
    1616PASS 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
     17PASS input type hidden should do nothing when the select() method is called (but, not throw)
     18PASS input type range should do nothing when the select() method is called (but, not throw)
     19PASS input type checkbox should do nothing when the select() method is called (but, not throw)
     20PASS input type radio should do nothing when the select() method is called (but, not throw)
     21PASS input type submit should do nothing when the select() method is called (but, not throw)
     22PASS input type image should do nothing when the select() method is called (but, not throw)
     23PASS input type reset should do nothing when the select() method is called (but, not throw)
     24PASS input type button should do nothing when the select() method is called (but, not throw)
    2525PASS Input element programmatic selection support 1
    2626PASS input type text should support all selection attributes and methods
     
    2929PASS input type tel should support all selection attributes and methods
    3030PASS 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
     31PASS input type hidden should not support variable-length selections
     32PASS input type email should not support variable-length selections
     33PASS input type date should not support variable-length selections
     34PASS input type month should not support variable-length selections
     35PASS input type week should not support variable-length selections
     36PASS input type time should not support variable-length selections
     37PASS input type datetime-local should not support variable-length selections
     38PASS input type number should not support variable-length selections
     39PASS input type range should not support variable-length selections
     40PASS input type color should not support variable-length selections
     41PASS input type checkbox should not support variable-length selections
     42PASS input type radio should not support variable-length selections
     43PASS input type file should not support variable-length selections
     44PASS input type submit should not support variable-length selections
     45PASS input type image should not support variable-length selections
     46PASS input type reset should not support variable-length selections
     47PASS input type button should not support variable-length selections
    4848
  • trunk/LayoutTests/platform/ios-wk2/imported/w3c/web-platform-tests/html/semantics/forms/textfieldselection/selection-not-application-expected.txt

    r279427 r289813  
    11
    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
     2PASS selectionStart on an input[type=hidden] returns null
     3PASS selectionEnd on an input[type=hidden] returns null
     4PASS selectionDirection on an input[type=hidden] returns null
     5PASS assigning selectionStart on an input[type=hidden] throws InvalidStateError
     6PASS assigning selectionEnd on an input[type=hidden] throws InvalidStateError
     7PASS assigning selectionDirection on an input[type=hidden] throws InvalidStateError
    148PASS 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
     9PASS setSelectionRange on an input[type=hidden] throws InvalidStateError
     10PASS selectionStart on an input[type=email] returns null
     11PASS selectionEnd on an input[type=email] returns null
     12PASS selectionDirection on an input[type=email] returns null
     13PASS assigning selectionStart on an input[type=email] throws InvalidStateError
     14PASS assigning selectionEnd on an input[type=email] throws InvalidStateError
     15PASS assigning selectionDirection on an input[type=email] throws InvalidStateError
    3016PASS 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
     17PASS setSelectionRange on an input[type=email] throws InvalidStateError
     18PASS selectionStart on an input[type=datetime-local] returns null
     19PASS selectionEnd on an input[type=datetime-local] returns null
     20PASS selectionDirection on an input[type=datetime-local] returns null
     21PASS assigning selectionStart on an input[type=datetime-local] throws InvalidStateError
     22PASS assigning selectionEnd on an input[type=datetime-local] throws InvalidStateError
     23PASS assigning selectionDirection on an input[type=datetime-local] throws InvalidStateError
    4624PASS 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
     25PASS setSelectionRange on an input[type=datetime-local] throws InvalidStateError
     26PASS selectionStart on an input[type=date] returns null
     27PASS selectionEnd on an input[type=date] returns null
     28PASS selectionDirection on an input[type=date] returns null
     29PASS assigning selectionStart on an input[type=date] throws InvalidStateError
     30PASS assigning selectionEnd on an input[type=date] throws InvalidStateError
     31PASS assigning selectionDirection on an input[type=date] throws InvalidStateError
    6232PASS 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
     33PASS setSelectionRange on an input[type=date] throws InvalidStateError
     34PASS selectionStart on an input[type=month] returns null
     35PASS selectionEnd on an input[type=month] returns null
     36PASS selectionDirection on an input[type=month] returns null
     37PASS assigning selectionStart on an input[type=month] throws InvalidStateError
     38PASS assigning selectionEnd on an input[type=month] throws InvalidStateError
     39PASS assigning selectionDirection on an input[type=month] throws InvalidStateError
    7840PASS 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
     41PASS setSelectionRange on an input[type=month] throws InvalidStateError
     42PASS selectionStart on an input[type=week] returns null
     43PASS selectionEnd on an input[type=week] returns null
     44PASS selectionDirection on an input[type=week] returns null
     45PASS assigning selectionStart on an input[type=week] throws InvalidStateError
     46PASS assigning selectionEnd on an input[type=week] throws InvalidStateError
     47PASS assigning selectionDirection on an input[type=week] throws InvalidStateError
    9448PASS 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
     49PASS setSelectionRange on an input[type=week] throws InvalidStateError
     50PASS selectionStart on an input[type=time] returns null
     51PASS selectionEnd on an input[type=time] returns null
     52PASS selectionDirection on an input[type=time] returns null
     53PASS assigning selectionStart on an input[type=time] throws InvalidStateError
     54PASS assigning selectionEnd on an input[type=time] throws InvalidStateError
     55PASS assigning selectionDirection on an input[type=time] throws InvalidStateError
    11056PASS 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
     57PASS setSelectionRange on an input[type=time] throws InvalidStateError
     58PASS selectionStart on an input[type=number] returns null
     59PASS selectionEnd on an input[type=number] returns null
     60PASS selectionDirection on an input[type=number] returns null
     61PASS assigning selectionStart on an input[type=number] throws InvalidStateError
     62PASS assigning selectionEnd on an input[type=number] throws InvalidStateError
     63PASS assigning selectionDirection on an input[type=number] throws InvalidStateError
    12664PASS 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
     65PASS setSelectionRange on an input[type=number] throws InvalidStateError
     66PASS selectionStart on an input[type=range] returns null
     67PASS selectionEnd on an input[type=range] returns null
     68PASS selectionDirection on an input[type=range] returns null
     69PASS assigning selectionStart on an input[type=range] throws InvalidStateError
     70PASS assigning selectionEnd on an input[type=range] throws InvalidStateError
     71PASS assigning selectionDirection on an input[type=range] throws InvalidStateError
    14272PASS 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
     73PASS setSelectionRange on an input[type=range] throws InvalidStateError
     74PASS selectionStart on an input[type=color] returns null
     75PASS selectionEnd on an input[type=color] returns null
     76PASS selectionDirection on an input[type=color] returns null
     77PASS assigning selectionStart on an input[type=color] throws InvalidStateError
     78PASS assigning selectionEnd on an input[type=color] throws InvalidStateError
     79PASS assigning selectionDirection on an input[type=color] throws InvalidStateError
    15880PASS 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
     81PASS setSelectionRange on an input[type=color] throws InvalidStateError
     82PASS selectionStart on an input[type=checkbox] returns null
     83PASS selectionEnd on an input[type=checkbox] returns null
     84PASS selectionDirection on an input[type=checkbox] returns null
     85PASS assigning selectionStart on an input[type=checkbox] throws InvalidStateError
     86PASS assigning selectionEnd on an input[type=checkbox] throws InvalidStateError
     87PASS assigning selectionDirection on an input[type=checkbox] throws InvalidStateError
    17488PASS 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
     89PASS setSelectionRange on an input[type=checkbox] throws InvalidStateError
     90PASS selectionStart on an input[type=radio] returns null
     91PASS selectionEnd on an input[type=radio] returns null
     92PASS selectionDirection on an input[type=radio] returns null
     93PASS assigning selectionStart on an input[type=radio] throws InvalidStateError
     94PASS assigning selectionEnd on an input[type=radio] throws InvalidStateError
     95PASS assigning selectionDirection on an input[type=radio] throws InvalidStateError
    19096PASS 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
     97PASS setSelectionRange on an input[type=radio] throws InvalidStateError
     98PASS selectionStart on an input[type=file] returns null
     99PASS selectionEnd on an input[type=file] returns null
     100PASS selectionDirection on an input[type=file] returns null
     101PASS assigning selectionStart on an input[type=file] throws InvalidStateError
     102PASS assigning selectionEnd on an input[type=file] throws InvalidStateError
     103PASS assigning selectionDirection on an input[type=file] throws InvalidStateError
    206104PASS 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
     105PASS setSelectionRange on an input[type=file] throws InvalidStateError
     106PASS selectionStart on an input[type=submit] returns null
     107PASS selectionEnd on an input[type=submit] returns null
     108PASS selectionDirection on an input[type=submit] returns null
     109PASS assigning selectionStart on an input[type=submit] throws InvalidStateError
     110PASS assigning selectionEnd on an input[type=submit] throws InvalidStateError
     111PASS assigning selectionDirection on an input[type=submit] throws InvalidStateError
    222112PASS 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
     113PASS setSelectionRange on an input[type=submit] throws InvalidStateError
     114PASS selectionStart on an input[type=image] returns null
     115PASS selectionEnd on an input[type=image] returns null
     116PASS selectionDirection on an input[type=image] returns null
     117PASS assigning selectionStart on an input[type=image] throws InvalidStateError
     118PASS assigning selectionEnd on an input[type=image] throws InvalidStateError
     119PASS assigning selectionDirection on an input[type=image] throws InvalidStateError
    238120PASS 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
     121PASS setSelectionRange on an input[type=image] throws InvalidStateError
     122PASS selectionStart on an input[type=reset] returns null
     123PASS selectionEnd on an input[type=reset] returns null
     124PASS selectionDirection on an input[type=reset] returns null
     125PASS assigning selectionStart on an input[type=reset] throws InvalidStateError
     126PASS assigning selectionEnd on an input[type=reset] throws InvalidStateError
     127PASS assigning selectionDirection on an input[type=reset] throws InvalidStateError
    254128PASS 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
     129PASS setSelectionRange on an input[type=reset] throws InvalidStateError
     130PASS selectionStart on an input[type=button] returns null
     131PASS selectionEnd on an input[type=button] returns null
     132PASS selectionDirection on an input[type=button] returns null
     133PASS assigning selectionStart on an input[type=button] throws InvalidStateError
     134PASS assigning selectionEnd on an input[type=button] throws InvalidStateError
     135PASS assigning selectionDirection on an input[type=button] throws InvalidStateError
    270136PASS 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
     137PASS setSelectionRange on an input[type=button] throws InvalidStateError
    274138PASS selectionStart on an input[type=text] returns a value
    275139PASS 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  
    11
    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 error
    14 FAIL change state from hidden to range Type error
    15 FAIL change state from hidden to color Type error
    16 FAIL change state from hidden to checkbox Type error
    17 FAIL change state from hidden to radio Type error
     2PASS change state from hidden to text
     3PASS change state from hidden to search
     4PASS change state from hidden to tel
     5PASS change state from hidden to url
     6PASS change state from hidden to email
     7PASS change state from hidden to password
     8PASS change state from hidden to datetime-local
     9PASS change state from hidden to date
     10PASS change state from hidden to month
     11PASS change state from hidden to week
     12PASS change state from hidden to time
     13PASS change state from hidden to number
     14PASS change state from hidden to range
     15PASS change state from hidden to color
     16PASS change state from hidden to checkbox
     17PASS change state from hidden to radio
    1818PASS 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
     19PASS change state from hidden to submit
     20PASS change state from hidden to image
     21PASS change state from hidden to reset
     22PASS change state from hidden to button
     23PASS change state from text to hidden
    2424PASS change state from text to search
    2525PASS change state from text to tel
    2626FAIL 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
     27PASS change state from text to email
    2828PASS 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 error
    37 FAIL change state from text to checkbox Type error
    38 FAIL change state from text to radio Type error
     29PASS change state from text to datetime-local
     30PASS change state from text to date
     31PASS change state from text to month
     32PASS change state from text to week
     33PASS change state from text to time
     34PASS change state from text to number
     35PASS change state from text to range
     36PASS change state from text to color
     37PASS change state from text to checkbox
     38PASS change state from text to radio
    3939PASS 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
     40PASS change state from text to submit
     41PASS change state from text to image
     42PASS change state from text to reset
     43PASS change state from text to button
     44PASS change state from search to hidden
    4545PASS change state from search to text
    4646PASS change state from search to tel
    4747FAIL 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
     48PASS change state from search to email
    4949PASS 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 error
    58 FAIL change state from search to checkbox Type error
    59 FAIL change state from search to radio Type error
     50PASS change state from search to datetime-local
     51PASS change state from search to date
     52PASS change state from search to month
     53PASS change state from search to week
     54PASS change state from search to time
     55PASS change state from search to number
     56PASS change state from search to range
     57PASS change state from search to color
     58PASS change state from search to checkbox
     59PASS change state from search to radio
    6060PASS 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
     61PASS change state from search to submit
     62PASS change state from search to image
     63PASS change state from search to reset
     64PASS change state from search to button
     65PASS change state from tel to hidden
    6666PASS change state from tel to text
    6767PASS change state from tel to search
    6868FAIL 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
     69PASS change state from tel to email
    7070PASS 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 error
    79 FAIL change state from tel to checkbox Type error
    80 FAIL change state from tel to radio Type error
     71PASS change state from tel to datetime-local
     72PASS change state from tel to date
     73PASS change state from tel to month
     74PASS change state from tel to week
     75PASS change state from tel to time
     76PASS change state from tel to number
     77PASS change state from tel to range
     78PASS change state from tel to color
     79PASS change state from tel to checkbox
     80PASS change state from tel to radio
    8181PASS 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
     82PASS change state from tel to submit
     83PASS change state from tel to image
     84PASS change state from tel to reset
     85PASS change state from tel to button
     86PASS change state from url to hidden
    8787PASS change state from url to text
    8888PASS change state from url to search
     
    9090PASS change state from url to email
    9191PASS 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 error
    100 FAIL change state from url to checkbox Type error
    101 FAIL change state from url to radio Type error
     92PASS change state from url to datetime-local
     93PASS change state from url to date
     94PASS change state from url to month
     95PASS change state from url to week
     96PASS change state from url to time
     97PASS change state from url to number
     98PASS change state from url to range
     99PASS change state from url to color
     100PASS change state from url to checkbox
     101PASS change state from url to radio
    102102PASS 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 error
    121 FAIL change state from email to checkbox Type error
    122 FAIL change state from email to radio Type error
     103PASS change state from url to submit
     104PASS change state from url to image
     105PASS change state from url to reset
     106PASS change state from url to button
     107PASS change state from email to hidden
     108FAIL change state from email to text assert_equals: selectionStart should be 0 expected 0 but got 6
     109FAIL change state from email to search assert_equals: selectionStart should be 0 expected 0 but got 6
     110FAIL change state from email to tel assert_equals: selectionStart should be 0 expected 0 but got 6
     111FAIL change state from email to url assert_equals: selectionStart should be 0 expected 0 but got 6
     112FAIL change state from email to password assert_equals: selectionStart should be 0 expected 0 but got 6
     113PASS change state from email to datetime-local
     114PASS change state from email to date
     115PASS change state from email to month
     116PASS change state from email to week
     117PASS change state from email to time
     118PASS change state from email to number
     119PASS change state from email to range
     120PASS change state from email to color
     121PASS change state from email to checkbox
     122PASS change state from email to radio
    123123PASS 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
     124PASS change state from email to submit
     125PASS change state from email to image
     126PASS change state from email to reset
     127PASS change state from email to button
     128PASS change state from password to hidden
    129129PASS change state from password to text
    130130PASS change state from password to search
    131131PASS change state from password to tel
    132132FAIL 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 error
    142 FAIL change state from password to checkbox Type error
    143 FAIL change state from password to radio Type error
     133PASS change state from password to email
     134PASS change state from password to datetime-local
     135PASS change state from password to date
     136PASS change state from password to month
     137PASS change state from password to week
     138PASS change state from password to time
     139PASS change state from password to number
     140PASS change state from password to range
     141PASS change state from password to color
     142PASS change state from password to checkbox
     143PASS change state from password to radio
    144144PASS 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 error
    161 FAIL change state from datetime-local to range Type error
    162 FAIL change state from datetime-local to color Type error
    163 FAIL change state from datetime-local to checkbox Type error
    164 FAIL change state from datetime-local to radio Type error
     145PASS change state from password to submit
     146PASS change state from password to image
     147PASS change state from password to reset
     148PASS change state from password to button
     149PASS change state from datetime-local to hidden
     150PASS change state from datetime-local to text
     151PASS change state from datetime-local to search
     152PASS change state from datetime-local to tel
     153PASS change state from datetime-local to url
     154PASS change state from datetime-local to email
     155PASS change state from datetime-local to password
     156PASS change state from datetime-local to date
     157PASS change state from datetime-local to month
     158PASS change state from datetime-local to week
     159PASS change state from datetime-local to time
     160PASS change state from datetime-local to number
     161PASS change state from datetime-local to range
     162PASS change state from datetime-local to color
     163FAIL change state from datetime-local to checkbox assert_equals: input.value should be 'on' after change of state expected "on" but got ""
     164FAIL change state from datetime-local to radio assert_equals: input.value should be 'on' after change of state expected "on" but got ""
    165165PASS 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 error
    182 FAIL change state from date to range Type error
    183 FAIL change state from date to color Type error
    184 FAIL change state from date to checkbox Type error
    185 FAIL change state from date to radio Type error
     166PASS change state from datetime-local to submit
     167PASS change state from datetime-local to image
     168PASS change state from datetime-local to reset
     169PASS change state from datetime-local to button
     170PASS change state from date to hidden
     171PASS change state from date to text
     172PASS change state from date to search
     173PASS change state from date to tel
     174PASS change state from date to url
     175PASS change state from date to email
     176PASS change state from date to password
     177PASS change state from date to datetime-local
     178PASS change state from date to month
     179PASS change state from date to week
     180PASS change state from date to time
     181PASS change state from date to number
     182PASS change state from date to range
     183PASS change state from date to color
     184PASS change state from date to checkbox
     185PASS change state from date to radio
    186186PASS 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 error
    203 FAIL change state from month to range Type error
    204 FAIL change state from month to color Type error
    205 FAIL change state from month to checkbox Type error
    206 FAIL change state from month to radio Type error
     187PASS change state from date to submit
     188PASS change state from date to image
     189PASS change state from date to reset
     190PASS change state from date to button
     191PASS change state from month to hidden
     192PASS change state from month to text
     193PASS change state from month to search
     194PASS change state from month to tel
     195PASS change state from month to url
     196PASS change state from month to email
     197PASS change state from month to password
     198PASS change state from month to datetime-local
     199PASS change state from month to date
     200PASS change state from month to week
     201PASS change state from month to time
     202PASS change state from month to number
     203PASS change state from month to range
     204PASS change state from month to color
     205PASS change state from month to checkbox
     206PASS change state from month to radio
    207207PASS 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 error
    224 FAIL change state from week to range Type error
    225 FAIL change state from week to color Type error
    226 FAIL change state from week to checkbox Type error
    227 FAIL change state from week to radio Type error
     208PASS change state from month to submit
     209PASS change state from month to image
     210PASS change state from month to reset
     211PASS change state from month to button
     212PASS change state from week to hidden
     213PASS change state from week to text
     214PASS change state from week to search
     215PASS change state from week to tel
     216PASS change state from week to url
     217PASS change state from week to email
     218PASS change state from week to password
     219PASS change state from week to datetime-local
     220PASS change state from week to date
     221PASS change state from week to month
     222PASS change state from week to time
     223PASS change state from week to number
     224PASS change state from week to range
     225PASS change state from week to color
     226PASS change state from week to checkbox
     227PASS change state from week to radio
    228228PASS 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 error
    245 FAIL change state from time to range Type error
    246 FAIL change state from time to color Type error
    247 FAIL change state from time to checkbox Type error
    248 FAIL change state from time to radio Type error
     229PASS change state from week to submit
     230PASS change state from week to image
     231PASS change state from week to reset
     232PASS change state from week to button
     233PASS change state from time to hidden
     234PASS change state from time to text
     235PASS change state from time to search
     236PASS change state from time to tel
     237PASS change state from time to url
     238PASS change state from time to email
     239PASS change state from time to password
     240PASS change state from time to datetime-local
     241PASS change state from time to date
     242PASS change state from time to month
     243PASS change state from time to week
     244PASS change state from time to number
     245PASS change state from time to range
     246PASS change state from time to color
     247PASS change state from time to checkbox
     248PASS change state from time to radio
    249249PASS 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
     250PASS change state from time to submit
     251PASS change state from time to image
     252PASS change state from time to reset
     253PASS change state from time to button
     254PASS change state from number to hidden
    255255PASS change state from number to text
    256256PASS change state from number to search
     
    259259PASS change state from number to email
    260260PASS 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 error
     261PASS change state from number to datetime-local
     262PASS change state from number to date
     263PASS change state from number to month
     264PASS change state from number to week
     265PASS change state from number to time
     266PASS change state from number to range
     267PASS change state from number to color
    268268FAIL change state from number to checkbox assert_equals: input.value should be 'on' after change of state expected "on" but got ""
    269269FAIL change state from number to radio assert_equals: input.value should be 'on' after change of state expected "on" but got ""
    270270PASS 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 error
    288 FAIL change state from range to color Type error
    289 FAIL change state from range to checkbox Type error
    290 FAIL change state from range to radio Type error
     271PASS change state from number to submit
     272PASS change state from number to image
     273PASS change state from number to reset
     274PASS change state from number to button
     275PASS change state from range to hidden
     276PASS change state from range to text
     277PASS change state from range to search
     278PASS change state from range to tel
     279PASS change state from range to url
     280PASS change state from range to email
     281PASS change state from range to password
     282PASS change state from range to datetime-local
     283PASS change state from range to date
     284PASS change state from range to month
     285PASS change state from range to week
     286PASS change state from range to time
     287PASS change state from range to number
     288PASS change state from range to color
     289PASS change state from range to checkbox
     290PASS change state from range to radio
    291291PASS 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 error
    309 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
     292PASS change state from range to submit
     293PASS change state from range to image
     294PASS change state from range to reset
     295PASS change state from range to button
     296PASS change state from color to hidden
     297PASS change state from color to text
     298PASS change state from color to search
     299PASS change state from color to tel
     300PASS change state from color to url
     301PASS change state from color to email
     302PASS change state from color to password
     303PASS change state from color to datetime-local
     304PASS change state from color to date
     305PASS change state from color to month
     306PASS change state from color to week
     307PASS change state from color to time
     308PASS change state from color to number
     309PASS change state from color to range
     310PASS change state from color to checkbox
     311PASS change state from color to radio
    312312PASS 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 error
    330 FAIL change state from checkbox to range Type error
    331 FAIL change state from checkbox to color Type error
    332 FAIL change state from checkbox to radio Type error
     313PASS change state from color to submit
     314PASS change state from color to image
     315PASS change state from color to reset
     316PASS change state from color to button
     317PASS change state from checkbox to hidden
     318PASS change state from checkbox to text
     319PASS change state from checkbox to search
     320PASS change state from checkbox to tel
     321PASS change state from checkbox to url
     322PASS change state from checkbox to email
     323PASS change state from checkbox to password
     324PASS change state from checkbox to datetime-local
     325PASS change state from checkbox to date
     326PASS change state from checkbox to month
     327PASS change state from checkbox to week
     328PASS change state from checkbox to time
     329PASS change state from checkbox to number
     330PASS change state from checkbox to range
     331PASS change state from checkbox to color
     332PASS change state from checkbox to radio
    333333PASS 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 error
    351 FAIL change state from radio to range Type error
    352 FAIL change state from radio to color Type error
    353 FAIL change state from radio to checkbox Type error
     334PASS change state from checkbox to submit
     335PASS change state from checkbox to image
     336PASS change state from checkbox to reset
     337PASS change state from checkbox to button
     338PASS change state from radio to hidden
     339PASS change state from radio to text
     340PASS change state from radio to search
     341PASS change state from radio to tel
     342PASS change state from radio to url
     343PASS change state from radio to email
     344PASS change state from radio to password
     345PASS change state from radio to datetime-local
     346PASS change state from radio to date
     347PASS change state from radio to month
     348PASS change state from radio to week
     349PASS change state from radio to time
     350PASS change state from radio to number
     351PASS change state from radio to range
     352PASS change state from radio to color
     353PASS change state from radio to checkbox
    354354PASS 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
     355PASS change state from radio to submit
     356PASS change state from radio to image
     357PASS change state from radio to reset
     358PASS change state from radio to button
    359359PASS change state from file to hidden
    360360PASS change state from file to text
     
    378378PASS change state from file to reset
    379379PASS 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 error
    393 FAIL change state from submit to range Type error
    394 FAIL change state from submit to color Type error
    395 FAIL change state from submit to checkbox Type error
    396 FAIL change state from submit to radio Type error
     380PASS change state from submit to hidden
     381PASS change state from submit to text
     382PASS change state from submit to search
     383PASS change state from submit to tel
     384PASS change state from submit to url
     385PASS change state from submit to email
     386PASS change state from submit to password
     387PASS change state from submit to datetime-local
     388PASS change state from submit to date
     389PASS change state from submit to month
     390PASS change state from submit to week
     391PASS change state from submit to time
     392PASS change state from submit to number
     393PASS change state from submit to range
     394PASS change state from submit to color
     395PASS change state from submit to checkbox
     396PASS change state from submit to radio
    397397PASS 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 error
    414 FAIL change state from image to range Type error
    415 FAIL change state from image to color Type error
    416 FAIL change state from image to checkbox Type error
    417 FAIL change state from image to radio Type error
     398PASS change state from submit to image
     399PASS change state from submit to reset
     400PASS change state from submit to button
     401PASS change state from image to hidden
     402PASS change state from image to text
     403PASS change state from image to search
     404PASS change state from image to tel
     405PASS change state from image to url
     406PASS change state from image to email
     407PASS change state from image to password
     408PASS change state from image to datetime-local
     409PASS change state from image to date
     410PASS change state from image to month
     411PASS change state from image to week
     412PASS change state from image to time
     413PASS change state from image to number
     414PASS change state from image to range
     415PASS change state from image to color
     416PASS change state from image to checkbox
     417PASS change state from image to radio
    418418PASS 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 error
    435 FAIL change state from reset to range Type error
    436 FAIL change state from reset to color Type error
    437 FAIL change state from reset to checkbox Type error
    438 FAIL change state from reset to radio Type error
     419PASS change state from image to submit
     420PASS change state from image to reset
     421PASS change state from image to button
     422PASS change state from reset to hidden
     423PASS change state from reset to text
     424PASS change state from reset to search
     425PASS change state from reset to tel
     426PASS change state from reset to url
     427PASS change state from reset to email
     428PASS change state from reset to password
     429PASS change state from reset to datetime-local
     430PASS change state from reset to date
     431PASS change state from reset to month
     432PASS change state from reset to week
     433PASS change state from reset to time
     434PASS change state from reset to number
     435PASS change state from reset to range
     436PASS change state from reset to color
     437PASS change state from reset to checkbox
     438PASS change state from reset to radio
    439439PASS 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 error
    456 FAIL change state from button to range Type error
    457 FAIL change state from button to color Type error
    458 FAIL change state from button to checkbox Type error
    459 FAIL change state from button to radio Type error
     440PASS change state from reset to submit
     441PASS change state from reset to image
     442PASS change state from reset to button
     443PASS change state from button to hidden
     444PASS change state from button to text
     445PASS change state from button to search
     446PASS change state from button to tel
     447PASS change state from button to url
     448PASS change state from button to email
     449PASS change state from button to password
     450PASS change state from button to datetime-local
     451PASS change state from button to date
     452PASS change state from button to month
     453PASS change state from button to week
     454PASS change state from button to time
     455PASS change state from button to number
     456PASS change state from button to range
     457PASS change state from button to color
     458PASS change state from button to checkbox
     459PASS change state from button to radio
    460460PASS 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
     461PASS change state from button to submit
     462PASS change state from button to image
     463PASS change state from button to reset
    464464
  • trunk/LayoutTests/platform/mac-wk1/imported/w3c/web-platform-tests/html/semantics/forms/the-input-element/selection-expected.txt

    r289812 r289813  
    1515FAIL input type color should support the select() method assert_equals: the given input type is not supported expected "color" but got "text"
    1616PASS 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
     17PASS input type hidden should do nothing when the select() method is called (but, not throw)
     18PASS input type range should do nothing when the select() method is called (but, not throw)
     19PASS input type checkbox should do nothing when the select() method is called (but, not throw)
     20PASS input type radio should do nothing when the select() method is called (but, not throw)
     21PASS input type submit should do nothing when the select() method is called (but, not throw)
     22PASS input type image should do nothing when the select() method is called (but, not throw)
     23PASS input type reset should do nothing when the select() method is called (but, not throw)
     24PASS input type button should do nothing when the select() method is called (but, not throw)
    2525PASS Input element programmatic selection support 1
    2626PASS input type text should support all selection attributes and methods
     
    2929PASS input type tel should support all selection attributes and methods
    3030PASS 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
     31PASS input type hidden should not support variable-length selections
     32PASS input type email should not support variable-length selections
    3333FAIL input type date should not support variable-length selections assert_equals: the given input type is not supported expected "date" but got "text"
    3434FAIL input type month should not support variable-length selections assert_equals: the given input type is not supported expected "month" but got "text"
     
    3636FAIL input type time should not support variable-length selections assert_equals: the given input type is not supported expected "time" but got "text"
    3737FAIL 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
     38PASS input type number should not support variable-length selections
     39PASS input type range should not support variable-length selections
    4040FAIL 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
     41PASS input type checkbox should not support variable-length selections
     42PASS input type radio should not support variable-length selections
     43PASS input type file should not support variable-length selections
     44PASS input type submit should not support variable-length selections
     45PASS input type image should not support variable-length selections
     46PASS input type reset should not support variable-length selections
     47PASS input type button should not support variable-length selections
    4848
  • trunk/LayoutTests/platform/mac-wk2/imported/w3c/web-platform-tests/html/semantics/forms/textfieldselection/selection-not-application-expected.txt

    r279427 r289813  
    11
    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
     2PASS selectionStart on an input[type=hidden] returns null
     3PASS selectionEnd on an input[type=hidden] returns null
     4PASS selectionDirection on an input[type=hidden] returns null
     5PASS assigning selectionStart on an input[type=hidden] throws InvalidStateError
     6PASS assigning selectionEnd on an input[type=hidden] throws InvalidStateError
     7PASS assigning selectionDirection on an input[type=hidden] throws InvalidStateError
    148PASS 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
     9PASS setSelectionRange on an input[type=hidden] throws InvalidStateError
     10PASS selectionStart on an input[type=email] returns null
     11PASS selectionEnd on an input[type=email] returns null
     12PASS selectionDirection on an input[type=email] returns null
     13PASS assigning selectionStart on an input[type=email] throws InvalidStateError
     14PASS assigning selectionEnd on an input[type=email] throws InvalidStateError
     15PASS assigning selectionDirection on an input[type=email] throws InvalidStateError
    3016PASS 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
     17PASS setSelectionRange on an input[type=email] throws InvalidStateError
     18PASS selectionStart on an input[type=datetime-local] returns null
     19PASS selectionEnd on an input[type=datetime-local] returns null
     20PASS selectionDirection on an input[type=datetime-local] returns null
     21PASS assigning selectionStart on an input[type=datetime-local] throws InvalidStateError
     22PASS assigning selectionEnd on an input[type=datetime-local] throws InvalidStateError
     23PASS assigning selectionDirection on an input[type=datetime-local] throws InvalidStateError
    4624PASS 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
     25PASS setSelectionRange on an input[type=datetime-local] throws InvalidStateError
     26PASS selectionStart on an input[type=date] returns null
     27PASS selectionEnd on an input[type=date] returns null
     28PASS selectionDirection on an input[type=date] returns null
     29PASS assigning selectionStart on an input[type=date] throws InvalidStateError
     30PASS assigning selectionEnd on an input[type=date] throws InvalidStateError
     31PASS assigning selectionDirection on an input[type=date] throws InvalidStateError
    6232PASS 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
     33PASS setSelectionRange on an input[type=date] throws InvalidStateError
     34PASS selectionStart on an input[type=month] returns null
     35PASS selectionEnd on an input[type=month] returns null
     36PASS selectionDirection on an input[type=month] returns null
     37PASS assigning selectionStart on an input[type=month] throws InvalidStateError
     38PASS assigning selectionEnd on an input[type=month] throws InvalidStateError
     39PASS assigning selectionDirection on an input[type=month] throws InvalidStateError
    7840PASS 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
     41PASS setSelectionRange on an input[type=month] throws InvalidStateError
     42PASS selectionStart on an input[type=week] returns null
     43PASS selectionEnd on an input[type=week] returns null
     44PASS selectionDirection on an input[type=week] returns null
     45PASS assigning selectionStart on an input[type=week] throws InvalidStateError
     46PASS assigning selectionEnd on an input[type=week] throws InvalidStateError
     47PASS assigning selectionDirection on an input[type=week] throws InvalidStateError
    9448PASS 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
     49PASS setSelectionRange on an input[type=week] throws InvalidStateError
     50PASS selectionStart on an input[type=time] returns null
     51PASS selectionEnd on an input[type=time] returns null
     52PASS selectionDirection on an input[type=time] returns null
     53PASS assigning selectionStart on an input[type=time] throws InvalidStateError
     54PASS assigning selectionEnd on an input[type=time] throws InvalidStateError
     55PASS assigning selectionDirection on an input[type=time] throws InvalidStateError
    11056PASS 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
     57PASS setSelectionRange on an input[type=time] throws InvalidStateError
     58PASS selectionStart on an input[type=number] returns null
     59PASS selectionEnd on an input[type=number] returns null
     60PASS selectionDirection on an input[type=number] returns null
     61PASS assigning selectionStart on an input[type=number] throws InvalidStateError
     62PASS assigning selectionEnd on an input[type=number] throws InvalidStateError
     63PASS assigning selectionDirection on an input[type=number] throws InvalidStateError
    12664PASS 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
     65PASS setSelectionRange on an input[type=number] throws InvalidStateError
     66PASS selectionStart on an input[type=range] returns null
     67PASS selectionEnd on an input[type=range] returns null
     68PASS selectionDirection on an input[type=range] returns null
     69PASS assigning selectionStart on an input[type=range] throws InvalidStateError
     70PASS assigning selectionEnd on an input[type=range] throws InvalidStateError
     71PASS assigning selectionDirection on an input[type=range] throws InvalidStateError
    14272PASS 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
     73PASS setSelectionRange on an input[type=range] throws InvalidStateError
     74PASS selectionStart on an input[type=color] returns null
     75PASS selectionEnd on an input[type=color] returns null
     76PASS selectionDirection on an input[type=color] returns null
     77PASS assigning selectionStart on an input[type=color] throws InvalidStateError
     78PASS assigning selectionEnd on an input[type=color] throws InvalidStateError
     79PASS assigning selectionDirection on an input[type=color] throws InvalidStateError
    15880PASS 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
     81PASS setSelectionRange on an input[type=color] throws InvalidStateError
     82PASS selectionStart on an input[type=checkbox] returns null
     83PASS selectionEnd on an input[type=checkbox] returns null
     84PASS selectionDirection on an input[type=checkbox] returns null
     85PASS assigning selectionStart on an input[type=checkbox] throws InvalidStateError
     86PASS assigning selectionEnd on an input[type=checkbox] throws InvalidStateError
     87PASS assigning selectionDirection on an input[type=checkbox] throws InvalidStateError
    17488PASS 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
     89PASS setSelectionRange on an input[type=checkbox] throws InvalidStateError
     90PASS selectionStart on an input[type=radio] returns null
     91PASS selectionEnd on an input[type=radio] returns null
     92PASS selectionDirection on an input[type=radio] returns null
     93PASS assigning selectionStart on an input[type=radio] throws InvalidStateError
     94PASS assigning selectionEnd on an input[type=radio] throws InvalidStateError
     95PASS assigning selectionDirection on an input[type=radio] throws InvalidStateError
    19096PASS 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
     97PASS setSelectionRange on an input[type=radio] throws InvalidStateError
     98PASS selectionStart on an input[type=file] returns null
     99PASS selectionEnd on an input[type=file] returns null
     100PASS selectionDirection on an input[type=file] returns null
     101PASS assigning selectionStart on an input[type=file] throws InvalidStateError
     102PASS assigning selectionEnd on an input[type=file] throws InvalidStateError
     103PASS assigning selectionDirection on an input[type=file] throws InvalidStateError
    206104PASS 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
     105PASS setSelectionRange on an input[type=file] throws InvalidStateError
     106PASS selectionStart on an input[type=submit] returns null
     107PASS selectionEnd on an input[type=submit] returns null
     108PASS selectionDirection on an input[type=submit] returns null
     109PASS assigning selectionStart on an input[type=submit] throws InvalidStateError
     110PASS assigning selectionEnd on an input[type=submit] throws InvalidStateError
     111PASS assigning selectionDirection on an input[type=submit] throws InvalidStateError
    222112PASS 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
     113PASS setSelectionRange on an input[type=submit] throws InvalidStateError
     114PASS selectionStart on an input[type=image] returns null
     115PASS selectionEnd on an input[type=image] returns null
     116PASS selectionDirection on an input[type=image] returns null
     117PASS assigning selectionStart on an input[type=image] throws InvalidStateError
     118PASS assigning selectionEnd on an input[type=image] throws InvalidStateError
     119PASS assigning selectionDirection on an input[type=image] throws InvalidStateError
    238120PASS 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
     121PASS setSelectionRange on an input[type=image] throws InvalidStateError
     122PASS selectionStart on an input[type=reset] returns null
     123PASS selectionEnd on an input[type=reset] returns null
     124PASS selectionDirection on an input[type=reset] returns null
     125PASS assigning selectionStart on an input[type=reset] throws InvalidStateError
     126PASS assigning selectionEnd on an input[type=reset] throws InvalidStateError
     127PASS assigning selectionDirection on an input[type=reset] throws InvalidStateError
    254128PASS 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
     129PASS setSelectionRange on an input[type=reset] throws InvalidStateError
     130PASS selectionStart on an input[type=button] returns null
     131PASS selectionEnd on an input[type=button] returns null
     132PASS selectionDirection on an input[type=button] returns null
     133PASS assigning selectionStart on an input[type=button] throws InvalidStateError
     134PASS assigning selectionEnd on an input[type=button] throws InvalidStateError
     135PASS assigning selectionDirection on an input[type=button] throws InvalidStateError
    270136PASS 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
     137PASS setSelectionRange on an input[type=button] throws InvalidStateError
    274138PASS selectionStart on an input[type=text] returns a value
    275139PASS 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  
    1515PASS input type color should support the select() method
    1616PASS 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
     17PASS input type hidden should do nothing when the select() method is called (but, not throw)
     18PASS input type range should do nothing when the select() method is called (but, not throw)
     19PASS input type checkbox should do nothing when the select() method is called (but, not throw)
     20PASS input type radio should do nothing when the select() method is called (but, not throw)
     21PASS input type submit should do nothing when the select() method is called (but, not throw)
     22PASS input type image should do nothing when the select() method is called (but, not throw)
     23PASS input type reset should do nothing when the select() method is called (but, not throw)
     24PASS input type button should do nothing when the select() method is called (but, not throw)
    2525PASS Input element programmatic selection support 1
    2626PASS input type text should support all selection attributes and methods
     
    2929PASS input type tel should support all selection attributes and methods
    3030PASS 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
     31PASS input type hidden should not support variable-length selections
     32PASS input type email should not support variable-length selections
     33PASS input type date should not support variable-length selections
     34PASS input type month should not support variable-length selections
     35PASS input type week should not support variable-length selections
     36PASS input type time should not support variable-length selections
     37PASS input type datetime-local should not support variable-length selections
     38PASS input type number should not support variable-length selections
     39PASS input type range should not support variable-length selections
     40PASS input type color should not support variable-length selections
     41PASS input type checkbox should not support variable-length selections
     42PASS input type radio should not support variable-length selections
     43PASS input type file should not support variable-length selections
     44PASS input type submit should not support variable-length selections
     45PASS input type image should not support variable-length selections
     46PASS input type reset should not support variable-length selections
     47PASS input type button should not support variable-length selections
    4848
  • trunk/LayoutTests/platform/mac-wk2/imported/w3c/web-platform-tests/html/semantics/forms/the-input-element/type-change-state-expected.txt

    r267658 r289813  
    11
    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 error
    14 FAIL change state from hidden to range Type error
    15 FAIL change state from hidden to color Type error
    16 FAIL change state from hidden to checkbox Type error
    17 FAIL change state from hidden to radio Type error
     2PASS change state from hidden to text
     3PASS change state from hidden to search
     4PASS change state from hidden to tel
     5PASS change state from hidden to url
     6PASS change state from hidden to email
     7PASS change state from hidden to password
     8PASS change state from hidden to datetime-local
     9PASS change state from hidden to date
     10PASS change state from hidden to month
     11PASS change state from hidden to week
     12PASS change state from hidden to time
     13PASS change state from hidden to number
     14PASS change state from hidden to range
     15PASS change state from hidden to color
     16PASS change state from hidden to checkbox
     17PASS change state from hidden to radio
    1818PASS 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
     19PASS change state from hidden to submit
     20PASS change state from hidden to image
     21PASS change state from hidden to reset
     22PASS change state from hidden to button
     23PASS change state from text to hidden
    2424PASS change state from text to search
    2525PASS change state from text to tel
    2626FAIL 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
     27PASS change state from text to email
    2828PASS 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 error
    37 FAIL change state from text to checkbox Type error
    38 FAIL change state from text to radio Type error
     29PASS change state from text to datetime-local
     30PASS change state from text to date
     31PASS change state from text to month
     32PASS change state from text to week
     33PASS change state from text to time
     34PASS change state from text to number
     35PASS change state from text to range
     36PASS change state from text to color
     37PASS change state from text to checkbox
     38PASS change state from text to radio
    3939PASS 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
     40PASS change state from text to submit
     41PASS change state from text to image
     42PASS change state from text to reset
     43PASS change state from text to button
     44PASS change state from search to hidden
    4545PASS change state from search to text
    4646PASS change state from search to tel
    4747FAIL 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
     48PASS change state from search to email
    4949PASS 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 error
    58 FAIL change state from search to checkbox Type error
    59 FAIL change state from search to radio Type error
     50PASS change state from search to datetime-local
     51PASS change state from search to date
     52PASS change state from search to month
     53PASS change state from search to week
     54PASS change state from search to time
     55PASS change state from search to number
     56PASS change state from search to range
     57PASS change state from search to color
     58PASS change state from search to checkbox
     59PASS change state from search to radio
    6060PASS 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
     61PASS change state from search to submit
     62PASS change state from search to image
     63PASS change state from search to reset
     64PASS change state from search to button
     65PASS change state from tel to hidden
    6666PASS change state from tel to text
    6767PASS change state from tel to search
    6868FAIL 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
     69PASS change state from tel to email
    7070PASS 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 error
    79 FAIL change state from tel to checkbox Type error
    80 FAIL change state from tel to radio Type error
     71PASS change state from tel to datetime-local
     72PASS change state from tel to date
     73PASS change state from tel to month
     74PASS change state from tel to week
     75PASS change state from tel to time
     76PASS change state from tel to number
     77PASS change state from tel to range
     78PASS change state from tel to color
     79PASS change state from tel to checkbox
     80PASS change state from tel to radio
    8181PASS 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
     82PASS change state from tel to submit
     83PASS change state from tel to image
     84PASS change state from tel to reset
     85PASS change state from tel to button
     86PASS change state from url to hidden
    8787PASS change state from url to text
    8888PASS change state from url to search
     
    9090PASS change state from url to email
    9191PASS 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 error
    100 FAIL change state from url to checkbox Type error
    101 FAIL change state from url to radio Type error
     92PASS change state from url to datetime-local
     93PASS change state from url to date
     94PASS change state from url to month
     95PASS change state from url to week
     96PASS change state from url to time
     97PASS change state from url to number
     98PASS change state from url to range
     99PASS change state from url to color
     100PASS change state from url to checkbox
     101PASS change state from url to radio
    102102PASS 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 error
    121 FAIL change state from email to checkbox Type error
    122 FAIL change state from email to radio Type error
     103PASS change state from url to submit
     104PASS change state from url to image
     105PASS change state from url to reset
     106PASS change state from url to button
     107PASS change state from email to hidden
     108FAIL change state from email to text assert_equals: selectionStart should be 0 expected 0 but got 6
     109FAIL change state from email to search assert_equals: selectionStart should be 0 expected 0 but got 6
     110FAIL change state from email to tel assert_equals: selectionStart should be 0 expected 0 but got 6
     111FAIL change state from email to url assert_equals: selectionStart should be 0 expected 0 but got 6
     112FAIL change state from email to password assert_equals: selectionStart should be 0 expected 0 but got 6
     113PASS change state from email to datetime-local
     114PASS change state from email to date
     115PASS change state from email to month
     116PASS change state from email to week
     117PASS change state from email to time
     118PASS change state from email to number
     119PASS change state from email to range
     120PASS change state from email to color
     121PASS change state from email to checkbox
     122PASS change state from email to radio
    123123PASS 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
     124PASS change state from email to submit
     125PASS change state from email to image
     126PASS change state from email to reset
     127PASS change state from email to button
     128PASS change state from password to hidden
    129129PASS change state from password to text
    130130PASS change state from password to search
    131131PASS change state from password to tel
    132132FAIL 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 error
    142 FAIL change state from password to checkbox Type error
    143 FAIL change state from password to radio Type error
     133PASS change state from password to email
     134PASS change state from password to datetime-local
     135PASS change state from password to date
     136PASS change state from password to month
     137PASS change state from password to week
     138PASS change state from password to time
     139PASS change state from password to number
     140PASS change state from password to range
     141PASS change state from password to color
     142PASS change state from password to checkbox
     143PASS change state from password to radio
    144144PASS 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 error
    161 FAIL change state from datetime-local to range Type error
    162 FAIL change state from datetime-local to color Type error
    163 FAIL change state from datetime-local to checkbox Type error
    164 FAIL change state from datetime-local to radio Type error
     145PASS change state from password to submit
     146PASS change state from password to image
     147PASS change state from password to reset
     148PASS change state from password to button
     149PASS change state from datetime-local to hidden
     150PASS change state from datetime-local to text
     151PASS change state from datetime-local to search
     152PASS change state from datetime-local to tel
     153PASS change state from datetime-local to url
     154PASS change state from datetime-local to email
     155PASS change state from datetime-local to password
     156PASS change state from datetime-local to date
     157PASS change state from datetime-local to month
     158PASS change state from datetime-local to week
     159PASS change state from datetime-local to time
     160PASS change state from datetime-local to number
     161PASS change state from datetime-local to range
     162PASS change state from datetime-local to color
     163FAIL change state from datetime-local to checkbox assert_equals: input.value should be 'on' after change of state expected "on" but got ""
     164FAIL change state from datetime-local to radio assert_equals: input.value should be 'on' after change of state expected "on" but got ""
    165165PASS 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 error
    182 FAIL change state from date to range Type error
    183 FAIL change state from date to color Type error
    184 FAIL change state from date to checkbox Type error
    185 FAIL change state from date to radio Type error
     166PASS change state from datetime-local to submit
     167PASS change state from datetime-local to image
     168PASS change state from datetime-local to reset
     169PASS change state from datetime-local to button
     170PASS change state from date to hidden
     171PASS change state from date to text
     172PASS change state from date to search
     173PASS change state from date to tel
     174PASS change state from date to url
     175PASS change state from date to email
     176PASS change state from date to password
     177PASS change state from date to datetime-local
     178PASS change state from date to month
     179PASS change state from date to week
     180PASS change state from date to time
     181PASS change state from date to number
     182PASS change state from date to range
     183PASS change state from date to color
     184PASS change state from date to checkbox
     185PASS change state from date to radio
    186186PASS 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 error
    203 FAIL change state from month to range Type error
    204 FAIL change state from month to color Type error
    205 FAIL change state from month to checkbox Type error
    206 FAIL change state from month to radio Type error
     187PASS change state from date to submit
     188PASS change state from date to image
     189PASS change state from date to reset
     190PASS change state from date to button
     191PASS change state from month to hidden
     192PASS change state from month to text
     193PASS change state from month to search
     194PASS change state from month to tel
     195PASS change state from month to url
     196PASS change state from month to email
     197PASS change state from month to password
     198PASS change state from month to datetime-local
     199PASS change state from month to date
     200PASS change state from month to week
     201PASS change state from month to time
     202PASS change state from month to number
     203PASS change state from month to range
     204PASS change state from month to color
     205PASS change state from month to checkbox
     206PASS change state from month to radio
    207207PASS 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 error
    224 FAIL change state from week to range Type error
    225 FAIL change state from week to color Type error
    226 FAIL change state from week to checkbox Type error
    227 FAIL change state from week to radio Type error
     208PASS change state from month to submit
     209PASS change state from month to image
     210PASS change state from month to reset
     211PASS change state from month to button
     212PASS change state from week to hidden
     213PASS change state from week to text
     214PASS change state from week to search
     215PASS change state from week to tel
     216PASS change state from week to url
     217PASS change state from week to email
     218PASS change state from week to password
     219PASS change state from week to datetime-local
     220PASS change state from week to date
     221PASS change state from week to month
     222PASS change state from week to time
     223PASS change state from week to number
     224PASS change state from week to range
     225PASS change state from week to color
     226PASS change state from week to checkbox
     227PASS change state from week to radio
    228228PASS 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 error
    245 FAIL change state from time to range Type error
    246 FAIL change state from time to color Type error
    247 FAIL change state from time to checkbox Type error
    248 FAIL change state from time to radio Type error
     229PASS change state from week to submit
     230PASS change state from week to image
     231PASS change state from week to reset
     232PASS change state from week to button
     233PASS change state from time to hidden
     234PASS change state from time to text
     235PASS change state from time to search
     236PASS change state from time to tel
     237PASS change state from time to url
     238PASS change state from time to email
     239PASS change state from time to password
     240PASS change state from time to datetime-local
     241PASS change state from time to date
     242PASS change state from time to month
     243PASS change state from time to week
     244PASS change state from time to number
     245PASS change state from time to range
     246PASS change state from time to color
     247PASS change state from time to checkbox
     248PASS change state from time to radio
    249249PASS 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
     250PASS change state from time to submit
     251PASS change state from time to image
     252PASS change state from time to reset
     253PASS change state from time to button
     254PASS change state from number to hidden
    255255PASS change state from number to text
    256256PASS change state from number to search
     
    259259PASS change state from number to email
    260260PASS 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 error
     261PASS change state from number to datetime-local
     262PASS change state from number to date
     263PASS change state from number to month
     264PASS change state from number to week
     265PASS change state from number to time
     266PASS change state from number to range
     267PASS change state from number to color
    268268FAIL change state from number to checkbox assert_equals: input.value should be 'on' after change of state expected "on" but got ""
    269269FAIL change state from number to radio assert_equals: input.value should be 'on' after change of state expected "on" but got ""
    270270PASS 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 error
    288 FAIL change state from range to color Type error
    289 FAIL change state from range to checkbox Type error
    290 FAIL change state from range to radio Type error
     271PASS change state from number to submit
     272PASS change state from number to image
     273PASS change state from number to reset
     274PASS change state from number to button
     275PASS change state from range to hidden
     276PASS change state from range to text
     277PASS change state from range to search
     278PASS change state from range to tel
     279PASS change state from range to url
     280PASS change state from range to email
     281PASS change state from range to password
     282PASS change state from range to datetime-local
     283PASS change state from range to date
     284PASS change state from range to month
     285PASS change state from range to week
     286PASS change state from range to time
     287PASS change state from range to number
     288PASS change state from range to color
     289PASS change state from range to checkbox
     290PASS change state from range to radio
    291291PASS 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 error
    309 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
     292PASS change state from range to submit
     293PASS change state from range to image
     294PASS change state from range to reset
     295PASS change state from range to button
     296PASS change state from color to hidden
     297PASS change state from color to text
     298PASS change state from color to search
     299PASS change state from color to tel
     300PASS change state from color to url
     301PASS change state from color to email
     302PASS change state from color to password
     303PASS change state from color to datetime-local
     304PASS change state from color to date
     305PASS change state from color to month
     306PASS change state from color to week
     307PASS change state from color to time
     308PASS change state from color to number
     309PASS change state from color to range
     310PASS change state from color to checkbox
     311PASS change state from color to radio
    312312PASS 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 error
    330 FAIL change state from checkbox to range Type error
    331 FAIL change state from checkbox to color Type error
    332 FAIL change state from checkbox to radio Type error
     313PASS change state from color to submit
     314PASS change state from color to image
     315PASS change state from color to reset
     316PASS change state from color to button
     317PASS change state from checkbox to hidden
     318PASS change state from checkbox to text
     319PASS change state from checkbox to search
     320PASS change state from checkbox to tel
     321PASS change state from checkbox to url
     322PASS change state from checkbox to email
     323PASS change state from checkbox to password
     324PASS change state from checkbox to datetime-local
     325PASS change state from checkbox to date
     326PASS change state from checkbox to month
     327PASS change state from checkbox to week
     328PASS change state from checkbox to time
     329PASS change state from checkbox to number
     330PASS change state from checkbox to range
     331PASS change state from checkbox to color
     332PASS change state from checkbox to radio
    333333PASS 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 error
    351 FAIL change state from radio to range Type error
    352 FAIL change state from radio to color Type error
    353 FAIL change state from radio to checkbox Type error
     334PASS change state from checkbox to submit
     335PASS change state from checkbox to image
     336PASS change state from checkbox to reset
     337PASS change state from checkbox to button
     338PASS change state from radio to hidden
     339PASS change state from radio to text
     340PASS change state from radio to search
     341PASS change state from radio to tel
     342PASS change state from radio to url
     343PASS change state from radio to email
     344PASS change state from radio to password
     345PASS change state from radio to datetime-local
     346PASS change state from radio to date
     347PASS change state from radio to month
     348PASS change state from radio to week
     349PASS change state from radio to time
     350PASS change state from radio to number
     351PASS change state from radio to range
     352PASS change state from radio to color
     353PASS change state from radio to checkbox
    354354PASS 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
     355PASS change state from radio to submit
     356PASS change state from radio to image
     357PASS change state from radio to reset
     358PASS change state from radio to button
    359359PASS change state from file to hidden
    360360PASS change state from file to text
     
    378378PASS change state from file to reset
    379379PASS 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 error
    393 FAIL change state from submit to range Type error
    394 FAIL change state from submit to color Type error
    395 FAIL change state from submit to checkbox Type error
    396 FAIL change state from submit to radio Type error
     380PASS change state from submit to hidden
     381PASS change state from submit to text
     382PASS change state from submit to search
     383PASS change state from submit to tel
     384PASS change state from submit to url
     385PASS change state from submit to email
     386PASS change state from submit to password
     387PASS change state from submit to datetime-local
     388PASS change state from submit to date
     389PASS change state from submit to month
     390PASS change state from submit to week
     391PASS change state from submit to time
     392PASS change state from submit to number
     393PASS change state from submit to range
     394PASS change state from submit to color
     395PASS change state from submit to checkbox
     396PASS change state from submit to radio
    397397PASS 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 error
    414 FAIL change state from image to range Type error
    415 FAIL change state from image to color Type error
    416 FAIL change state from image to checkbox Type error
    417 FAIL change state from image to radio Type error
     398PASS change state from submit to image
     399PASS change state from submit to reset
     400PASS change state from submit to button
     401PASS change state from image to hidden
     402PASS change state from image to text
     403PASS change state from image to search
     404PASS change state from image to tel
     405PASS change state from image to url
     406PASS change state from image to email
     407PASS change state from image to password
     408PASS change state from image to datetime-local
     409PASS change state from image to date
     410PASS change state from image to month
     411PASS change state from image to week
     412PASS change state from image to time
     413PASS change state from image to number
     414PASS change state from image to range
     415PASS change state from image to color
     416PASS change state from image to checkbox
     417PASS change state from image to radio
    418418PASS 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 error
    435 FAIL change state from reset to range Type error
    436 FAIL change state from reset to color Type error
    437 FAIL change state from reset to checkbox Type error
    438 FAIL change state from reset to radio Type error
     419PASS change state from image to submit
     420PASS change state from image to reset
     421PASS change state from image to button
     422PASS change state from reset to hidden
     423PASS change state from reset to text
     424PASS change state from reset to search
     425PASS change state from reset to tel
     426PASS change state from reset to url
     427PASS change state from reset to email
     428PASS change state from reset to password
     429PASS change state from reset to datetime-local
     430PASS change state from reset to date
     431PASS change state from reset to month
     432PASS change state from reset to week
     433PASS change state from reset to time
     434PASS change state from reset to number
     435PASS change state from reset to range
     436PASS change state from reset to color
     437PASS change state from reset to checkbox
     438PASS change state from reset to radio
    439439PASS 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 error
    456 FAIL change state from button to range Type error
    457 FAIL change state from button to color Type error
    458 FAIL change state from button to checkbox Type error
    459 FAIL change state from button to radio Type error
     440PASS change state from reset to submit
     441PASS change state from reset to image
     442PASS change state from reset to button
     443PASS change state from button to hidden
     444PASS change state from button to text
     445PASS change state from button to search
     446PASS change state from button to tel
     447PASS change state from button to url
     448PASS change state from button to email
     449PASS change state from button to password
     450PASS change state from button to datetime-local
     451PASS change state from button to date
     452PASS change state from button to month
     453PASS change state from button to week
     454PASS change state from button to time
     455PASS change state from button to number
     456PASS change state from button to range
     457PASS change state from button to color
     458PASS change state from button to checkbox
     459PASS change state from button to radio
    460460PASS 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
     461PASS change state from button to submit
     462PASS change state from button to image
     463PASS change state from button to reset
    464464
  • trunk/Source/WebCore/ChangeLog

    r289812 r289813  
     12022-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
    1242022-02-15  Ziran Sun  <zsun@igalia.com>
    225
  • trunk/Source/WebCore/html/HTMLInputElement.cpp

    r289812 r289813  
    20792079}
    20802080
    2081 ExceptionOr<int> HTMLInputElement::selectionStartForBindings() const
    2082 {
    2083     if (!canHaveSelection())
    2084         return Exception { TypeError };
     2081std::optional<int> HTMLInputElement::selectionStartForBindings() const
     2082{
     2083    if (!canHaveSelection() || !m_inputType->supportsSelectionAPI())
     2084        return std::nullopt;
    20852085
    20862086    return selectionStart();
    20872087}
    20882088
    2089 ExceptionOr<void> HTMLInputElement::setSelectionStartForBindings(int start)
    2090 {
    2091     if (!canHaveSelection())
    2092         return Exception { TypeError };
    2093 
    2094     setSelectionStart(start);
     2089ExceptionOr<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));
    20952095    return { };
    20962096}
    20972097
    2098 ExceptionOr<int> HTMLInputElement::selectionEndForBindings() const
    2099 {
    2100     if (!canHaveSelection())
    2101         return Exception { TypeError };
     2098std::optional<int> HTMLInputElement::selectionEndForBindings() const
     2099{
     2100    if (!canHaveSelection() || !m_inputType->supportsSelectionAPI())
     2101        return std::nullopt;
    21022102
    21032103    return selectionEnd();
    21042104}
    21052105
    2106 ExceptionOr<void> HTMLInputElement::setSelectionEndForBindings(int end)
    2107 {
    2108     if (!canHaveSelection())
    2109         return Exception { TypeError };
    2110 
    2111     setSelectionEnd(end);
     2106ExceptionOr<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));
    21122112    return { };
    21132113}
     
    21152115ExceptionOr<String> HTMLInputElement::selectionDirectionForBindings() const
    21162116{
    2117     if (!canHaveSelection())
    2118         return Exception { TypeError };
     2117    if (!canHaveSelection() || !m_inputType->supportsSelectionAPI())
     2118        return String();
    21192119
    21202120    return String { selectionDirection() };
     
    21232123ExceptionOr<void> HTMLInputElement::setSelectionDirectionForBindings(const String& direction)
    21242124{
    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." };
    21272127
    21282128    setSelectionDirection(direction);
     
    21322132ExceptionOr<void> HTMLInputElement::setSelectionRangeForBindings(int start, int end, const String& direction)
    21332133{
    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." };
    21362136   
    21372137    setSelectionRange(start, end, direction);
  • trunk/Source/WebCore/html/HTMLInputElement.h

    r288005 r289813  
    344344    void invalidateStyleOnFocusChangeIfNeeded();
    345345
    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>);
    351351
    352352    ExceptionOr<String> selectionDirectionForBindings() const;
  • trunk/Source/WebCore/html/HTMLInputElement.idl

    r284960 r289813  
    7878
    7979    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;
    8383
    8484    undefined setRangeText(DOMString replacement);
Note: See TracChangeset for help on using the changeset viewer.