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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 dart_library.library('language/local_function_non_equal_test', null, /* Imports */[
2 'dart_sdk',
3 'expect'
4 ], function load__local_function_non_equal_test(exports, dart_sdk, expect) {
5 'use strict';
6 const core = dart_sdk.core;
7 const dart = dart_sdk.dart;
8 const dartx = dart_sdk.dartx;
9 const expect$ = expect.expect;
10 const local_function_non_equal_test = Object.create(null);
11 let VoidToint = () => (VoidToint = dart.constFn(dart.definiteFunctionType(core .int, [])))();
12 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT ype(dart.dynamic, [])))();
13 local_function_non_equal_test.foo = function() {
14 return dart.fn(() => 42, VoidToint());
15 };
16 dart.fn(local_function_non_equal_test.foo, VoidTodynamic());
17 local_function_non_equal_test.bar = function() {
18 let c = dart.fn(() => 54, VoidToint());
19 return c;
20 };
21 dart.fn(local_function_non_equal_test.bar, VoidTodynamic());
22 local_function_non_equal_test.baz = function() {
23 function c() {
24 return 68;
25 }
26 dart.fn(c, VoidTodynamic());
27 return c;
28 };
29 dart.fn(local_function_non_equal_test.baz, VoidTodynamic());
30 local_function_non_equal_test.main = function() {
31 let first = local_function_non_equal_test.foo();
32 let second = local_function_non_equal_test.foo();
33 expect$.Expect.isFalse(core.identical(first, second));
34 expect$.Expect.notEquals(first, second);
35 first = local_function_non_equal_test.bar();
36 second = local_function_non_equal_test.bar();
37 expect$.Expect.isFalse(core.identical(first, second));
38 expect$.Expect.notEquals(first, second);
39 first = local_function_non_equal_test.baz();
40 second = local_function_non_equal_test.baz();
41 expect$.Expect.isFalse(core.identical(first, second));
42 expect$.Expect.notEquals(first, second);
43 };
44 dart.fn(local_function_non_equal_test.main, VoidTodynamic());
45 // Exports:
46 exports.local_function_non_equal_test = local_function_non_equal_test;
47 });
OLDNEW
« 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