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

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

Issue 1930043002: Add all dart:html tests from the sdk to test/codegen. (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: ptal Created 4 years, 7 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
(Empty)
1 library mediasource_test;
2
3 import 'package:unittest/unittest.dart';
4 import 'package:unittest/html_individual_config.dart';
5 import 'dart:html';
6 import 'dart:typed_data';
7 import 'dart:async';
8
9 main() {
10 useHtmlIndividualConfiguration();
11
12 var isMediaSource = predicate((x) => x is MediaSource, 'is a MediaSource');
13
14 group('supported', () {
15 test('supported', () {
16 expect(MediaSource.supported, true);
17 });
18 });
19
20 // TODO(alanknight): Actually exercise this, right now the tests are trivial.
21 group('functional', () {
22 var source;
23 if (MediaSource.supported) {
24 source = new MediaSource();
25 }
26
27 test('constructorTest', () {
28 if (MediaSource.supported) {
29 expect(source, isNotNull);
30 expect(source, isMediaSource);
31 }
32 });
33
34 test('media types', () {
35 if (MediaSource.supported) {
36 expect(MediaSource.isTypeSupported('text/html'), false);
37 expect(MediaSource.isTypeSupported('video/webm;codecs="vp8,vorbis"'),
38 true);
39 }
40 });
41 });
42 }
OLDNEW
« no previous file with comments | « test/codegen/lib/html/media_stream_test.dart ('k') | test/codegen/lib/html/messageevent_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698