Update web-platform-tests to revision 4accec3d14ccdc7b170017c0df299b954019f06f

This commit is contained in:
WPT Sync Bot 2019-04-26 23:48:44 -04:00
parent 630cf2745b
commit b30b1992ac
50 changed files with 1015 additions and 760 deletions

View file

@ -425,7 +425,8 @@ function requestViaIframe(url, additionalAttributes) {
false);
return bindEvents2(window, "message", iframe, "error", window, "error")
.then(event => {
assert_equals(event.source, iframe.contentWindow);
if (event.source !== iframe.contentWindow)
return Promise.reject(new Error('Unexpected event.source'));
return event.data;
});
}
@ -570,8 +571,7 @@ function get_worklet(type) {
if (type == 'audio')
return new OfflineAudioContext(2,44100*40,44100).audioWorklet;
assert_unreached('unknown worklet type is passed.');
return undefined;
throw new Error('unknown worklet type is passed.');
}
function requestViaWorklet(type, url) {
@ -599,7 +599,8 @@ function requestViaNavigable(navigableElement, url) {
const promise =
bindEvents2(window, "message", iframe, "error", window, "error")
.then(event => {
assert_equals(event.source, iframe.contentWindow, "event.source");
if (event.source !== iframe.contentWindow)
return Promise.reject(new Error('Unexpected event.source'));
return event.data;
});
navigableElement.click();