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

Unified Diff: test/codegen/expect/language/argument_definition_test_none_multi.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
Index: test/codegen/expect/language/argument_definition_test_none_multi.js
diff --git a/test/codegen/expect/language/argument_definition_test_none_multi.js b/test/codegen/expect/language/argument_definition_test_none_multi.js
new file mode 100644
index 0000000000000000000000000000000000000000..e48f52e9d4a54d749ee5d0d3f09c6bf7745e6cdf
--- /dev/null
+++ b/test/codegen/expect/language/argument_definition_test_none_multi.js
@@ -0,0 +1,25 @@
+dart_library.library('language/argument_definition_test_none_multi', null, /* Imports */[
+ 'dart_sdk',
+ 'expect'
+], function load__argument_definition_test_none_multi(exports, dart_sdk, expect) {
+ 'use strict';
+ const core = dart_sdk.core;
+ const dart = dart_sdk.dart;
+ const dartx = dart_sdk.dartx;
+ const expect$ = expect.expect;
+ const argument_definition_test_none_multi = Object.create(null);
+ let dynamic__Toint = () => (dynamic__Toint = dart.constFn(dart.definiteFunctionType(core.int, [dart.dynamic], {b: dart.dynamic, c: dart.dynamic})))();
+ let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionType(dart.dynamic, [])))();
+ argument_definition_test_none_multi.test = function(a, opts) {
+ let b = opts && 'b' in opts ? opts.b : null;
+ let c = opts && 'c' in opts ? opts.c : null;
+ return core.int._check(dart.dsend(dart.dsend(a, '+', b), '+', c));
+ };
+ dart.fn(argument_definition_test_none_multi.test, dynamic__Toint());
+ argument_definition_test_none_multi.main = function() {
+ expect$.Expect.equals(6, argument_definition_test_none_multi.test(1, {b: 2, c: 3}));
+ };
+ dart.fn(argument_definition_test_none_multi.main, VoidTodynamic());
+ // Exports:
+ exports.argument_definition_test_none_multi = argument_definition_test_none_multi;
+});
« no previous file with comments | « test/codegen/expect/language/argument_definition_test_01_multi.js ('k') | test/codegen/expect/language/arithmetic2_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698