Bug 1218694 - Test that AudioNode.connect() returns the node connected to. r=smaug

This commit is contained in:
Paul Adenot 2015-10-28 13:54:57 +09:00
parent 2834e84fab
commit 075dde404a
2 changed files with 19 additions and 0 deletions

View File

@ -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"

View File

@ -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>