mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 854741 - Change the parameter to createDelay to be in seconds, not minutes; r=roc
This commit is contained in:
parent
d30609e004
commit
a01b9d645e
@ -108,7 +108,7 @@ AudioContext::CreateGain()
|
||||
already_AddRefed<DelayNode>
|
||||
AudioContext::CreateDelay(double aMaxDelayTime, ErrorResult& aRv)
|
||||
{
|
||||
if (aMaxDelayTime > 0. && aMaxDelayTime < 3.) {
|
||||
if (aMaxDelayTime > 0. && aMaxDelayTime < 180.) {
|
||||
nsRefPtr<DelayNode> delayNode = new DelayNode(this, aMaxDelayTime);
|
||||
return delayNode.forget();
|
||||
}
|
||||
|
@ -57,7 +57,7 @@ addLoadEvent(function() {
|
||||
context.createDelay(0);
|
||||
}, DOMException.NOT_SUPPORTED_ERR);
|
||||
expectException(function() {
|
||||
context.createDelay(3);
|
||||
context.createDelay(180);
|
||||
}, DOMException.NOT_SUPPORTED_ERR);
|
||||
expectTypeError(function() {
|
||||
context.createDelay(NaN);
|
||||
|
Loading…
Reference in New Issue
Block a user