| OLD | NEW |
| 1 library AudioContextTest; | 1 library AudioContextTest; |
| 2 import 'package:unittest/unittest.dart'; | 2 import 'package:unittest/unittest.dart'; |
| 3 import 'package:unittest/html_individual_config.dart'; | 3 import 'package:unittest/html_individual_config.dart'; |
| 4 import 'dart:html'; | 4 import 'dart:html'; |
| 5 import 'dart:typed_data'; | 5 import 'dart:typed_data'; |
| 6 import 'dart:web_audio'; | 6 import 'dart:web_audio'; |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 | 8 |
| 9 main() { | 9 main() { |
| 10 | 10 |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 | 76 |
| 77 oscillator.type = 'sine'; | 77 oscillator.type = 'sine'; |
| 78 expect(oscillator.type, equals('sine')); | 78 expect(oscillator.type, equals('sine')); |
| 79 | 79 |
| 80 oscillator.type = 'square'; | 80 oscillator.type = 'square'; |
| 81 expect(oscillator.type, equals('square')); | 81 expect(oscillator.type, equals('square')); |
| 82 | 82 |
| 83 oscillator.type = 'triangle'; | 83 oscillator.type = 'triangle'; |
| 84 expect(oscillator.type, equals('triangle')); | 84 expect(oscillator.type, equals('triangle')); |
| 85 | 85 |
| 86 expect(() => oscillator.type = 'somethingUnsupported', throws); | |
| 87 expect(oscillator.type, equals('triangle')); | |
| 88 | |
| 89 expect(() => oscillator.type = 7, throws); | 86 expect(() => oscillator.type = 7, throws); |
| 90 expect(oscillator.type, equals('triangle')); | 87 expect(oscillator.type, equals('triangle')); |
| 91 | 88 |
| 92 expect(() => oscillator.type = ['heap object not a string'], throws); | 89 expect(() => oscillator.type = ['heap object not a string'], throws); |
| 93 expect(oscillator.type, equals('triangle')); | 90 expect(oscillator.type, equals('triangle')); |
| 94 } | 91 } |
| 95 }); | 92 }); |
| 96 }); | 93 }); |
| 97 } | 94 } |
| OLD | NEW |