summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/webaudio/the-audio-api/the-audionode-interface/audionode-connect-return-value.html
blob: 3af44fb7afcad39c9c3dc3dbc4f82cee38294b79 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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>