Diff
Modified: trunk/LayoutTests/ChangeLog (251676 => 251677)
--- trunk/LayoutTests/ChangeLog 2019-10-28 21:57:39 UTC (rev 251676)
+++ trunk/LayoutTests/ChangeLog 2019-10-28 22:07:55 UTC (rev 251677)
@@ -1,3 +1,17 @@
+2019-10-28 Chris Dumez <cdu...@apple.com>
+
+ Update html/semantics/forms WPT tests from upstream
+ https://bugs.webkit.org/show_bug.cgi?id=203499
+
+ Reviewed by Ryosuke Niwa.
+
+ * TestExpectations:
+ 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.
+
2019-10-28 Yusuke Suzuki <ysuz...@apple.com>
[JSC] Optimize Promise runtime functions
Modified: trunk/LayoutTests/TestExpectations (251676 => 251677)
--- trunk/LayoutTests/TestExpectations 2019-10-28 21:57:39 UTC (rev 251676)
+++ trunk/LayoutTests/TestExpectations 2019-10-28 22:07:55 UTC (rev 251677)
@@ -3916,6 +3916,8 @@
webkit.org/b/203337 imported/w3c/web-platform-tests/css/css-values/vh-support-atviewport.html [ ImageOnlyFailure ]
webkit.org/b/203338 imported/w3c/web-platform-tests/css/css-values/vh_not_refreshing_on_chrome.html [ ImageOnlyFailure ]
+webkit.org/b/202859 imported/w3c/web-platform-tests/html/semantics/forms/the-input-element/range-setattribute-value.html [ ImageOnlyFailure ]
+
# wpt css-position failures
webkit.org/b/203445 [ Debug ] imported/w3c/web-platform-tests/css/css-position/position-absolute-container-dynamic-002.html [ Skip ]
webkit.org/b/203445 [ Debug ] imported/w3c/web-platform-tests/css/css-position/position-absolute-crash-chrome-005.html [ Skip ]
Modified: trunk/LayoutTests/imported/w3c/ChangeLog (251676 => 251677)
--- trunk/LayoutTests/imported/w3c/ChangeLog 2019-10-28 21:57:39 UTC (rev 251676)
+++ trunk/LayoutTests/imported/w3c/ChangeLog 2019-10-28 22:07:55 UTC (rev 251677)
@@ -1,3 +1,29 @@
+2019-10-28 Chris Dumez <cdu...@apple.com>
+
+ Update html/semantics/forms WPT tests from upstream
+ https://bugs.webkit.org/show_bug.cgi?id=203499
+
+ Reviewed by Ryosuke Niwa.
+
+ 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:
+
2019-10-28 Simon Fraser <simon.fra...@apple.com>
Properties that take <position> should not accept 3 values
Modified: trunk/LayoutTests/imported/w3c/resources/import-expectations.json (251676 => 251677)
--- trunk/LayoutTests/imported/w3c/resources/import-expectations.json 2019-10-28 21:57:39 UTC (rev 251676)
+++ trunk/LayoutTests/imported/w3c/resources/import-expectations.json 2019-10-28 22:07:55 UTC (rev 251677)
@@ -381,4 +381,4 @@
"web-platform-tests/worklets": "skip",
"web-platform-tests/x-frame-options": "skip",
"web-platform-tests/xhr": "import"
-}
\ No newline at end of file
+}
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/form-submission-0/form-double-submit-2-expected.txt (0 => 251677)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/form-submission-0/form-double-submit-2-expected.txt (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/form-submission-0/form-double-submit-2-expected.txt 2019-10-28 22:07:55 UTC (rev 251677)
@@ -0,0 +1,8 @@
+This frame should stay blank
+
+This frame should navigate (to 404)
+
+
+
+PASS preventDefault should allow onclick submit() to succeed
+
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/form-submission-0/form-double-submit-2.html (0 => 251677)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/form-submission-0/form-double-submit-2.html (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/form-submission-0/form-double-submit-2.html 2019-10-28 22:07:55 UTC (rev 251677)
@@ -0,0 +1,47 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<link rel="author" title="Mason Freed" href=""
+<link rel="help" href=""
+
+<script src=""
+<script src=""
+
+<!-- The onclick submit() should *not* get superseded in this case by the
+ default action submit(), because onclick here calls preventDefault().
+ -->
+
+
+
+
+<label for="" style="display:block">This frame should stay blank</label>
+<iframe name=frame1 id=frame1></iframe>
+<label for="" style="display:block">This frame should navigate (to 404)</label>
+<iframe name=frame2 id=frame2></iframe>
+<form id="form1" target="frame2" action=""
+ <input type=hidden name=navigated value=1>
+ <input id=submitbutton type=submit>
+</form>
+
+<script>
+let frame1 = document.getElementById('frame1');
+let frame2 = document.getElementById('frame2');
+
+async_test(t => {
+ window.addEventListener('load', () => {
+ frame1.addEventListener('load', t.step_func_done(() => {
+ assert_unreached("Frame1 should not get navigated by this test.");
+ }));
+ frame2.addEventListener('load', t.step_func_done(() => {
+ let params = (new URL(frame2.contentWindow.location)).searchParams;
+ let wasNavigated = !!params.get("navigated");
+ assert_true(wasNavigated);
+ }));
+ form1.addEventListener('click', t.step_func(() => {
+ form1.submit();
+ form1.target='frame1';
+ event.preventDefault(); // Prevent default here
+ }));
+ submitbutton.click();
+ });
+}, 'preventDefault should allow onclick submit() to succeed');
+</script>
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/form-submission-0/form-double-submit-3-expected.txt (0 => 251677)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/form-submission-0/form-double-submit-3-expected.txt (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/form-submission-0/form-double-submit-3-expected.txt 2019-10-28 22:07:55 UTC (rev 251677)
@@ -0,0 +1,8 @@
+This frame should stay blank
+
+This frame should navigate (to 404)
+
+submit
+
+FAIL <button> should have the same double-submit protection as <input type=submit> assert_unreached: Frame1 should not get navigated by this test. Reached unreachable code
+
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/form-submission-0/form-double-submit-3.html (0 => 251677)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/form-submission-0/form-double-submit-3.html (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/form-submission-0/form-double-submit-3.html 2019-10-28 22:07:55 UTC (rev 251677)
@@ -0,0 +1,48 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<link rel="author" title="Mason Freed" href=""
+<link rel="help" href=""
+
+<script src=""
+<script src=""
+
+<!-- <button> should have the same double-submit protection that
+ <input type=submit> has.
+ -->
+
+
+
+
+<label for="" style="display:block">This frame should stay blank</label>
+<iframe name=frame1 id=frame1></iframe>
+<label for="" style="display:block">This frame should navigate (to 404)</label>
+<iframe name=frame2 id=frame2></iframe>
+<form id="form1" target="frame1" action=""
+ <input type=hidden name=navigated value=1>
+ <button id=submitbutton>submit</button>
+</form>
+
+<script>
+let frame1 = document.getElementById('frame1');
+let frame2 = document.getElementById('frame2');
+
+async_test(t => {
+ window.addEventListener('load', () => {
+ frame1.addEventListener('load', t.step_func_done(() => {
+ assert_unreached("Frame1 should not get navigated by this test.");
+ }));
+ frame2.addEventListener('load', t.step_func_done(() => {
+ let params = (new URL(frame2.contentWindow.location)).searchParams;
+ let wasNavigated = !!params.get("navigated");
+ assert_true(wasNavigated)
+ }));
+ form1.addEventListener('click', t.step_func(() => {
+ form1.submit();
+ form1.target='frame2';
+
+ }));
+ submitbutton.click();
+ });
+}, '<button> should have the same double-submit protection as <input type=submit>');
+
+</script>
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/form-submission-0/form-double-submit-expected.txt (0 => 251677)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/form-submission-0/form-double-submit-expected.txt (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/form-submission-0/form-double-submit-expected.txt 2019-10-28 22:07:55 UTC (rev 251677)
@@ -0,0 +1,8 @@
+This frame should stay blank
+
+This frame should navigate (to 404)
+
+
+
+FAIL default submit action should supersede onclick submit() assert_unreached: Frame1 should not get navigated by this test. Reached unreachable code
+
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/form-submission-0/form-double-submit.html (0 => 251677)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/form-submission-0/form-double-submit.html (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/form-submission-0/form-double-submit.html 2019-10-28 22:07:55 UTC (rev 251677)
@@ -0,0 +1,48 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<link rel="author" title="Mason Freed" href=""
+<link rel="help" href=""
+
+<script src=""
+<script src=""
+
+<!-- The onclick submit() should get superseded by the default
+ action submit(), which isn't preventDefaulted by onclick here.
+ This is per the Form Submission Algorithm [1], step 22.3, which
+ says that new planned navigations replace old planned navigations.
+ [1] https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#form-submission-algorithm
+ -->
+
+<label for="" style="display:block">This frame should stay blank</label>
+<iframe name=frame1 id=frame1></iframe>
+<label for="" style="display:block">This frame should navigate (to 404)</label>
+<iframe name=frame2 id=frame2></iframe>
+<form id="form1" target="frame1" action=""
+ <input type=hidden name=navigated value=1>
+ <input id=submitbutton type=submit>
+</form>
+
+<script>
+let frame1 = document.getElementById('frame1');
+let frame2 = document.getElementById('frame2');
+
+async_test(t => {
+ window.addEventListener('load', () => {
+ frame1.addEventListener('load', t.step_func_done(() => {
+ assert_unreached("Frame1 should not get navigated by this test.");
+ }));
+ frame2.addEventListener('load', t.step_func_done(() => {
+ let params = (new URL(frame2.contentWindow.location)).searchParams;
+ let wasNavigated = !!params.get("navigated");
+ assert_true(wasNavigated)
+ }));
+ form1.addEventListener('click', t.step_func(() => {
+ form1.submit();
+ form1.target='frame2';
+
+ }));
+ submitbutton.click();
+ });
+}, 'default submit action should supersede onclick submit()');
+
+</script>
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/form-submission-0/resources/form-submission.py (0 => 251677)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/form-submission-0/resources/form-submission.py (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/form-submission-0/resources/form-submission.py 2019-10-28 22:07:55 UTC (rev 251677)
@@ -0,0 +1,10 @@
+def main(request, response):
+ if request.headers.get('Content-Type') == 'application/x-www-form-urlencoded':
+ result = request.body == 'foo=bara'
+ elif request.headers.get('Content-Type') == 'text/plain':
+ result = request.body == 'qux=baz\r\n'
+ else:
+ result = request.POST.first('foo') == 'bar'
+
+ return ([("Content-Type", "text/plain")],
+ "OK" if result else "FAIL")
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/form-submission-0/resources/w3c-import.log (251676 => 251677)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/form-submission-0/resources/w3c-import.log 2019-10-28 21:57:39 UTC (rev 251676)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/form-submission-0/resources/w3c-import.log 2019-10-28 22:07:55 UTC (rev 251677)
@@ -15,4 +15,5 @@
------------------------------------------------------------------------
List of files:
/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/form-submission-0/resources/file-submission.py
+/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/form-submission-0/resources/form-submission.py
/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/form-submission-0/resources/targetted-form.js
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/form-submission-0/submit-entity-body.html (251676 => 251677)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/form-submission-0/submit-entity-body.html 2019-10-28 21:57:39 UTC (rev 251676)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/form-submission-0/submit-entity-body.html 2019-10-28 22:07:55 UTC (rev 251677)
@@ -96,7 +96,7 @@
var testframe = document.getElementById("testframe");
var testdocument = testframe.contentWindow.document;
testdocument.body.innerHTML =
- "<form id=testform method=post action="" enctype=\"" + test_obj.enctype + "\">" +
+ "<form id=testform method=post action="" enctype=\"" + test_obj.enctype + "\">" +
test_obj.input +
test_obj.submitelement +
"</form>";
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/form-submission-0/w3c-import.log (251676 => 251677)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/form-submission-0/w3c-import.log 2019-10-28 21:57:39 UTC (rev 251676)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/form-submission-0/w3c-import.log 2019-10-28 22:07:55 UTC (rev 251677)
@@ -19,6 +19,9 @@
/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/form-submission-0/form-data-set-empty-file.window.js
/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/form-submission-0/form-data-set-usv-form.html
/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/form-submission-0/form-data-set-usv.html
+/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/form-submission-0/form-double-submit-2.html
+/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/form-submission-0/form-double-submit-3.html
+/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/form-submission-0/form-double-submit.html
/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/form-submission-0/form-echo.py
/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/form-submission-0/form-submission-algorithm.html
/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/form-submission-0/getactionurl.html
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/textfieldselection/selection-not-application.html (251676 => 251677)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/textfieldselection/selection-not-application.html 2019-10-28 21:57:39 UTC (rev 251676)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/textfieldselection/selection-not-application.html 2019-10-28 22:07:55 UTC (rev 251677)
@@ -14,6 +14,11 @@
var el = document.createElement("input");
el.type = type;
+ if (el.type != type) {
+ // Type is not supported - don't bother with the following checks.
+ return;
+ }
+
test(() => {
assert_equals(el.selectionStart, null);
}, `selectionStart on an input[type=${type}] returns null`);
@@ -70,7 +75,7 @@
}, `selectionEnd on an input[type=${type}] returns a value`);
test(() => {
- assert_equals(el.selectionDirection, "none");
+ assert_in_array(el.selectionDirection, ["forward", "none"]);
}, `selectionDirection on an input[type=${type}] returns a value`);
test(() => {
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-input-element/range-setattribute-value-expected.html (0 => 251677)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-input-element/range-setattribute-value-expected.html (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-input-element/range-setattribute-value-expected.html 2019-10-28 22:07:55 UTC (rev 251677)
@@ -0,0 +1,7 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>range input element setAttribute value appearance</title>
+
+<p>Test passes if the range element below visually has its slider at 2/10 from the left</p>
+
+<input type=range min=0 max=10 value=2></input>
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-input-element/range-setattribute-value.html (0 => 251677)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-input-element/range-setattribute-value.html (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-input-element/range-setattribute-value.html 2019-10-28 22:07:55 UTC (rev 251677)
@@ -0,0 +1,27 @@
+<!DOCTYPE html>
+<html class="reftest-wait">
+<meta charset="utf-8">
+<link rel="author" title="Joey Arhar" href=""
+<link rel="help" href=""
+<link rel="match" href=""
+<title>range input element setAttribute value appearance</title>
+
+<p>Test passes if the range element below visually has its slider at 2/10 from the left</p>
+
+<script>
+window._onload_ = () => {
+
+ const input = document.createElement('input');
+ input.type = 'range';
+ input.min = 0;
+ input.max = 10;
+ document.body.appendChild(input);
+
+ requestAnimationFrame(() => {
+ requestAnimationFrame(() => {
+ input.setAttribute('value', 2);
+ document.documentElement.classList.remove('reftest-wait');
+ });
+ });
+};
+</script>
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-input-element/w3c-import.log (251676 => 251677)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-input-element/w3c-import.log 2019-10-28 21:57:39 UTC (rev 251676)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-input-element/w3c-import.log 2019-10-28 22:07:55 UTC (rev 251677)
@@ -64,6 +64,8 @@
/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-input-element/range-2.html
/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-input-element/range-intrinsic-size-expected.html
/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-input-element/range-intrinsic-size.html
+/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-input-element/range-setattribute-value-expected.html
+/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-input-element/range-setattribute-value.html
/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-input-element/range.html
/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-input-element/required_attribute.html
/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-input-element/reset.html
Modified: trunk/LayoutTests/platform/mac/imported/w3c/web-platform-tests/html/semantics/forms/textfieldselection/selection-not-application-expected.txt (251676 => 251677)
--- trunk/LayoutTests/platform/mac/imported/w3c/web-platform-tests/html/semantics/forms/textfieldselection/selection-not-application-expected.txt 2019-10-28 21:57:39 UTC (rev 251676)
+++ trunk/LayoutTests/platform/mac/imported/w3c/web-platform-tests/html/semantics/forms/textfieldselection/selection-not-application-expected.txt 2019-10-28 22:07:55 UTC (rev 251677)
@@ -31,96 +31,6 @@
FAIL setSelectionRange on an input[type=email] throws InvalidStateError assert_throws: function "function (){
el.setSelectionRange(0, 1);
}" did not throw
-FAIL selectionStart on an input[type=datetime-local] returns null assert_equals: expected (object) null but got (number) 0
-FAIL selectionEnd on an input[type=datetime-local] returns null assert_equals: expected (object) null but got (number) 0
-FAIL selectionDirection on an input[type=datetime-local] returns null assert_equals: expected (object) null but got (string) "none"
-FAIL assigning selectionStart on an input[type=datetime-local] throws InvalidStateError assert_throws: function "function (){
- el.selectionStart = 0;
- }" did not throw
-FAIL assigning selectionEnd on an input[type=datetime-local] throws InvalidStateError assert_throws: function "function (){
- el.selectionEnd = 0;
- }" did not throw
-FAIL assigning selectionDirection on an input[type=datetime-local] throws InvalidStateError assert_throws: function "function (){
- el.selectionDirection = 'none';
- }" did not throw
-FAIL setRangeText on an input[type=datetime-local] throws InvalidStateError assert_throws: function "function (){
- el.setRangeText("foobar");
- }" did not throw
-FAIL setSelectionRange on an input[type=datetime-local] throws InvalidStateError assert_throws: function "function (){
- el.setSelectionRange(0, 1);
- }" did not throw
-FAIL selectionStart on an input[type=date] returns null assert_equals: expected (object) null but got (number) 0
-FAIL selectionEnd on an input[type=date] returns null assert_equals: expected (object) null but got (number) 0
-FAIL selectionDirection on an input[type=date] returns null assert_equals: expected (object) null but got (string) "none"
-FAIL assigning selectionStart on an input[type=date] throws InvalidStateError assert_throws: function "function (){
- el.selectionStart = 0;
- }" did not throw
-FAIL assigning selectionEnd on an input[type=date] throws InvalidStateError assert_throws: function "function (){
- el.selectionEnd = 0;
- }" did not throw
-FAIL assigning selectionDirection on an input[type=date] throws InvalidStateError assert_throws: function "function (){
- el.selectionDirection = 'none';
- }" did not throw
-FAIL setRangeText on an input[type=date] throws InvalidStateError assert_throws: function "function (){
- el.setRangeText("foobar");
- }" did not throw
-FAIL setSelectionRange on an input[type=date] throws InvalidStateError assert_throws: function "function (){
- el.setSelectionRange(0, 1);
- }" did not throw
-FAIL selectionStart on an input[type=month] returns null assert_equals: expected (object) null but got (number) 0
-FAIL selectionEnd on an input[type=month] returns null assert_equals: expected (object) null but got (number) 0
-FAIL selectionDirection on an input[type=month] returns null assert_equals: expected (object) null but got (string) "none"
-FAIL assigning selectionStart on an input[type=month] throws InvalidStateError assert_throws: function "function (){
- el.selectionStart = 0;
- }" did not throw
-FAIL assigning selectionEnd on an input[type=month] throws InvalidStateError assert_throws: function "function (){
- el.selectionEnd = 0;
- }" did not throw
-FAIL assigning selectionDirection on an input[type=month] throws InvalidStateError assert_throws: function "function (){
- el.selectionDirection = 'none';
- }" did not throw
-FAIL setRangeText on an input[type=month] throws InvalidStateError assert_throws: function "function (){
- el.setRangeText("foobar");
- }" did not throw
-FAIL setSelectionRange on an input[type=month] throws InvalidStateError assert_throws: function "function (){
- el.setSelectionRange(0, 1);
- }" did not throw
-FAIL selectionStart on an input[type=week] returns null assert_equals: expected (object) null but got (number) 0
-FAIL selectionEnd on an input[type=week] returns null assert_equals: expected (object) null but got (number) 0
-FAIL selectionDirection on an input[type=week] returns null assert_equals: expected (object) null but got (string) "none"
-FAIL assigning selectionStart on an input[type=week] throws InvalidStateError assert_throws: function "function (){
- el.selectionStart = 0;
- }" did not throw
-FAIL assigning selectionEnd on an input[type=week] throws InvalidStateError assert_throws: function "function (){
- el.selectionEnd = 0;
- }" did not throw
-FAIL assigning selectionDirection on an input[type=week] throws InvalidStateError assert_throws: function "function (){
- el.selectionDirection = 'none';
- }" did not throw
-FAIL setRangeText on an input[type=week] throws InvalidStateError assert_throws: function "function (){
- el.setRangeText("foobar");
- }" did not throw
-FAIL setSelectionRange on an input[type=week] throws InvalidStateError assert_throws: function "function (){
- el.setSelectionRange(0, 1);
- }" did not throw
-FAIL selectionStart on an input[type=time] returns null assert_equals: expected (object) null but got (number) 0
-FAIL selectionEnd on an input[type=time] returns null assert_equals: expected (object) null but got (number) 0
-FAIL selectionDirection on an input[type=time] returns null assert_equals: expected (object) null but got (string) "none"
-FAIL assigning selectionStart on an input[type=time] throws InvalidStateError assert_throws: function "function (){
- el.selectionStart = 0;
- }" did not throw
-FAIL assigning selectionEnd on an input[type=time] throws InvalidStateError assert_throws: function "function (){
- el.selectionEnd = 0;
- }" did not throw
-FAIL assigning selectionDirection on an input[type=time] throws InvalidStateError assert_throws: function "function (){
- el.selectionDirection = 'none';
- }" did not throw
-FAIL setRangeText on an input[type=time] throws InvalidStateError assert_throws: function "function (){
- el.setRangeText("foobar");
- }" did not throw
-FAIL setSelectionRange on an input[type=time] throws InvalidStateError assert_throws: function "function (){
- el.setSelectionRange(0, 1);
- }" did not throw
FAIL selectionStart on an input[type=number] returns null assert_equals: expected (object) null but got (number) 0
FAIL selectionEnd on an input[type=number] returns null assert_equals: expected (object) null but got (number) 0
FAIL selectionDirection on an input[type=number] returns null assert_equals: expected (object) null but got (string) "none"
@@ -153,24 +63,6 @@
FAIL setSelectionRange on an input[type=range] throws InvalidStateError assert_throws: function "function (){
el.setSelectionRange(0, 1);
}" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11
-FAIL selectionStart on an input[type=color] returns null assert_equals: expected (object) null but got (number) 0
-FAIL selectionEnd on an input[type=color] returns null assert_equals: expected (object) null but got (number) 0
-FAIL selectionDirection on an input[type=color] returns null assert_equals: expected (object) null but got (string) "none"
-FAIL assigning selectionStart on an input[type=color] throws InvalidStateError assert_throws: function "function (){
- el.selectionStart = 0;
- }" did not throw
-FAIL assigning selectionEnd on an input[type=color] throws InvalidStateError assert_throws: function "function (){
- el.selectionEnd = 0;
- }" did not throw
-FAIL assigning selectionDirection on an input[type=color] throws InvalidStateError assert_throws: function "function (){
- el.selectionDirection = 'none';
- }" did not throw
-FAIL setRangeText on an input[type=color] throws InvalidStateError assert_throws: function "function (){
- el.setRangeText("foobar");
- }" did not throw
-FAIL setSelectionRange on an input[type=color] throws InvalidStateError assert_throws: function "function (){
- el.setSelectionRange(0, 1);
- }" did not throw
FAIL selectionStart on an input[type=checkbox] returns null Type error
FAIL selectionEnd on an input[type=checkbox] returns null Type error
FAIL selectionDirection on an input[type=checkbox] returns null Type error
Modified: trunk/LayoutTests/platform/mac-wk2/imported/w3c/web-platform-tests/html/semantics/forms/textfieldselection/selection-not-application-expected.txt (251676 => 251677)
--- trunk/LayoutTests/platform/mac-wk2/imported/w3c/web-platform-tests/html/semantics/forms/textfieldselection/selection-not-application-expected.txt 2019-10-28 21:57:39 UTC (rev 251676)
+++ trunk/LayoutTests/platform/mac-wk2/imported/w3c/web-platform-tests/html/semantics/forms/textfieldselection/selection-not-application-expected.txt 2019-10-28 22:07:55 UTC (rev 251677)
@@ -31,96 +31,6 @@
FAIL setSelectionRange on an input[type=email] throws InvalidStateError assert_throws: function "function (){
el.setSelectionRange(0, 1);
}" did not throw
-FAIL selectionStart on an input[type=datetime-local] returns null assert_equals: expected (object) null but got (number) 0
-FAIL selectionEnd on an input[type=datetime-local] returns null assert_equals: expected (object) null but got (number) 0
-FAIL selectionDirection on an input[type=datetime-local] returns null assert_equals: expected (object) null but got (string) "none"
-FAIL assigning selectionStart on an input[type=datetime-local] throws InvalidStateError assert_throws: function "function (){
- el.selectionStart = 0;
- }" did not throw
-FAIL assigning selectionEnd on an input[type=datetime-local] throws InvalidStateError assert_throws: function "function (){
- el.selectionEnd = 0;
- }" did not throw
-FAIL assigning selectionDirection on an input[type=datetime-local] throws InvalidStateError assert_throws: function "function (){
- el.selectionDirection = 'none';
- }" did not throw
-FAIL setRangeText on an input[type=datetime-local] throws InvalidStateError assert_throws: function "function (){
- el.setRangeText("foobar");
- }" did not throw
-FAIL setSelectionRange on an input[type=datetime-local] throws InvalidStateError assert_throws: function "function (){
- el.setSelectionRange(0, 1);
- }" did not throw
-FAIL selectionStart on an input[type=date] returns null assert_equals: expected (object) null but got (number) 0
-FAIL selectionEnd on an input[type=date] returns null assert_equals: expected (object) null but got (number) 0
-FAIL selectionDirection on an input[type=date] returns null assert_equals: expected (object) null but got (string) "none"
-FAIL assigning selectionStart on an input[type=date] throws InvalidStateError assert_throws: function "function (){
- el.selectionStart = 0;
- }" did not throw
-FAIL assigning selectionEnd on an input[type=date] throws InvalidStateError assert_throws: function "function (){
- el.selectionEnd = 0;
- }" did not throw
-FAIL assigning selectionDirection on an input[type=date] throws InvalidStateError assert_throws: function "function (){
- el.selectionDirection = 'none';
- }" did not throw
-FAIL setRangeText on an input[type=date] throws InvalidStateError assert_throws: function "function (){
- el.setRangeText("foobar");
- }" did not throw
-FAIL setSelectionRange on an input[type=date] throws InvalidStateError assert_throws: function "function (){
- el.setSelectionRange(0, 1);
- }" did not throw
-FAIL selectionStart on an input[type=month] returns null assert_equals: expected (object) null but got (number) 0
-FAIL selectionEnd on an input[type=month] returns null assert_equals: expected (object) null but got (number) 0
-FAIL selectionDirection on an input[type=month] returns null assert_equals: expected (object) null but got (string) "none"
-FAIL assigning selectionStart on an input[type=month] throws InvalidStateError assert_throws: function "function (){
- el.selectionStart = 0;
- }" did not throw
-FAIL assigning selectionEnd on an input[type=month] throws InvalidStateError assert_throws: function "function (){
- el.selectionEnd = 0;
- }" did not throw
-FAIL assigning selectionDirection on an input[type=month] throws InvalidStateError assert_throws: function "function (){
- el.selectionDirection = 'none';
- }" did not throw
-FAIL setRangeText on an input[type=month] throws InvalidStateError assert_throws: function "function (){
- el.setRangeText("foobar");
- }" did not throw
-FAIL setSelectionRange on an input[type=month] throws InvalidStateError assert_throws: function "function (){
- el.setSelectionRange(0, 1);
- }" did not throw
-FAIL selectionStart on an input[type=week] returns null assert_equals: expected (object) null but got (number) 0
-FAIL selectionEnd on an input[type=week] returns null assert_equals: expected (object) null but got (number) 0
-FAIL selectionDirection on an input[type=week] returns null assert_equals: expected (object) null but got (string) "none"
-FAIL assigning selectionStart on an input[type=week] throws InvalidStateError assert_throws: function "function (){
- el.selectionStart = 0;
- }" did not throw
-FAIL assigning selectionEnd on an input[type=week] throws InvalidStateError assert_throws: function "function (){
- el.selectionEnd = 0;
- }" did not throw
-FAIL assigning selectionDirection on an input[type=week] throws InvalidStateError assert_throws: function "function (){
- el.selectionDirection = 'none';
- }" did not throw
-FAIL setRangeText on an input[type=week] throws InvalidStateError assert_throws: function "function (){
- el.setRangeText("foobar");
- }" did not throw
-FAIL setSelectionRange on an input[type=week] throws InvalidStateError assert_throws: function "function (){
- el.setSelectionRange(0, 1);
- }" did not throw
-FAIL selectionStart on an input[type=time] returns null assert_equals: expected (object) null but got (number) 0
-FAIL selectionEnd on an input[type=time] returns null assert_equals: expected (object) null but got (number) 0
-FAIL selectionDirection on an input[type=time] returns null assert_equals: expected (object) null but got (string) "none"
-FAIL assigning selectionStart on an input[type=time] throws InvalidStateError assert_throws: function "function (){
- el.selectionStart = 0;
- }" did not throw
-FAIL assigning selectionEnd on an input[type=time] throws InvalidStateError assert_throws: function "function (){
- el.selectionEnd = 0;
- }" did not throw
-FAIL assigning selectionDirection on an input[type=time] throws InvalidStateError assert_throws: function "function (){
- el.selectionDirection = 'none';
- }" did not throw
-FAIL setRangeText on an input[type=time] throws InvalidStateError assert_throws: function "function (){
- el.setRangeText("foobar");
- }" did not throw
-FAIL setSelectionRange on an input[type=time] throws InvalidStateError assert_throws: function "function (){
- el.setSelectionRange(0, 1);
- }" did not throw
FAIL selectionStart on an input[type=number] returns null assert_equals: expected (object) null but got (number) 0
FAIL selectionEnd on an input[type=number] returns null assert_equals: expected (object) null but got (number) 0
FAIL selectionDirection on an input[type=number] returns null assert_equals: expected (object) null but got (string) "none"