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 738a0b8234d85f8875f6d728b652d6b049f2c901
parent 820845 a9937e58b3e54f1306eb6417244694920cb4532d
child 820886 e06b7a635e3c2e882492efb27f1e26e3ec392263
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>