Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / webaudio / audioparam-connect-audioratesignal.html
index fc71988..2a3dfbd 100644 (file)
@@ -85,7 +85,7 @@ function runTest() {
     gainChangingSource.buffer = linearRampBuffer;
 
     // Create a gain node controlling the gain of constantSource and make the connections.
-    var gainNode = context.createGainNode();
+    var gainNode = context.createGain();
 
     // Intrinsic baseline gain of zero.
     gainNode.gain.value = 0;
@@ -98,8 +98,8 @@ function runTest() {
     gainChangingSource.connect(gainNode.gain);
 
     // Start both sources at time 0.
-    constantSource.noteOn(0);
-    gainChangingSource.noteOn(0);
+    constantSource.start(0);
+    gainChangingSource.start(0);
 
     context.oncomplete = checkResult;
     context.startRendering();