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

Side by Side Diff: test/codegen/expect/lib/html/audiobuffersourcenode_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/audiobuffersourcenode_test', null, /* Imports */[
2 'dart_sdk',
3 'unittest'
4 ], function load__audiobuffersourcenode_test(exports, dart_sdk, unittest) {
5 'use strict';
6 const core = dart_sdk.core;
7 const web_audio = dart_sdk.web_audio;
8 const dart = dart_sdk.dart;
9 const dartx = dart_sdk.dartx;
10 const html_individual_config = unittest.html_individual_config;
11 const unittest$ = unittest.unittest;
12 const src__matcher__expect = unittest.src__matcher__expect;
13 const src__matcher__core_matchers = unittest.src__matcher__core_matchers;
14 const audiobuffersourcenode_test = Object.create(null);
15 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT ype(dart.dynamic, [])))();
16 let VoidTovoid = () => (VoidTovoid = dart.constFn(dart.definiteFunctionType(da rt.void, [])))();
17 audiobuffersourcenode_test.main = function() {
18 html_individual_config.useHtmlIndividualConfiguration();
19 unittest$.group('supported', dart.fn(() => {
20 unittest$.test('supported', dart.fn(() => {
21 src__matcher__expect.expect(web_audio.AudioContext[dartx.supported], tru e);
22 }, VoidTodynamic()));
23 }, VoidTovoid()));
24 unittest$.group('functional', dart.fn(() => {
25 unittest$.test('createBuffer', dart.fn(() => {
26 if (dart.test(web_audio.AudioContext[dartx.supported])) {
27 let ctx = web_audio.AudioContext.new();
28 let node = ctx[dartx.createBufferSource]();
29 src__matcher__expect.expect(web_audio.AudioBufferSourceNode.is(node), src__matcher__core_matchers.isTrue);
30 node[dartx.start](ctx[dartx.currentTime], 0, 2);
31 src__matcher__expect.expect(web_audio.AudioBufferSourceNode.is(node), src__matcher__core_matchers.isTrue);
32 }
33 }, VoidTodynamic()));
34 }, VoidTovoid()));
35 };
36 dart.fn(audiobuffersourcenode_test.main, VoidTodynamic());
37 // Exports:
38 exports.audiobuffersourcenode_test = audiobuffersourcenode_test;
39 });
OLDNEW
« no previous file with comments | « test/codegen/expect/lib/html/async_test.js ('k') | test/codegen/expect/lib/html/audiocontext_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698