blob: 9c98cf04e29f1c74e0b88f6b36aa8768aa3c9c5a [file] [log] [blame]
import 'dart:web_audio';
import 'package:expect/minitest.dart';
main() {
group('supported', () {
test('supported', () {
expect(AudioContext.supported, isTrue);
});
});
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);
}
});
});
}