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

Unified Diff: tests/html/audiocontext_test.dart

Issue 14365027: Fix audiocontext test (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 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 | « no previous file | no next file » | 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 bcf60a3cd99c42cd1e4d732971c7d2cf860c4cf9..db0a2de46f5393cee952684fd6a3c5715e21764c 100644
--- a/tests/html/audiocontext_test.dart
+++ b/tests/html/audiocontext_test.dart
@@ -2,6 +2,7 @@ library AudioContextTest;
import '../../pkg/unittest/lib/unittest.dart';
import '../../pkg/unittest/lib/html_individual_config.dart';
import 'dart:html';
+import 'dart:typeddata';
import 'dart:web_audio';
import 'dart:async';
@@ -30,12 +31,12 @@ main() {
test('createBuffer', () {
if(AudioContext.supported) {
var ctx = new AudioContext();
- ArrayBufferView arrayBufferView = new Float32Array.fromList([]);
+ Float32List view = new Float32List.fromList([]);
try {
// Test that native overload is chosen correctly. Native
// implementation should throw 'SyntaxError' DomException because the
// buffer is empty.
- AudioBuffer buffer = ctx.createBuffer(arrayBufferView.buffer, false);
+ AudioBuffer buffer = ctx.createBuffer(view.buffer, false);
} catch (e) {
expect(e.name, DomException.SYNTAX);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698