| Index: tests/html/audiobuffersourcenode_test.dart
|
| diff --git a/tests/html/audiobuffersourcenode_test.dart b/tests/html/audiobuffersourcenode_test.dart
|
| index 3e19ba6d6e3408ea73908533f8d21feeff9b8433..10fecc9af1861cef9f714ac717ef0b306c837a7c 100644
|
| --- a/tests/html/audiobuffersourcenode_test.dart
|
| +++ b/tests/html/audiobuffersourcenode_test.dart
|
| @@ -1,17 +1,27 @@
|
| library AudioBufferSourceNodeTest;
|
| import '../../pkg/unittest/lib/unittest.dart';
|
| -import '../../pkg/unittest/lib/html_config.dart';
|
| +import '../../pkg/unittest/lib/html_individual_config.dart';
|
| import 'dart:web_audio';
|
|
|
| main() {
|
|
|
| - useHtmlConfiguration();
|
| + useHtmlIndividualConfiguration();
|
|
|
| - 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);
|
| + group('supported', () {
|
| + test('supported', () {
|
| + expect(AudioContext.supported, true);
|
| + });
|
| + });
|
| +
|
| + group('functional', () {
|
| + test('createBuffer', () {
|
| + if(AudioContext.supported) {
|
| + var ctx = new AudioContext();
|
| + AudioBufferSourceNode node = ctx.createBufferSource();
|
| + node.start(ctx.currentTime, 0, 2);
|
| + node.stop(ctx.currentTime + 2);
|
| + expect(node is AudioBufferSourceNode, isTrue);
|
| + }
|
| + });
|
| });
|
| }
|
|
|