Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(49)

Side by Side Diff: pkg/dev_compiler/test/codegen/lib/html/mediasource_test.dart

Issue 2419863002: Remove uses of unittest in the HTML tests where possible. (Closed)
Patch Set: Remove TODO. Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698