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

Unified 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen/expect/lib/html/audiobuffersourcenode_test.js
diff --git a/test/codegen/expect/lib/html/audiobuffersourcenode_test.js b/test/codegen/expect/lib/html/audiobuffersourcenode_test.js
new file mode 100644
index 0000000000000000000000000000000000000000..1f5ae10a830c9ccd6695facb45fe88b16fe8c8a1
--- /dev/null
+++ b/test/codegen/expect/lib/html/audiobuffersourcenode_test.js
@@ -0,0 +1,39 @@
+dart_library.library('lib/html/audiobuffersourcenode_test', null, /* Imports */[
+ 'dart_sdk',
+ 'unittest'
+], function load__audiobuffersourcenode_test(exports, dart_sdk, unittest) {
+ 'use strict';
+ const core = dart_sdk.core;
+ const web_audio = dart_sdk.web_audio;
+ const dart = dart_sdk.dart;
+ const dartx = dart_sdk.dartx;
+ const html_individual_config = unittest.html_individual_config;
+ const unittest$ = unittest.unittest;
+ const src__matcher__expect = unittest.src__matcher__expect;
+ const src__matcher__core_matchers = unittest.src__matcher__core_matchers;
+ const audiobuffersourcenode_test = Object.create(null);
+ let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionType(dart.dynamic, [])))();
+ let VoidTovoid = () => (VoidTovoid = dart.constFn(dart.definiteFunctionType(dart.void, [])))();
+ audiobuffersourcenode_test.main = function() {
+ html_individual_config.useHtmlIndividualConfiguration();
+ unittest$.group('supported', dart.fn(() => {
+ unittest$.test('supported', dart.fn(() => {
+ src__matcher__expect.expect(web_audio.AudioContext[dartx.supported], true);
+ }, VoidTodynamic()));
+ }, VoidTovoid()));
+ unittest$.group('functional', dart.fn(() => {
+ unittest$.test('createBuffer', dart.fn(() => {
+ if (dart.test(web_audio.AudioContext[dartx.supported])) {
+ let ctx = web_audio.AudioContext.new();
+ let node = ctx[dartx.createBufferSource]();
+ src__matcher__expect.expect(web_audio.AudioBufferSourceNode.is(node), src__matcher__core_matchers.isTrue);
+ node[dartx.start](ctx[dartx.currentTime], 0, 2);
+ src__matcher__expect.expect(web_audio.AudioBufferSourceNode.is(node), src__matcher__core_matchers.isTrue);
+ }
+ }, VoidTodynamic()));
+ }, VoidTovoid()));
+ };
+ dart.fn(audiobuffersourcenode_test.main, VoidTodynamic());
+ // Exports:
+ exports.audiobuffersourcenode_test = audiobuffersourcenode_test;
+});
« 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