Bug 1148354 - Add a web platform test to test for the non existence of removed methods. r=karlt

MozReview-Commit-ID: 6DoZQJN8JRA

--HG--
extra : rebase_source : a49a665c5cd2873048943f68281f1c93af25a127
This commit is contained in:
Paul Adenot 2018-07-18 21:18:28 +02:00
Родитель c0f386b1a6
Коммит 0702181207
1 изменённых файлов: 14 добавлений и 0 удалений

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

@ -12,4 +12,18 @@
assert_false(name in window);
}, name + " interface should not exist");
});
[
"dopplerFactor",
"speedOfSound",
"setVelocity"
].forEach(name => {
test(function() {
assert_false(name in AudioListener.prototype);
}, name + " member should not exist on the AudioListener.");
});
test(function() {
assert_false("setVelocity" in PannerNode.prototype);
}, "setVelocity should not exist on PannerNodes.");
</script>