Skip to content

Commit

Permalink
Update web-platform-tests to revision 58b5a417f8372321d5d465b8d722d70…
Browse files Browse the repository at this point in the history
…73cb6e80b
  • Loading branch information
servo-wpt-sync committed Jan 13, 2020
1 parent 3eec5f6 commit c9d9c98
Show file tree
Hide file tree
Showing 14 changed files with 48 additions and 35 deletions.
2 changes: 1 addition & 1 deletion tests/wpt/metadata/MANIFEST.json
Expand Up @@ -665713,7 +665713,7 @@
"testharness"
],
"html/semantics/forms/form-submission-0/SubmitEvent.window.js": [
"93dbabb866beeba9e04d0d4f99dde78f448e8dff",
"ca722315d815a0e40566f8dee63f5b1c389670b2",
"testharness"
],
"html/semantics/forms/form-submission-0/constructing-form-data-set.html": [
Expand Down
4 changes: 4 additions & 0 deletions tests/wpt/metadata/css/cssom-view/CaretPosition-001.html.ini
@@ -0,0 +1,4 @@
[CaretPosition-001.html]
[Element at (400, 100)]
expected: FAIL

Expand Up @@ -2,6 +2,3 @@
[elementsFromPoint on the root document for points in iframe elements]
expected: FAIL

[elementsFromPoint on inner documents]
expected: FAIL

10 changes: 5 additions & 5 deletions tests/wpt/metadata/fetch/content-type/response.window.js.ini
Expand Up @@ -315,18 +315,18 @@
[<iframe>: combined response Content-Type: text/html;" \\" text/plain]
expected: FAIL

[<iframe>: separate response Content-Type: text/plain */*;charset=gbk]
[<iframe>: combined response Content-Type: text/html;" text/plain]
expected: FAIL

[<iframe>: combined response Content-Type: text/html;" text/plain]
[<iframe>: combined response Content-Type: */* text/html]
expected: FAIL

[<iframe>: combined response Content-Type: text/html */*]
[<iframe>: separate response Content-Type: text/html;" text/plain]
expected: FAIL

[<iframe>: separate response Content-Type: text/html;x=" text/plain]
[<iframe>: separate response Content-Type: text/html */*;charset=gbk]
expected: FAIL

[<iframe>: combined response Content-Type: text/html;x=" text/plain]
[<iframe>: separate response Content-Type: text/html */*]
expected: FAIL

Expand Up @@ -11,6 +11,6 @@
[X-Content-Type-Options%3A%20nosniff%0C]
expected: FAIL

[X-Content-Type-Options%3A%0D%0AX-Content-Type-Options%3A%20nosniff]
[X-Content-Type-Options%3A%20'NosniFF']
expected: FAIL

@@ -1,4 +1,4 @@
[traverse_the_history_5.html]
[traverse_the_history_2.html]
[Multiple history traversals, last would be aborted]
expected: FAIL

@@ -1,4 +1,5 @@
[creating_browsing_context_test_01.html]
expected: TIMEOUT
[first argument: absolute url]
expected: FAIL
expected: TIMEOUT

@@ -1,16 +1,20 @@
[supported-elements.html]
expected: TIMEOUT
[Contenteditable element should support autofocus]
expected: FAIL

[Element with tabindex should support autofocus]
expected: FAIL

[Host element with delegatesFocus including no focusable descendants should be skipped]
expected: FAIL
expected: NOTRUN

[Area element should support autofocus]
expected: FAIL
expected: NOTRUN

[Host element with delegatesFocus should support autofocus]
expected: FAIL
expected: NOTRUN

[Non-HTMLElement should not support autofocus]
expected: TIMEOUT

@@ -1,6 +1,6 @@
[iframe_sandbox_popups_nonescaping-3.html]
type: testharness
expected: CRASH
expected: TIMEOUT
[Check that popups from a sandboxed iframe do not escape the sandbox]
expected: FAIL
expected: NOTRUN

Expand Up @@ -14,3 +14,9 @@
[Successful SubmitEvent constructor; missing dictionary]
expected: FAIL

[Successful SubmitEvent constructor; null/undefined submitter]
expected: FAIL

[Successful SubmitEvent constructor; null/undefined dictionary]
expected: FAIL

@@ -1,4 +1,5 @@
[crossorigin-sandwich-TAO.sub.html]
expected: ERROR
[There should be one entry.]
expected: FAIL

Expand Down
5 changes: 0 additions & 5 deletions tests/wpt/metadata/webmessaging/without-ports/017.html.ini

This file was deleted.

@@ -1,5 +1,4 @@
[005.html]
expected: ERROR
[dedicated worker in shared worker in dedicated worker]
expected: FAIL

Expand Up @@ -4,12 +4,6 @@ test(() => {
let button = document.createElement('button');
let typeError = new TypeError();
assert_throws(typeError, () => { new SubmitEvent() }, '0 arguments');
assert_throws(typeError, () => { new SubmitEvent('bar', button) }, '1 invalid arguments');
assert_throws(typeError, () => { new SubmitEvent(button, button) }, '2 invalid arguments');
assert_throws(typeError, () => { new SubmitEvent('foo', null) }, 'Null dictionary');
assert_throws(typeError, () => { new SubmitEvent('foo', undefined) }, 'Undefined dictionary');
assert_throws(typeError, () => { new SubmitEvent('foo', { submitter: null }) }, 'Null submitter');
assert_throws(typeError, () => { new SubmitEvent('foo', { submitter: undefined }) }, 'Undefined submitter');
assert_throws(typeError, () => { new SubmitEvent('foo', { submitter: 'bar' }) }, 'Wrong type of submitter');
}, 'Failing SubmitEvent constructor');

Expand All @@ -21,16 +15,28 @@ test(() => {
}, 'Successful SubmitEvent constructor');

test(() => {
let event = new SubmitEvent('bar', { submitter: null});
assert_equals(event.submitter, null);
}, 'Successful SubmitEvent constructor; null submitter');
let event1 = new SubmitEvent('bar', {submitter: null});
assert_equals(event1.submitter, null);
let event2 = new SubmitEvent('baz', {submitter: undefined});
assert_equals(event2.submitter, null);
}, 'Successful SubmitEvent constructor; null/undefined submitter');

test(() => {
let event = new SubmitEvent('baz', {});
assert_equals(event.submitter, null);
let event1 = new SubmitEvent('bar', null);
assert_equals(event1.submitter, null);
let event2 = new SubmitEvent('baz', undefined);
assert_equals(event2.submitter, null);
}, 'Successful SubmitEvent constructor; null/undefined dictionary');

test(() => {
let event1 = new SubmitEvent('bar', {});
assert_equals(event1.submitter, null);
let button = document.createElement('button');
let event2 = new SubmitEvent("bax", button);
assert_equals(event2.submitter, null);
}, 'Successful SubmitEvent constructor; empty dictionary');

test(() => {
let event = new SubmitEvent('baz');
let event = new SubmitEvent('bar');
assert_equals(event.submitter, null);
}, 'Successful SubmitEvent constructor; missing dictionary');

0 comments on commit c9d9c98

Please sign in to comment.