blob: fd79b01b250f87847923087061dd30e47b8cc5e9 [file] [log] [blame]
// @dart = 2.9
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);
}
});
});
}