Changeset 251677 in webkit


Ignore:
Timestamp:
Oct 28, 2019 3:07:55 PM (4 years ago)
Author:
Chris Dumez
Message:

Update html/semantics/forms WPT tests from upstream
https://bugs.webkit.org/show_bug.cgi?id=203499

Reviewed by Ryosuke Niwa.

LayoutTests/imported/w3c:

Re-sync html/semantics/forms WPT tests from upstream 23c1462333cb99f.

  • resources/import-expectations.json:
  • web-platform-tests/html/semantics/forms/form-submission-0/form-double-submit-2-expected.txt: Added.
  • web-platform-tests/html/semantics/forms/form-submission-0/form-double-submit-2.html: Added.
  • web-platform-tests/html/semantics/forms/form-submission-0/form-double-submit-3-expected.txt: Added.
  • web-platform-tests/html/semantics/forms/form-submission-0/form-double-submit-3.html: Added.
  • web-platform-tests/html/semantics/forms/form-submission-0/form-double-submit-expected.txt: Added.
  • web-platform-tests/html/semantics/forms/form-submission-0/form-double-submit.html: Added.
  • web-platform-tests/html/semantics/forms/form-submission-0/resources/form-submission.py: Added.

(main):

  • web-platform-tests/html/semantics/forms/form-submission-0/resources/w3c-import.log:
  • web-platform-tests/html/semantics/forms/form-submission-0/submit-entity-body.html:
  • web-platform-tests/html/semantics/forms/form-submission-0/w3c-import.log:
  • web-platform-tests/html/semantics/forms/textfieldselection/selection-not-application.html:
  • web-platform-tests/html/semantics/forms/the-input-element/range-setattribute-value-expected.html: Added.
  • web-platform-tests/html/semantics/forms/the-input-element/range-setattribute-value.html: Added.
  • web-platform-tests/html/semantics/forms/the-input-element/w3c-import.log:

LayoutTests:

Skip new ref-test that is failing.

  • platform/mac-wk2/imported/w3c/web-platform-tests/html/semantics/forms/textfieldselection/selection-not-application-expected.txt:
  • platform/mac/imported/w3c/web-platform-tests/html/semantics/forms/textfieldselection/selection-not-application-expected.txt:

Baseline existing WPT test.

Location:
trunk/LayoutTests
Files:
9 added
10 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r251671 r251677  
     12019-10-28  Chris Dumez  <cdumez@apple.com>
     2
     3        Update html/semantics/forms WPT tests from upstream
     4        https://bugs.webkit.org/show_bug.cgi?id=203499
     5
     6        Reviewed by Ryosuke Niwa.
     7
     8        * TestExpectations:
     9        Skip new ref-test that is failing.
     10
     11        * platform/mac-wk2/imported/w3c/web-platform-tests/html/semantics/forms/textfieldselection/selection-not-application-expected.txt:
     12        * platform/mac/imported/w3c/web-platform-tests/html/semantics/forms/textfieldselection/selection-not-application-expected.txt:
     13        Baseline existing WPT test.
     14
    1152019-10-28  Yusuke Suzuki  <ysuzuki@apple.com>
    216
  • trunk/LayoutTests/TestExpectations

    r251662 r251677  
    39173917webkit.org/b/203338 imported/w3c/web-platform-tests/css/css-values/vh_not_refreshing_on_chrome.html [ ImageOnlyFailure ]
    39183918
     3919webkit.org/b/202859 imported/w3c/web-platform-tests/html/semantics/forms/the-input-element/range-setattribute-value.html [ ImageOnlyFailure ]
     3920
    39193921# wpt css-position failures
    39203922webkit.org/b/203445 [ Debug ] imported/w3c/web-platform-tests/css/css-position/position-absolute-container-dynamic-002.html [ Skip ]
  • trunk/LayoutTests/imported/w3c/ChangeLog

    r251668 r251677  
     12019-10-28  Chris Dumez  <cdumez@apple.com>
     2
     3        Update html/semantics/forms WPT tests from upstream
     4        https://bugs.webkit.org/show_bug.cgi?id=203499
     5
     6        Reviewed by Ryosuke Niwa.
     7
     8        Re-sync html/semantics/forms WPT tests from upstream 23c1462333cb99f.
     9
     10        * resources/import-expectations.json:
     11        * web-platform-tests/html/semantics/forms/form-submission-0/form-double-submit-2-expected.txt: Added.
     12        * web-platform-tests/html/semantics/forms/form-submission-0/form-double-submit-2.html: Added.
     13        * web-platform-tests/html/semantics/forms/form-submission-0/form-double-submit-3-expected.txt: Added.
     14        * web-platform-tests/html/semantics/forms/form-submission-0/form-double-submit-3.html: Added.
     15        * web-platform-tests/html/semantics/forms/form-submission-0/form-double-submit-expected.txt: Added.
     16        * web-platform-tests/html/semantics/forms/form-submission-0/form-double-submit.html: Added.
     17        * web-platform-tests/html/semantics/forms/form-submission-0/resources/form-submission.py: Added.
     18        (main):
     19        * web-platform-tests/html/semantics/forms/form-submission-0/resources/w3c-import.log:
     20        * web-platform-tests/html/semantics/forms/form-submission-0/submit-entity-body.html:
     21        * web-platform-tests/html/semantics/forms/form-submission-0/w3c-import.log:
     22        * web-platform-tests/html/semantics/forms/textfieldselection/selection-not-application.html:
     23        * web-platform-tests/html/semantics/forms/the-input-element/range-setattribute-value-expected.html: Added.
     24        * web-platform-tests/html/semantics/forms/the-input-element/range-setattribute-value.html: Added.
     25        * web-platform-tests/html/semantics/forms/the-input-element/w3c-import.log:
     26
    1272019-10-28  Simon Fraser  <simon.fraser@apple.com>
    228
  • trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/form-submission-0/resources/w3c-import.log

    r249886 r251677  
    1616List of files:
    1717/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/form-submission-0/resources/file-submission.py
     18/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/form-submission-0/resources/form-submission.py
    1819/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/form-submission-0/resources/targetted-form.js
  • trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/form-submission-0/submit-entity-body.html

    r210823 r251677  
    9797  var testdocument = testframe.contentWindow.document;
    9898  testdocument.body.innerHTML =
    99     "<form id=testform method=post action=\"form-submission.py\" enctype=\"" + test_obj.enctype + "\">" +
     99    "<form id=testform method=post action=\"/html/semantics/forms/form-submission-0/resources/form-submission.py\" enctype=\"" + test_obj.enctype + "\">" +
    100100    test_obj.input +
    101101    test_obj.submitelement +
  • trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/form-submission-0/w3c-import.log

    r249886 r251677  
    2020/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/form-submission-0/form-data-set-usv-form.html
    2121/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/form-submission-0/form-data-set-usv.html
     22/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/form-submission-0/form-double-submit-2.html
     23/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/form-submission-0/form-double-submit-3.html
     24/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/form-submission-0/form-double-submit.html
    2225/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/form-submission-0/form-echo.py
    2326/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/form-submission-0/form-submission-algorithm.html
  • trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/textfieldselection/selection-not-application.html

    r230445 r251677  
    1414    var el = document.createElement("input");
    1515    el.type = type;
     16
     17    if (el.type != type) {
     18      // Type is not supported - don't bother with the following checks.
     19      return;
     20    }
    1621
    1722    test(() => {
     
    7176
    7277    test(() => {
    73       assert_equals(el.selectionDirection, "none");
     78      assert_in_array(el.selectionDirection, ["forward", "none"]);
    7479    }, `selectionDirection on an input[type=${type}] returns a value`);
    7580
  • trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-input-element/w3c-import.log

    r249886 r251677  
    6565/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-input-element/range-intrinsic-size-expected.html
    6666/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-input-element/range-intrinsic-size.html
     67/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-input-element/range-setattribute-value-expected.html
     68/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-input-element/range-setattribute-value.html
    6769/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-input-element/range.html
    6870/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-input-element/required_attribute.html
  • trunk/LayoutTests/platform/mac-wk2/imported/w3c/web-platform-tests/html/semantics/forms/textfieldselection/selection-not-application-expected.txt

    r237245 r251677  
    3030PASS setRangeText on an input[type=email] throws InvalidStateError
    3131FAIL setSelectionRange on an input[type=email] throws InvalidStateError assert_throws: function "function (){
    32         el.setSelectionRange(0, 1);
    33       }" did not throw
    34 FAIL selectionStart on an input[type=datetime-local] returns null assert_equals: expected (object) null but got (number) 0
    35 FAIL selectionEnd on an input[type=datetime-local] returns null assert_equals: expected (object) null but got (number) 0
    36 FAIL selectionDirection on an input[type=datetime-local] returns null assert_equals: expected (object) null but got (string) "none"
    37 FAIL assigning selectionStart on an input[type=datetime-local] throws InvalidStateError assert_throws: function "function (){
    38         el.selectionStart = 0;
    39       }" did not throw
    40 FAIL assigning selectionEnd on an input[type=datetime-local] throws InvalidStateError assert_throws: function "function (){
    41         el.selectionEnd = 0;
    42       }" did not throw
    43 FAIL assigning selectionDirection on an input[type=datetime-local] throws InvalidStateError assert_throws: function "function (){
    44         el.selectionDirection = 'none';
    45       }" did not throw
    46 FAIL setRangeText on an input[type=datetime-local] throws InvalidStateError assert_throws: function "function (){
    47         el.setRangeText("foobar");
    48       }" did not throw
    49 FAIL setSelectionRange on an input[type=datetime-local] throws InvalidStateError assert_throws: function "function (){
    50         el.setSelectionRange(0, 1);
    51       }" did not throw
    52 FAIL selectionStart on an input[type=date] returns null assert_equals: expected (object) null but got (number) 0
    53 FAIL selectionEnd on an input[type=date] returns null assert_equals: expected (object) null but got (number) 0
    54 FAIL selectionDirection on an input[type=date] returns null assert_equals: expected (object) null but got (string) "none"
    55 FAIL assigning selectionStart on an input[type=date] throws InvalidStateError assert_throws: function "function (){
    56         el.selectionStart = 0;
    57       }" did not throw
    58 FAIL assigning selectionEnd on an input[type=date] throws InvalidStateError assert_throws: function "function (){
    59         el.selectionEnd = 0;
    60       }" did not throw
    61 FAIL assigning selectionDirection on an input[type=date] throws InvalidStateError assert_throws: function "function (){
    62         el.selectionDirection = 'none';
    63       }" did not throw
    64 FAIL setRangeText on an input[type=date] throws InvalidStateError assert_throws: function "function (){
    65         el.setRangeText("foobar");
    66       }" did not throw
    67 FAIL setSelectionRange on an input[type=date] throws InvalidStateError assert_throws: function "function (){
    68         el.setSelectionRange(0, 1);
    69       }" did not throw
    70 FAIL selectionStart on an input[type=month] returns null assert_equals: expected (object) null but got (number) 0
    71 FAIL selectionEnd on an input[type=month] returns null assert_equals: expected (object) null but got (number) 0
    72 FAIL selectionDirection on an input[type=month] returns null assert_equals: expected (object) null but got (string) "none"
    73 FAIL assigning selectionStart on an input[type=month] throws InvalidStateError assert_throws: function "function (){
    74         el.selectionStart = 0;
    75       }" did not throw
    76 FAIL assigning selectionEnd on an input[type=month] throws InvalidStateError assert_throws: function "function (){
    77         el.selectionEnd = 0;
    78       }" did not throw
    79 FAIL assigning selectionDirection on an input[type=month] throws InvalidStateError assert_throws: function "function (){
    80         el.selectionDirection = 'none';
    81       }" did not throw
    82 FAIL setRangeText on an input[type=month] throws InvalidStateError assert_throws: function "function (){
    83         el.setRangeText("foobar");
    84       }" did not throw
    85 FAIL setSelectionRange on an input[type=month] throws InvalidStateError assert_throws: function "function (){
    86         el.setSelectionRange(0, 1);
    87       }" did not throw
    88 FAIL selectionStart on an input[type=week] returns null assert_equals: expected (object) null but got (number) 0
    89 FAIL selectionEnd on an input[type=week] returns null assert_equals: expected (object) null but got (number) 0
    90 FAIL selectionDirection on an input[type=week] returns null assert_equals: expected (object) null but got (string) "none"
    91 FAIL assigning selectionStart on an input[type=week] throws InvalidStateError assert_throws: function "function (){
    92         el.selectionStart = 0;
    93       }" did not throw
    94 FAIL assigning selectionEnd on an input[type=week] throws InvalidStateError assert_throws: function "function (){
    95         el.selectionEnd = 0;
    96       }" did not throw
    97 FAIL assigning selectionDirection on an input[type=week] throws InvalidStateError assert_throws: function "function (){
    98         el.selectionDirection = 'none';
    99       }" did not throw
    100 FAIL setRangeText on an input[type=week] throws InvalidStateError assert_throws: function "function (){
    101         el.setRangeText("foobar");
    102       }" did not throw
    103 FAIL setSelectionRange on an input[type=week] throws InvalidStateError assert_throws: function "function (){
    104         el.setSelectionRange(0, 1);
    105       }" did not throw
    106 FAIL selectionStart on an input[type=time] returns null assert_equals: expected (object) null but got (number) 0
    107 FAIL selectionEnd on an input[type=time] returns null assert_equals: expected (object) null but got (number) 0
    108 FAIL selectionDirection on an input[type=time] returns null assert_equals: expected (object) null but got (string) "none"
    109 FAIL assigning selectionStart on an input[type=time] throws InvalidStateError assert_throws: function "function (){
    110         el.selectionStart = 0;
    111       }" did not throw
    112 FAIL assigning selectionEnd on an input[type=time] throws InvalidStateError assert_throws: function "function (){
    113         el.selectionEnd = 0;
    114       }" did not throw
    115 FAIL assigning selectionDirection on an input[type=time] throws InvalidStateError assert_throws: function "function (){
    116         el.selectionDirection = 'none';
    117       }" did not throw
    118 FAIL setRangeText on an input[type=time] throws InvalidStateError assert_throws: function "function (){
    119         el.setRangeText("foobar");
    120       }" did not throw
    121 FAIL setSelectionRange on an input[type=time] throws InvalidStateError assert_throws: function "function (){
    12232        el.setSelectionRange(0, 1);
    12333      }" did not throw
  • trunk/LayoutTests/platform/mac/imported/w3c/web-platform-tests/html/semantics/forms/textfieldselection/selection-not-application-expected.txt

    r237245 r251677  
    3232        el.setSelectionRange(0, 1);
    3333      }" did not throw
    34 FAIL selectionStart on an input[type=datetime-local] returns null assert_equals: expected (object) null but got (number) 0
    35 FAIL selectionEnd on an input[type=datetime-local] returns null assert_equals: expected (object) null but got (number) 0
    36 FAIL selectionDirection on an input[type=datetime-local] returns null assert_equals: expected (object) null but got (string) "none"
    37 FAIL assigning selectionStart on an input[type=datetime-local] throws InvalidStateError assert_throws: function "function (){
    38         el.selectionStart = 0;
    39       }" did not throw
    40 FAIL assigning selectionEnd on an input[type=datetime-local] throws InvalidStateError assert_throws: function "function (){
    41         el.selectionEnd = 0;
    42       }" did not throw
    43 FAIL assigning selectionDirection on an input[type=datetime-local] throws InvalidStateError assert_throws: function "function (){
    44         el.selectionDirection = 'none';
    45       }" did not throw
    46 FAIL setRangeText on an input[type=datetime-local] throws InvalidStateError assert_throws: function "function (){
    47         el.setRangeText("foobar");
    48       }" did not throw
    49 FAIL setSelectionRange on an input[type=datetime-local] throws InvalidStateError assert_throws: function "function (){
    50         el.setSelectionRange(0, 1);
    51       }" did not throw
    52 FAIL selectionStart on an input[type=date] returns null assert_equals: expected (object) null but got (number) 0
    53 FAIL selectionEnd on an input[type=date] returns null assert_equals: expected (object) null but got (number) 0
    54 FAIL selectionDirection on an input[type=date] returns null assert_equals: expected (object) null but got (string) "none"
    55 FAIL assigning selectionStart on an input[type=date] throws InvalidStateError assert_throws: function "function (){
    56         el.selectionStart = 0;
    57       }" did not throw
    58 FAIL assigning selectionEnd on an input[type=date] throws InvalidStateError assert_throws: function "function (){
    59         el.selectionEnd = 0;
    60       }" did not throw
    61 FAIL assigning selectionDirection on an input[type=date] throws InvalidStateError assert_throws: function "function (){
    62         el.selectionDirection = 'none';
    63       }" did not throw
    64 FAIL setRangeText on an input[type=date] throws InvalidStateError assert_throws: function "function (){
    65         el.setRangeText("foobar");
    66       }" did not throw
    67 FAIL setSelectionRange on an input[type=date] throws InvalidStateError assert_throws: function "function (){
    68         el.setSelectionRange(0, 1);
    69       }" did not throw
    70 FAIL selectionStart on an input[type=month] returns null assert_equals: expected (object) null but got (number) 0
    71 FAIL selectionEnd on an input[type=month] returns null assert_equals: expected (object) null but got (number) 0
    72 FAIL selectionDirection on an input[type=month] returns null assert_equals: expected (object) null but got (string) "none"
    73 FAIL assigning selectionStart on an input[type=month] throws InvalidStateError assert_throws: function "function (){
    74         el.selectionStart = 0;
    75       }" did not throw
    76 FAIL assigning selectionEnd on an input[type=month] throws InvalidStateError assert_throws: function "function (){
    77         el.selectionEnd = 0;
    78       }" did not throw
    79 FAIL assigning selectionDirection on an input[type=month] throws InvalidStateError assert_throws: function "function (){
    80         el.selectionDirection = 'none';
    81       }" did not throw
    82 FAIL setRangeText on an input[type=month] throws InvalidStateError assert_throws: function "function (){
    83         el.setRangeText("foobar");
    84       }" did not throw
    85 FAIL setSelectionRange on an input[type=month] throws InvalidStateError assert_throws: function "function (){
    86         el.setSelectionRange(0, 1);
    87       }" did not throw
    88 FAIL selectionStart on an input[type=week] returns null assert_equals: expected (object) null but got (number) 0
    89 FAIL selectionEnd on an input[type=week] returns null assert_equals: expected (object) null but got (number) 0
    90 FAIL selectionDirection on an input[type=week] returns null assert_equals: expected (object) null but got (string) "none"
    91 FAIL assigning selectionStart on an input[type=week] throws InvalidStateError assert_throws: function "function (){
    92         el.selectionStart = 0;
    93       }" did not throw
    94 FAIL assigning selectionEnd on an input[type=week] throws InvalidStateError assert_throws: function "function (){
    95         el.selectionEnd = 0;
    96       }" did not throw
    97 FAIL assigning selectionDirection on an input[type=week] throws InvalidStateError assert_throws: function "function (){
    98         el.selectionDirection = 'none';
    99       }" did not throw
    100 FAIL setRangeText on an input[type=week] throws InvalidStateError assert_throws: function "function (){
    101         el.setRangeText("foobar");
    102       }" did not throw
    103 FAIL setSelectionRange on an input[type=week] throws InvalidStateError assert_throws: function "function (){
    104         el.setSelectionRange(0, 1);
    105       }" did not throw
    106 FAIL selectionStart on an input[type=time] returns null assert_equals: expected (object) null but got (number) 0
    107 FAIL selectionEnd on an input[type=time] returns null assert_equals: expected (object) null but got (number) 0
    108 FAIL selectionDirection on an input[type=time] returns null assert_equals: expected (object) null but got (string) "none"
    109 FAIL assigning selectionStart on an input[type=time] throws InvalidStateError assert_throws: function "function (){
    110         el.selectionStart = 0;
    111       }" did not throw
    112 FAIL assigning selectionEnd on an input[type=time] throws InvalidStateError assert_throws: function "function (){
    113         el.selectionEnd = 0;
    114       }" did not throw
    115 FAIL assigning selectionDirection on an input[type=time] throws InvalidStateError assert_throws: function "function (){
    116         el.selectionDirection = 'none';
    117       }" did not throw
    118 FAIL setRangeText on an input[type=time] throws InvalidStateError assert_throws: function "function (){
    119         el.setRangeText("foobar");
    120       }" did not throw
    121 FAIL setSelectionRange on an input[type=time] throws InvalidStateError assert_throws: function "function (){
    122         el.setSelectionRange(0, 1);
    123       }" did not throw
    12434FAIL selectionStart on an input[type=number] returns null assert_equals: expected (object) null but got (number) 0
    12535FAIL selectionEnd on an input[type=number] returns null assert_equals: expected (object) null but got (number) 0
     
    15464        el.setSelectionRange(0, 1);
    15565      }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11
    156 FAIL selectionStart on an input[type=color] returns null assert_equals: expected (object) null but got (number) 0
    157 FAIL selectionEnd on an input[type=color] returns null assert_equals: expected (object) null but got (number) 0
    158 FAIL selectionDirection on an input[type=color] returns null assert_equals: expected (object) null but got (string) "none"
    159 FAIL assigning selectionStart on an input[type=color] throws InvalidStateError assert_throws: function "function (){
    160         el.selectionStart = 0;
    161       }" did not throw
    162 FAIL assigning selectionEnd on an input[type=color] throws InvalidStateError assert_throws: function "function (){
    163         el.selectionEnd = 0;
    164       }" did not throw
    165 FAIL assigning selectionDirection on an input[type=color] throws InvalidStateError assert_throws: function "function (){
    166         el.selectionDirection = 'none';
    167       }" did not throw
    168 FAIL setRangeText on an input[type=color] throws InvalidStateError assert_throws: function "function (){
    169         el.setRangeText("foobar");
    170       }" did not throw
    171 FAIL setSelectionRange on an input[type=color] throws InvalidStateError assert_throws: function "function (){
    172         el.setSelectionRange(0, 1);
    173       }" did not throw
    17466FAIL selectionStart on an input[type=checkbox] returns null Type error
    17567FAIL selectionEnd on an input[type=checkbox] returns null Type error
Note: See TracChangeset for help on using the changeset viewer.