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

Unified Diff: test/codegen/expect/language/multi_assign_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/mul_recipr_test.js ('k') | test/codegen/expect/language/multi_pass2_test.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen/expect/language/multi_assign_test.js
diff --git a/test/codegen/expect/language/multi_assign_test.js b/test/codegen/expect/language/multi_assign_test.js
new file mode 100644
index 0000000000000000000000000000000000000000..a990d85ffbf7a3d8fbc349d8044167dbc4fc7375
--- /dev/null
+++ b/test/codegen/expect/language/multi_assign_test.js
@@ -0,0 +1,36 @@
+dart_library.library('language/multi_assign_test', null, /* Imports */[
+ 'dart_sdk',
+ 'expect'
+], function load__multi_assign_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 multi_assign_test = Object.create(null);
+ let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionType(dart.dynamic, [])))();
+ multi_assign_test.MultiAssignTest = class MultiAssignTest extends core.Object {
+ static testMain() {
+ let i = null, j = null, k = null;
+ i = j = k = 11;
+ expect$.Expect.equals(11, i);
+ expect$.Expect.equals(11, j);
+ expect$.Expect.equals(11, k);
+ let m = null;
+ let n = m = k = 55;
+ expect$.Expect.equals(55, m);
+ expect$.Expect.equals(55, n);
+ expect$.Expect.equals(55, k);
+ }
+ };
+ dart.setSignature(multi_assign_test.MultiAssignTest, {
+ statics: () => ({testMain: dart.definiteFunctionType(dart.dynamic, [])}),
+ names: ['testMain']
+ });
+ multi_assign_test.main = function() {
+ multi_assign_test.MultiAssignTest.testMain();
+ };
+ dart.fn(multi_assign_test.main, VoidTodynamic());
+ // Exports:
+ exports.multi_assign_test = multi_assign_test;
+});
« no previous file with comments | « test/codegen/expect/language/mul_recipr_test.js ('k') | test/codegen/expect/language/multi_pass2_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698