Update web-platform-tests to revision be5419e845d39089ba6dc338c1bd0fa279108317

This commit is contained in:
Josh Matthews 2018-01-04 13:44:24 -05:00
parent aa199307c8
commit 2b6f573eb5
3440 changed files with 109438 additions and 41750 deletions

View file

@ -74,12 +74,14 @@ function runTest(config,qualifier) {
// Lisen for an event from the new window containing its test assertions
window.addEventListener('message', test.step_func(function(messageEvent) {
messageEvent.data.forEach(test.step_func(function(assertion) {
assert_equals(assertion.actual, assertion.expected, assertion.message);
}));
if (messageEvent.data.testResult) {
messageEvent.data.testResult.forEach(test.step_func(function(assertion) {
assert_equals(assertion.actual, assertion.expected, assertion.message);
}));
win.close();
test.done();
win.close();
test.done();
}
}));
// Delete things which can't be cloned and posted over to the new window
@ -96,7 +98,8 @@ function runTest(config,qualifier) {
return access.createMediaKeys();
}).then(function(mediaKeys) {
_mediaKeys = mediaKeys;
_video.setMediaKeys( mediaKeys );
return _video.setMediaKeys( mediaKeys );
}).then(function() {
_mediaKeySession = _mediaKeys.createSession('persistent-license');
waitForEventAndRunStep('encrypted', _video, onEncrypted, test);
waitForEventAndRunStep('playing', _video, onPlaying, test);