Bug 1148354 - Add a web platform test to test for the non existence of removed methods. r?karlt draft
authorPaul Adenot <paul@paul.cx>
Wed, 18 Jul 2018 21:18:28 +0200
changeset 820846 738a0b8234d8
parent 820845 a9937e58b3e5
child 820886 e06b7a635e3c
push id116959
push userpaul@paul.cx
push dateFri, 20 Jul 2018 14:21:19 +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>