mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1218694 - Test that AudioNode.connect() returns the node connected to. r=smaug
This commit is contained in:
parent
2834e84fab
commit
075dde404a
@ -26305,6 +26305,10 @@
|
|||||||
"path": "webaudio/the-audio-api/the-audioparam-interface/retrospective-setValueAtTime.html",
|
"path": "webaudio/the-audio-api/the-audioparam-interface/retrospective-setValueAtTime.html",
|
||||||
"url": "/webaudio/the-audio-api/the-audioparam-interface/retrospective-setValueAtTime.html"
|
"url": "/webaudio/the-audio-api/the-audioparam-interface/retrospective-setValueAtTime.html"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"path": "webaudio/the-audio-api/the-audionode-interface/audionode-connect-return-value.html",
|
||||||
|
"url": "/webaudio/the-audio-api/the-audionode-interface/audionode-connect-return-value.html"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"path": "webaudio/the-audio-api/the-delaynode-interface/idl-test.html",
|
"path": "webaudio/the-audio-api/the-delaynode-interface/idl-test.html",
|
||||||
"url": "/webaudio/the-audio-api/the-delaynode-interface/idl-test.html"
|
"url": "/webaudio/the-audio-api/the-delaynode-interface/idl-test.html"
|
||||||
|
@ -0,0 +1,15 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<title>Test the return value of connect when connecting two AudioNodes</title>
|
||||||
|
<script src="/resources/testharness.js"></script>
|
||||||
|
<script src="/resources/testharnessreport.js"></script>
|
||||||
|
<script>
|
||||||
|
test(function(t) {
|
||||||
|
var context = new OfflineAudioContext(1, 1, 44100);
|
||||||
|
var g1 = context.createGain();
|
||||||
|
var g2 = context.createGain();
|
||||||
|
var rv = g1.connect(g2);
|
||||||
|
assert_equals(rv, g2);
|
||||||
|
var rv = g1.connect(g2);
|
||||||
|
assert_equals(rv, g2);
|
||||||
|
}, "connect should return the node connected to.");
|
||||||
|
</script>
|
Loading…
Reference in New Issue
Block a user