| OLD | NEW |
| 1 import 'dart:async'; | 1 import 'dart:async'; |
| 2 import 'dart:html'; | 2 import 'dart:html'; |
| 3 import 'dart:typed_data'; | 3 import 'dart:typed_data'; |
| 4 import 'dart:web_audio'; | 4 import 'dart:web_audio'; |
| 5 | 5 |
| 6 import 'package:minitest/minitest.dart'; | 6 import 'package:expect/minitest.dart'; |
| 7 | 7 |
| 8 main() { | 8 main() { |
| 9 var isAudioContext = | 9 var isAudioContext = |
| 10 predicate((x) => x is AudioContext, 'is an AudioContext'); | 10 predicate((x) => x is AudioContext, 'is an AudioContext'); |
| 11 | 11 |
| 12 group('supported', () { | 12 group('supported', () { |
| 13 test('supported', () { | 13 test('supported', () { |
| 14 expect(AudioContext.supported, true); | 14 expect(AudioContext.supported, true); |
| 15 }); | 15 }); |
| 16 }); | 16 }); |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 expect(oscillator.type, equals('triangle')); | 86 expect(oscillator.type, equals('triangle')); |
| 87 | 87 |
| 88 // Firefox does not throw when it receives invalid values; it simply | 88 // Firefox does not throw when it receives invalid values; it simply |
| 89 // ignores them. | 89 // ignores them. |
| 90 //expect(() => oscillator.type = ['heap object not a string'], throws); | 90 //expect(() => oscillator.type = ['heap object not a string'], throws); |
| 91 expect(oscillator.type, equals('triangle')); | 91 expect(oscillator.type, equals('triangle')); |
| 92 } | 92 } |
| 93 }); | 93 }); |
| 94 }); | 94 }); |
| 95 } | 95 } |
| OLD | NEW |