Bug 1561249 - Check that MediaStream's onactive and oninactive attributes are not supported in WPT. r=jib

Differential Revision: https://phabricator.services.mozilla.com/D35822

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Andreas Pehrson 2019-06-27 01:29:16 +00:00
Родитель 817749cc2a
Коммит 77efe17683
1 изменённых файлов: 10 добавлений и 0 удалений

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

@ -20,4 +20,14 @@ test(() => {
const mediaStream = new MediaStream();
assert_throws(new TypeError(), () => URL.createObjectURL(mediaStream));
}, "Passing MediaStream to URL.createObjectURL() should throw");
test(() => {
const mediaStream = new MediaStream();
assert_false("onactive" in mediaStream);
}, "MediaStream.onactive should not exist");
test(() => {
const mediaStream = new MediaStream();
assert_false("oninactive" in mediaStream);
}, "MediaStream.oninactive should not exist");
</script>