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/local_function_non_equal_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
Index: test/codegen/expect/language/local_function_non_equal_test.js
diff --git a/test/codegen/expect/language/local_function_non_equal_test.js b/test/codegen/expect/language/local_function_non_equal_test.js
new file mode 100644
index 0000000000000000000000000000000000000000..16cc0815f71be83fec00ef094276c112d3e0bb5f
--- /dev/null
+++ b/test/codegen/expect/language/local_function_non_equal_test.js
@@ -0,0 +1,47 @@
+dart_library.library('language/local_function_non_equal_test', null, /* Imports */[
+ 'dart_sdk',
+ 'expect'
+], function load__local_function_non_equal_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 local_function_non_equal_test = Object.create(null);
+ let VoidToint = () => (VoidToint = dart.constFn(dart.definiteFunctionType(core.int, [])))();
+ let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionType(dart.dynamic, [])))();
+ local_function_non_equal_test.foo = function() {
+ return dart.fn(() => 42, VoidToint());
+ };
+ dart.fn(local_function_non_equal_test.foo, VoidTodynamic());
+ local_function_non_equal_test.bar = function() {
+ let c = dart.fn(() => 54, VoidToint());
+ return c;
+ };
+ dart.fn(local_function_non_equal_test.bar, VoidTodynamic());
+ local_function_non_equal_test.baz = function() {
+ function c() {
+ return 68;
+ }
+ dart.fn(c, VoidTodynamic());
+ return c;
+ };
+ dart.fn(local_function_non_equal_test.baz, VoidTodynamic());
+ local_function_non_equal_test.main = function() {
+ let first = local_function_non_equal_test.foo();
+ let second = local_function_non_equal_test.foo();
+ expect$.Expect.isFalse(core.identical(first, second));
+ expect$.Expect.notEquals(first, second);
+ first = local_function_non_equal_test.bar();
+ second = local_function_non_equal_test.bar();
+ expect$.Expect.isFalse(core.identical(first, second));
+ expect$.Expect.notEquals(first, second);
+ first = local_function_non_equal_test.baz();
+ second = local_function_non_equal_test.baz();
+ expect$.Expect.isFalse(core.identical(first, second));
+ expect$.Expect.notEquals(first, second);
+ };
+ dart.fn(local_function_non_equal_test.main, VoidTodynamic());
+ // Exports:
+ exports.local_function_non_equal_test = local_function_non_equal_test;
+});
« no previous file with comments | « test/codegen/expect/language/local_function3_test.js ('k') | test/codegen/expect/language/local_function_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698