Bug 1148354 - Add a web platform test to test for the non existence of removed methods. r=karlt
☠☠ backed out by 060df6ed6995 ☠ ☠
authorPaul Adenot <paul@paul.cx>
Wed, 18 Jul 2018 21:18:28 +0200
changeset 427483 97d89ba5f93d
parent 427482 d9174c023701
child 427484 0ae34db4c34f
push id66647
push userpaul@paul.cx
push dateFri, 20 Jul 2018 12:50:57 +0000
treeherderautoland@97d89ba5f93d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskarlt
bugs1148354
milestone63.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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>