Bug 1148354 - Add a web platform test to test for the non existence of removed methods. r=karlt
MozReview-Commit-ID: 6DoZQJN8JRA
--- a/testing/web-platform/tests/webaudio/historical.html
+++ b/testing/web-platform/tests/webaudio/historical.html
@@ -7,9 +7,23 @@
"webkitAudioContext",
"webkitAudioPannerNode",
"webkitOfflineAudioContext",
].forEach(name => {
test(function() {
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>