Bug 1148354 - Add a web platform test to test for the non existence of removed methods. r=karlt
authorPaul Adenot <paul@paul.cx>
Wed, 18 Jul 2018 21:18:28 +0200
changeset 821127 5a481b37f45fb214cfe17d059aec5e0df6f5a113
parent 821126 8b38f23b507f7d82942dff6dcba5dcf2dfc44845
child 821128 11b4729e92ecbf99a27d956321295e6a1309ca05
push id117018
push userbmo:sfoster@mozilla.com
push dateSat, 21 Jul 2018 04:05:10 +0000
reviewerskarlt
bugs1148354
milestone63.0a1
Bug 1148354 - Add a web platform test to test for the non existence of removed methods. r=karlt MozReview-Commit-ID: 6DoZQJN8JRA
testing/web-platform/tests/webaudio/historical.html
--- 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>