Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(218)

Unified Diff: tests/html/audiocontext_test.dart

Issue 18277003: "Reverting 24655" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sdk/lib/web_gl/dartium/web_gl_dartium.dart ('k') | tests/html/canvasrenderingcontext2d_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/html/audiocontext_test.dart
diff --git a/tests/html/audiocontext_test.dart b/tests/html/audiocontext_test.dart
index e5b155899c9628cdc6a23d5685e42f967763ac39..de151dca3b35fae9fbdee14a0d85f34694e08934 100644
--- a/tests/html/audiocontext_test.dart
+++ b/tests/html/audiocontext_test.dart
@@ -36,7 +36,7 @@ main() {
// Test that native overload is chosen correctly. Native
// implementation should throw 'SyntaxError' DomException because the
// buffer is empty.
- AudioBuffer buffer = ctx.createBufferFromBuffer(view.buffer, false);
+ AudioBuffer buffer = ctx.createBuffer(view.buffer, false);
} catch (e) {
expect(e.name, DomException.SYNTAX);
}
@@ -47,7 +47,7 @@ main() {
if(AudioContext.supported) {
AudioContext context = new AudioContext();
GainNode gainNode = context.createGain();
- gainNode.connectNode(context.destination);
+ gainNode.connect(context.destination, 0, 0);
expect(gainNode is GainNode, isTrue);
expect(context.createAnalyser() is AnalyserNode, isTrue);
@@ -65,7 +65,7 @@ main() {
var completer = new Completer<bool>();
var context = new AudioContext();
var scriptProcessor = context.createScriptProcessor(1024, 1, 2);
- scriptProcessor.connectNode(context.destination);
+ scriptProcessor.connect(context.destination, 0, 0);
bool alreadyCalled = false;
scriptProcessor.onAudioProcess.listen((event) {
if (!alreadyCalled) {
« no previous file with comments | « sdk/lib/web_gl/dartium/web_gl_dartium.dart ('k') | tests/html/canvasrenderingcontext2d_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698