зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1148354 - Remove the tests related to the doppler effect from mochitests. r=karlt
MozReview-Commit-ID: 7DZy9ySQrTc --HG-- extra : rebase_source : 38a20e4411807bd0554b9bc26fd44ebfee18c090
This commit is contained in:
Родитель
5a67ba5c59
Коммит
55c4d21c1e
|
@ -93,7 +93,6 @@ tags=capturestream
|
|||
[test_bug867089.html]
|
||||
[test_bug867104.html]
|
||||
[test_bug867174.html]
|
||||
[test_bug867203.html]
|
||||
[test_bug875221.html]
|
||||
[test_bug875402.html]
|
||||
[test_bug894150.html]
|
||||
|
|
|
@ -13,18 +13,11 @@ SimpleTest.waitForExplicitFinish();
|
|||
addLoadEvent(function() {
|
||||
var context = new AudioContext();
|
||||
ok("listener" in context, "AudioContext.listener should exist");
|
||||
ok(Math.abs(context.listener.dopplerFactor - 1.0) < 1e-4, "Correct default doppler factor");
|
||||
ok(Math.abs(context.listener.speedOfSound - 343.3) < 1e-4, "Correct default speed of sound value");
|
||||
context.listener.dopplerFactor = 0.5;
|
||||
ok(Math.abs(context.listener.dopplerFactor - 0.5) < 1e-4, "The doppler factor value can be changed");
|
||||
context.listener.speedOfSound = 400;
|
||||
ok(Math.abs(context.listener.speedOfSound - 400) < 1e-4, "The speed of sound can be changed");
|
||||
// The values set by the following cannot be read from script, but the
|
||||
// implementation is simple enough, so we just make sure that nothing throws.
|
||||
with (context.listener) {
|
||||
setPosition(1.0, 1.0, 1.0);
|
||||
setOrientation(1.0, 1.0, 1.0, 1.0, 1.0, 1.0);
|
||||
setVelocity(0.5, 1.0, 1.5);
|
||||
}
|
||||
SimpleTest.finish();
|
||||
});
|
||||
|
|
|
@ -1,34 +0,0 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<title>Crashtest for bug 867203</title>
|
||||
<script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
|
||||
</head>
|
||||
<body>
|
||||
<pre id="test">
|
||||
<script class="testbody" type="text/javascript">
|
||||
|
||||
SimpleTest.waitForExplicitFinish();
|
||||
addLoadEvent(function() {
|
||||
var ctx = new AudioContext();
|
||||
|
||||
var panner1 = ctx.createPanner();
|
||||
panner1.setVelocity(1, 1, 1);
|
||||
ctx.listener.setVelocity(1, 1, 1);
|
||||
(function() {
|
||||
ctx.createBufferSource().connect(panner1);
|
||||
})();
|
||||
SpecialPowers.forceGC();
|
||||
SpecialPowers.forceCC();
|
||||
ctx.createPanner();
|
||||
|
||||
ok(true, "We did not crash.");
|
||||
SimpleTest.finish();
|
||||
});
|
||||
|
||||
|
||||
</script>
|
||||
</pre>
|
||||
</body>
|
||||
</html>
|
|
@ -55,8 +55,6 @@ addLoadEvent(function() {
|
|||
near(panner.orientationY.value, 1, "setOrientation sets AudioParam properly");
|
||||
near(panner.orientationZ.value, 0, "setOrientation sets AudioParam properly");
|
||||
|
||||
panner.setVelocity(1, 1, 1);
|
||||
|
||||
source.start(0);
|
||||
SimpleTest.executeSoon(function() {
|
||||
source.stop(0);
|
||||
|
|
Загрузка…
Ссылка в новой задаче