mirror of
https://github.com/dart-lang/sdk
synced 2024-09-18 22:11:19 +00:00
17a778c9cb
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>
28 lines
687 B
Dart
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);
|
|
}
|
|
});
|
|
});
|
|
}
|