| OLD | NEW |
| 1 library mediasource_test; | |
| 2 | |
| 3 import 'package:unittest/unittest.dart'; | |
| 4 import 'package:unittest/html_individual_config.dart'; | |
| 5 import 'dart:html'; | 1 import 'dart:html'; |
| 6 import 'dart:typed_data'; | 2 import 'dart:typed_data'; |
| 7 import 'dart:async'; | 3 |
| 4 import 'package:expect/minitest.dart'; |
| 8 | 5 |
| 9 main() { | 6 main() { |
| 10 useHtmlIndividualConfiguration(); | |
| 11 | |
| 12 var isMediaSource = predicate((x) => x is MediaSource, 'is a MediaSource'); | 7 var isMediaSource = predicate((x) => x is MediaSource, 'is a MediaSource'); |
| 13 | 8 |
| 14 group('supported', () { | 9 group('supported', () { |
| 15 test('supported', () { | 10 test('supported', () { |
| 16 expect(MediaSource.supported, true); | 11 expect(MediaSource.supported, true); |
| 17 }); | 12 }); |
| 18 }); | 13 }); |
| 19 | 14 |
| 20 // TODO(alanknight): Actually exercise this, right now the tests are trivial. | 15 // TODO(alanknight): Actually exercise this, right now the tests are trivial. |
| 21 group('functional', () { | 16 group('functional', () { |
| (...skipping 11 matching lines...) Expand all Loading... |
| 33 | 28 |
| 34 test('media types', () { | 29 test('media types', () { |
| 35 if (MediaSource.supported) { | 30 if (MediaSource.supported) { |
| 36 expect(MediaSource.isTypeSupported('text/html'), false); | 31 expect(MediaSource.isTypeSupported('text/html'), false); |
| 37 expect(MediaSource.isTypeSupported('video/webm;codecs="vp8,vorbis"'), | 32 expect(MediaSource.isTypeSupported('video/webm;codecs="vp8,vorbis"'), |
| 38 true); | 33 true); |
| 39 } | 34 } |
| 40 }); | 35 }); |
| 41 }); | 36 }); |
| 42 } | 37 } |
| OLD | NEW |