Bug 1666830 [wpt PR 25717] - Fix tests that return values to async_test in encrypted-media/, a=testonly

Automatic update from web-platform-tests
Fix tests that return values to async_test in encrypted-media/ (#25717)

In both cases here, the test was correctly written for async_test, they
just didn't need to return the promise they used as part of the test
flow.

See https://github.com/web-platform-tests/wpt/issues/21435
--

wpt-commits: d0804458e8797790f61efc73ab2446c6e507a30f
wpt-pr: 25717
This commit is contained in:
Stephen McGruer 2020-09-24 19:11:53 +00:00 коммит произвёл moz-wptsync-bot
Родитель c8bf0aa93f
Коммит 54a933ece3
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -25,7 +25,7 @@ function runTest(config) {
};
waitForEventAndRunStep('encrypted', video, onEncrypted, test);
return testmediasource(config).then(function (source) {
testmediasource(config).then(function (source) {
mediaSource = source;
config.video.src = URL.createObjectURL(mediaSource);
return source.done;

Просмотреть файл

@ -39,7 +39,7 @@ function runTest(config)
};
// Create a MediaKeys object and assign it to video.
return navigator.requestMediaKeySystemAccess(keysystem, [configuration]).then(test.step_func(function (access) {
navigator.requestMediaKeySystemAccess(keysystem, [configuration]).then(test.step_func(function (access) {
assert_equals(access.keySystem, keysystem);
return access.createMediaKeys();
})).then(test.step_func(function (result) {