зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1148354 - Add a web platform test to test for the non existence of removed methods. r=karlt
MozReview-Commit-ID: 6DoZQJN8JRA --HG-- extra : rebase_source : 0fc73252ef8e2387e3acc4054c8bffb840f411b1
This commit is contained in:
Родитель
55c4d21c1e
Коммит
f80d9dfb86
|
@ -12,4 +12,18 @@
|
|||
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>
|
||||
|
|
Загрузка…
Ссылка в новой задаче