Auto merge of #21883 - servo-wpt-sync:wpt_update_06-10-2018, r=jdm

Sync WPT with upstream (06-10-2018)

Automated downstream sync of changes from upstream as of 06-10-2018.
[no-wpt-sync]

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/21883)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2018-10-07 08:36:07 -04:00 committed by GitHub
commit d048aa9c51
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 45 additions and 29 deletions

View file

@ -619905,7 +619905,7 @@
"testharness" "testharness"
], ],
"infrastructure/testdriver/bless.html": [ "infrastructure/testdriver/bless.html": [
"feb444f89d91088b51e04b610dd642c00814c3b4", "b8a1c2e7d6000050351453a14a8bfb80d8af0c76",
"testharness" "testharness"
], ],
"infrastructure/testdriver/click.html": [ "infrastructure/testdriver/click.html": [
@ -665061,7 +665061,7 @@
"testharness" "testharness"
], ],
"webstorage/event_initstorageevent.html": [ "webstorage/event_initstorageevent.html": [
"656fc351da3bbb75b7d025e9e02d05f02880e7d5", "2fe893143614ca6d44becd027f6befba82e18ad1",
"testharness" "testharness"
], ],
"webstorage/event_local_key.html": [ "webstorage/event_local_key.html": [

View file

@ -0,0 +1,4 @@
[traverse_the_history_1.html]
[Multiple history traversals from the same task]
expected: FAIL

View file

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

View file

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

View file

@ -0,0 +1,10 @@
[non-active-document.html]
[DOMParser]
expected: FAIL
[createHTMLDocument]
expected: FAIL
[<template>]
expected: FAIL

View file

@ -1,4 +0,0 @@
[DOMContentLoaded-defer.html]
[The end: DOMContentLoaded and defer scripts]
expected: FAIL

View file

@ -11,10 +11,16 @@
[response.formData() with input: &&&a=b&&&&c=d&] [response.formData() with input: &&&a=b&&&&c=d&]
expected: FAIL expected: FAIL
[request.formData() with input: &&&a=b&&&&c=d&] [request.formData() with input: _charset_=windows-1252&test=%C2x]
expected: FAIL expected: FAIL
[request.formData() with input: _charset_=windows-1252&test=%C2x] [response.formData() with input: a=b&c=d&]
expected: FAIL
[request.formData() with input: a=b&c=d]
expected: FAIL
[request.formData() with input: a=b&c=d&]
expected: FAIL expected: FAIL
@ -25,15 +31,12 @@
[response.formData() with input: _charset_=windows-1252&test=%C2x] [response.formData() with input: _charset_=windows-1252&test=%C2x]
expected: FAIL expected: FAIL
[response.formData() with input: a&b&c] [response.formData() with input: a=b&c=d&]
expected: FAIL expected: FAIL
[request.formData() with input: &&&a=b&&&&c=d&] [response.formData() with input: a=b&c=d]
expected: FAIL expected: FAIL
[request.formData() with input: _charset_=windows-1252&test=%C2x] [request.formData() with input: a=b&c=d&]
expected: FAIL
[request.formData() with input: a=b&c=d]
expected: FAIL expected: FAIL

View file

@ -1,4 +1,5 @@
[realtimeanalyser-fft-scaling.html] [realtimeanalyser-fft-scaling.html]
expected: TIMEOUT
[X 2048-point FFT peak position is not equal to 64. Got 0.] [X 2048-point FFT peak position is not equal to 64. Got 0.]
expected: FAIL expected: FAIL

View file

@ -18,16 +18,26 @@ promise_test(() => {
// activation concerns the interaction between iframe elements and their parent // activation concerns the interaction between iframe elements and their parent
// browsing contexts [1]. Because testdriver.js currently cannot operate within // browsing contexts [1]. Because testdriver.js currently cannot operate within
// an iframe, the standard requirement cannot be used to verify the correctness // an iframe, the standard requirement cannot be used to verify the correctness
// of the `bless` method. Instead, rely on the non-standard restriction on // of the `bless` method. Instead, rely on the optional behavior of early exit
// unattended media playback. Browsers which do not implement such a // and rejecting in `video.play()` if the media is not "allowed to play". [2]
// restriction will pass this test spuriously. // Browsers which don't implement this will pass this test spuriously.
// //
// [1] https://html.spec.whatwg.org/multipage/origin.html#attr-iframe-sandbox-allow-top-navigation-by-user-activation // [1] https://html.spec.whatwg.org/multipage/origin.html#attr-iframe-sandbox-allow-top-navigation-by-user-activation
promise_test(() => { // [2] https://html.spec.whatwg.org/multipage/media.html#allowed-to-play
promise_test(t => {
const video = document.createElement('video'); const video = document.createElement('video');
video.setAttribute('src', '/media/counting.ogv');
document.body.appendChild(video); document.body.appendChild(video);
return test_driver.bless('start video playback', () => video.play()) t.add_cleanup(() => video.remove());
return test_driver.bless('start video playback', () => {
// `paused` changes before `play()` returns when "allowed to play", so the
// promise, if any, is ignored.
assert_true(video.paused);
const playPromise = video.play();
assert_false(video.paused);
if (playPromise) {
playPromise.catch(() => {});
}
});
}, 'user activation'); }, 'user activation');
promise_test(() => { promise_test(() => {

View file

@ -64,7 +64,7 @@
assert_equals(event.key, null, 'event.key'); assert_equals(event.key, null, 'event.key');
assert_equals(event.oldValue, null, 'event.oldValue'); assert_equals(event.oldValue, null, 'event.oldValue');
assert_equals(event.newValue, null, 'event.newValue'); assert_equals(event.newValue, null, 'event.newValue');
assert_equals(event.url, 'undefined', 'event.url'); assert_equals(event.url, '', 'event.url');
assert_equals(event.storageArea, null, 'event.storageArea'); assert_equals(event.storageArea, null, 'event.storageArea');
}, 'initStorageEvent with 8 undefined arguments'); }, 'initStorageEvent with 8 undefined arguments');
</script> </script>