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

Side by Side Diff: test/codegen/expect/language/deferred_only_constant_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_only_constant_test', null, /* Imports */ [
2 'dart_sdk',
3 'expect'
4 ], function load__deferred_only_constant_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_only_constant_test = Object.create(null);
11 const deferred_only_constant_lib = Object.create(null);
12 let dynamicTodynamic = () => (dynamicTodynamic = dart.constFn(dart.definiteFun ctionType(dart.dynamic, [dart.dynamic])))();
13 let VoidTovoid = () => (VoidTovoid = dart.constFn(dart.definiteFunctionType(da rt.void, [])))();
14 let const$;
15 deferred_only_constant_test.main = function() {
16 loadLibrary().then(dart.dynamic)(dart.fn(_ => {
17 expect$.Expect.equals(deferred_only_constant_lib.constant, const$ || (cons t$ = dart.constList(["a", "b", "c"], core.String)));
18 }, dynamicTodynamic()));
19 };
20 dart.fn(deferred_only_constant_test.main, VoidTovoid());
21 deferred_only_constant_lib.constant = dart.constList(["a", "b", "c"], core.Str ing);
22 // Exports:
23 exports.deferred_only_constant_test = deferred_only_constant_test;
24 exports.deferred_only_constant_lib = deferred_only_constant_lib;
25 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698