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/expect/lib/html/mediasource_test.js

Issue 2128353002: Check in codegen test expectations. (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 4 years, 5 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 dart_library.library('lib/html/mediasource_test', null, /* Imports */[
2 'dart_sdk',
3 'unittest'
4 ], function load__mediasource_test(exports, dart_sdk, unittest) {
5 'use strict';
6 const core = dart_sdk.core;
7 const html = dart_sdk.html;
8 const dart = dart_sdk.dart;
9 const dartx = dart_sdk.dartx;
10 const html_individual_config = unittest.html_individual_config;
11 const src__matcher__core_matchers = unittest.src__matcher__core_matchers;
12 const unittest$ = unittest.unittest;
13 const src__matcher__expect = unittest.src__matcher__expect;
14 const mediasource_test = Object.create(null);
15 let dynamicTobool = () => (dynamicTobool = dart.constFn(dart.definiteFunctionT ype(core.bool, [dart.dynamic])))();
16 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT ype(dart.dynamic, [])))();
17 let VoidTovoid = () => (VoidTovoid = dart.constFn(dart.definiteFunctionType(da rt.void, [])))();
18 mediasource_test.main = function() {
19 html_individual_config.useHtmlIndividualConfiguration();
20 let isMediaSource = src__matcher__core_matchers.predicate(dart.fn(x => html. MediaSource.is(x), dynamicTobool()), 'is a MediaSource');
21 unittest$.group('supported', dart.fn(() => {
22 unittest$.test('supported', dart.fn(() => {
23 src__matcher__expect.expect(html.MediaSource[dartx.supported], true);
24 }, VoidTodynamic()));
25 }, VoidTovoid()));
26 unittest$.group('functional', dart.fn(() => {
27 let source = null;
28 if (dart.test(html.MediaSource[dartx.supported])) {
29 source = html.MediaSource.new();
30 }
31 unittest$.test('constructorTest', dart.fn(() => {
32 if (dart.test(html.MediaSource[dartx.supported])) {
33 src__matcher__expect.expect(source, src__matcher__core_matchers.isNotN ull);
34 src__matcher__expect.expect(source, isMediaSource);
35 }
36 }, VoidTodynamic()));
37 unittest$.test('media types', dart.fn(() => {
38 if (dart.test(html.MediaSource[dartx.supported])) {
39 src__matcher__expect.expect(html.MediaSource.isTypeSupported('text/htm l'), false);
40 src__matcher__expect.expect(html.MediaSource.isTypeSupported('video/we bm;codecs="vp8,vorbis"'), true);
41 }
42 }, VoidTodynamic()));
43 }, VoidTovoid()));
44 };
45 dart.fn(mediasource_test.main, VoidTodynamic());
46 // Exports:
47 exports.mediasource_test = mediasource_test;
48 });
OLDNEW
« no previous file with comments | « test/codegen/expect/lib/html/media_stream_test.js ('k') | test/codegen/expect/lib/html/messageevent_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698