testing/web-platform/tests/webaudio/historical.html
author Paul Adenot <paul@paul.cx>
Wed, 18 Jul 2018 21:18:28 +0200
changeset 427478 5a481b37f45fb214cfe17d059aec5e0df6f5a113
parent 427475 060df6ed6995bdba888551568560087805b902e4
permissions -rw-r--r--
Bug 1148354 - Add a web platform test to test for the non existence of removed methods. r=karlt MozReview-Commit-ID: 6DoZQJN8JRA

<!doctype html>
<title>Historical Web Audio API features</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
[
  "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>