dart-sdk/tests/html/audiobuffersourcenode_test.dart
Terry Lucas 17a778c9cb Changed AudioScheduledSourceNode.start to start2.
Fixes https://github.com/dart-lang/sdk/issues/32624

TBR=kevmoo@google.com

Change-Id: Ied9494a4b9695ae08ff2ef63c43759ea7951e9fa
Reviewed-on: https://dart-review.googlesource.com/47760
Reviewed-by: Terry Lucas <terry@google.com>
Commit-Queue: Terry Lucas <terry@google.com>
2018-03-22 13:18:37 +00:00

28 lines
687 B
Dart

library AudioBufferSourceNodeTest;
import 'package:unittest/unittest.dart';
import 'package:unittest/html_individual_config.dart';
import 'dart:web_audio';
main() {
useHtmlIndividualConfiguration();
group('supported', () {
test('supported', () {
expect(AudioContext.supported, true);
});
});
group('functional', () {
test('createBuffer', () {
if (AudioContext.supported) {
var ctx = new AudioContext();
AudioBufferSourceNode node = ctx.createBufferSource();
expect(node is AudioBufferSourceNode, isTrue);
node.start(ctx.currentTime, 0, 2);
expect(node is AudioBufferSourceNode, isTrue);
}
});
});
}