blob: 360f9bc772f95be2a9958d3718fba47ae0e38724 [file] [log] [blame]
#library('AudioBufferSourceNodeTest');
#import('../../pkg/unittest/unittest.dart');
#import('../../pkg/unittest/html_config.dart');
#import('dart:html');
main() {
useHtmlConfiguration();
test('createBuffer', () {
var ctx = new AudioContext();
AudioBufferSourceNode node = ctx.createBufferSource();
node.start(ctx.currentTime, 0, 2);
node.stop(ctx.currentTime + 2);
expect(node is AudioBufferSourceNode, isTrue);
});
}