| Index: tests/html/audiocontext_test.dart
|
| diff --git a/tests/html/audiocontext_test.dart b/tests/html/audiocontext_test.dart
|
| index 68c2af9a9fdade2d3b71fbf0c6b56ea036c7a418..3f84f8e29ca4767d558b03db7e21696b0acdaff6 100644
|
| --- a/tests/html/audiocontext_test.dart
|
| +++ b/tests/html/audiocontext_test.dart
|
| @@ -1,4 +1,5 @@
|
| library AudioContextTest;
|
| +
|
| import 'package:unittest/unittest.dart';
|
| import 'package:unittest/html_individual_config.dart';
|
| import 'dart:html';
|
| @@ -7,7 +8,6 @@ import 'dart:web_audio';
|
| import 'dart:async';
|
|
|
| main() {
|
| -
|
| useHtmlIndividualConfiguration();
|
|
|
| var isAudioContext =
|
| @@ -24,16 +24,16 @@ main() {
|
| if (AudioContext.supported) {
|
| context = new AudioContext();
|
| }
|
| -
|
| +
|
| test('constructorTest', () {
|
| - if(AudioContext.supported) {
|
| + if (AudioContext.supported) {
|
| expect(context, isNotNull);
|
| expect(context, isAudioContext);
|
| }
|
| });
|
|
|
| test('audioRenames', () {
|
| - if(AudioContext.supported) {
|
| + if (AudioContext.supported) {
|
| GainNode gainNode = context.createGain();
|
| gainNode.connectNode(context.destination);
|
| expect(gainNode is GainNode, isTrue);
|
| @@ -43,8 +43,8 @@ main() {
|
| expect(context.createChannelSplitter() is AudioNode, isTrue);
|
| expect(context.createOscillator() is OscillatorNode, isTrue);
|
| expect(context.createPanner() is PannerNode, isTrue);
|
| - expect(context.createScriptProcessor(4096) is ScriptProcessorNode,
|
| - isTrue);
|
| + expect(
|
| + context.createScriptProcessor(4096) is ScriptProcessorNode, isTrue);
|
| }
|
| });
|
|
|
| @@ -69,7 +69,7 @@ main() {
|
| */
|
|
|
| test('oscillatorTypes', () {
|
| - if(AudioContext.supported) {
|
| + if (AudioContext.supported) {
|
| OscillatorNode oscillator = context.createOscillator();
|
| oscillator.connectNode(context.destination);
|
|
|
|
|