OLD | NEW |
(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 }); |
OLD | NEW |