Add a web platform test to test for the non existence of removed methods.
bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1148354
gecko-commit: 5a481b37f45fb214cfe17d059aec5e0df6f5a113
gecko-integration-branch: autoland
gecko-reviewers: karlt
diff --git a/webaudio/historical.html b/webaudio/historical.html
index 2407a87..1f3146c 100644
--- a/webaudio/historical.html
+++ b/webaudio/historical.html
@@ -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>