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/identical_const_test_07_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/identical_const_test_07_multi.js
diff --git a/test/codegen/expect/language/identical_const_test_07_multi.js b/test/codegen/expect/language/identical_const_test_07_multi.js
new file mode 100644
index 0000000000000000000000000000000000000000..1e83ef67e7b779ff795773845815a863355d7ef0
--- /dev/null
+++ b/test/codegen/expect/language/identical_const_test_07_multi.js
@@ -0,0 +1,35 @@
+dart_library.library('language/identical_const_test_07_multi', null, /* Imports */[
+ 'dart_sdk',
+ 'expect'
+], function load__identical_const_test_07_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 identical_const_test_07_multi = Object.create(null);
+ let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionType(dart.dynamic, [])))();
+ let dynamicTodynamic = () => (dynamicTodynamic = dart.constFn(dart.definiteFunctionType(dart.dynamic, [dart.dynamic])))();
+ identical_const_test_07_multi.f = function() {
+ };
+ dart.fn(identical_const_test_07_multi.f, VoidTodynamic());
+ identical_const_test_07_multi.g = 1;
+ identical_const_test_07_multi.identical_ff = core.identical(identical_const_test_07_multi.f, identical_const_test_07_multi.f);
+ identical_const_test_07_multi.identical_fg = core.identical(identical_const_test_07_multi.f, identical_const_test_07_multi.g);
+ identical_const_test_07_multi.identical_gf = core.identical(identical_const_test_07_multi.g, identical_const_test_07_multi.f);
+ identical_const_test_07_multi.identical_gg = core.identical(identical_const_test_07_multi.g, identical_const_test_07_multi.g);
+ identical_const_test_07_multi.a = dart.const(dart.map([true, 0]));
+ identical_const_test_07_multi.b = dart.const(dart.map([false, 0]));
+ identical_const_test_07_multi.use = function(x) {
+ return x;
+ };
+ dart.fn(identical_const_test_07_multi.use, dynamicTodynamic());
+ identical_const_test_07_multi.main = function() {
+ identical_const_test_07_multi.use(identical_const_test_07_multi.a);
+ identical_const_test_07_multi.use(identical_const_test_07_multi.b);
+ expect$.Expect.isFalse(identical_const_test_07_multi.identical_fg);
+ };
+ dart.fn(identical_const_test_07_multi.main, VoidTodynamic());
+ // Exports:
+ exports.identical_const_test_07_multi = identical_const_test_07_multi;
+});

Powered by Google App Engine
This is Rietveld 408576698