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

Unified Diff: test/codegen/expect/language/regress_10996_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/language/reg_exp_test.js ('k') | test/codegen/expect/language/regress_11010_test.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen/expect/language/regress_10996_test.js
diff --git a/test/codegen/expect/language/regress_10996_test.js b/test/codegen/expect/language/regress_10996_test.js
new file mode 100644
index 0000000000000000000000000000000000000000..12e0db44fb70601661bf249fac2acb39d8152def
--- /dev/null
+++ b/test/codegen/expect/language/regress_10996_test.js
@@ -0,0 +1,39 @@
+dart_library.library('language/regress_10996_test', null, /* Imports */[
+ 'dart_sdk',
+ 'expect'
+], function load__regress_10996_test(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 regress_10996_test = Object.create(null);
+ const regress_10996_lib = Object.create(null);
+ let dynamic__Todynamic = () => (dynamic__Todynamic = dart.constFn(dart.definiteFunctionType(dart.dynamic, [dart.dynamic], [dart.dynamic])))();
+ let dynamic__Todynamic$ = () => (dynamic__Todynamic$ = dart.constFn(dart.definiteFunctionType(dart.dynamic, [dart.dynamic], {d: dart.dynamic})))();
+ let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionType(dart.dynamic, [])))();
+ regress_10996_test.foo = function(a, b) {
+ if (b === void 0) b = null;
+ return dart.dsend(dart.dsend(dart.dsend(a, '+', b), '+', regress_10996_lib.a), '+', regress_10996_lib.b);
+ };
+ dart.fn(regress_10996_test.foo, dynamic__Todynamic());
+ regress_10996_test.bar = function(c, opts) {
+ let d = opts && 'd' in opts ? opts.d : null;
+ return dart.dsend(dart.dsend(dart.dsend(c, '+', d), '+', regress_10996_lib.c), '+', regress_10996_lib.d);
+ };
+ dart.fn(regress_10996_test.bar, dynamic__Todynamic$());
+ regress_10996_test.main = function() {
+ expect$.Expect.equals(1 + 2 + 3 + 4, regress_10996_test.foo(1, 2));
+ expect$.Expect.equals(7 + 8 + 3 + 4, regress_10996_test.foo(7, 8));
+ expect$.Expect.equals(3 + 4 + 5 + 6, regress_10996_test.bar(3, {d: 4}));
+ expect$.Expect.equals(7 + 8 + 5 + 6, regress_10996_test.bar(7, {d: 8}));
+ };
+ dart.fn(regress_10996_test.main, VoidTodynamic());
+ regress_10996_lib.a = 3;
+ regress_10996_lib.b = 4;
+ regress_10996_lib.c = 5;
+ regress_10996_lib.d = 6;
+ // Exports:
+ exports.regress_10996_test = regress_10996_test;
+ exports.regress_10996_lib = regress_10996_lib;
+});
« no previous file with comments | « test/codegen/expect/language/reg_exp_test.js ('k') | test/codegen/expect/language/regress_11010_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698