mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 19:04:45 +00:00
Bug 1218694 - Test that AudioNode.connect() returns the node connected to. r=smaug
--HG-- extra : rebase_source : 8a7e450160512bb0f4f0ed4fb9b5aa7c534c23db
This commit is contained in:
parent
b42848e60e
commit
b53bda208d
@ -26305,6 +26305,10 @@
|
||||
"path": "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",
|
||||
"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