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

Side by Side Diff: test/codegen/expect/language/deferred_optimized_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/deferred_optimized_test', null, /* Imports */[
2 'dart_sdk',
3 'expect'
4 ], function load__deferred_optimized_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 deferred_optimized_test = Object.create(null);
11 const deferred_constraints_lib2 = Object.create(null);
12 let dynamicTodynamic = () => (dynamicTodynamic = dart.constFn(dart.definiteFun ctionType(dart.dynamic, [dart.dynamic])))();
13 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT ype(dart.dynamic, [])))();
14 deferred_optimized_test.libLoaded = false;
15 deferred_optimized_test.main = function() {
16 expect$.Expect.equals(88, deferred_optimized_test.heyhey());
17 for (let i = 0; i < 30; i++) {
18 deferred_optimized_test.heyhey();
19 }
20 loadLibrary().then(dart.dynamic)(dart.fn(_ => {
21 deferred_optimized_test.libLoaded = true;
22 expect$.Expect.equals(42, deferred_optimized_test.heyhey());
23 }, dynamicTodynamic()));
24 };
25 dart.fn(deferred_optimized_test.main, VoidTodynamic());
26 deferred_optimized_test.heyhey = function() {
27 return deferred_optimized_test.barbar();
28 };
29 dart.fn(deferred_optimized_test.heyhey, VoidTodynamic());
30 deferred_optimized_test.barbar = function() {
31 if (dart.test(deferred_optimized_test.libLoaded)) {
32 return deferred_constraints_lib2.foo();
33 }
34 return 88;
35 };
36 dart.fn(deferred_optimized_test.barbar, VoidTodynamic());
37 deferred_constraints_lib2.foo = function() {
38 return 42;
39 };
40 dart.fn(deferred_constraints_lib2.foo, VoidTodynamic());
41 deferred_constraints_lib2.C = class C extends core.Object {};
42 // Exports:
43 exports.deferred_optimized_test = deferred_optimized_test;
44 exports.deferred_constraints_lib2 = deferred_constraints_lib2;
45 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698