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

Side by Side Diff: test/codegen/expect/language/logical_expression2_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/logical_expression2_test', null, /* Imports */[
2 'dart_sdk',
3 'expect'
4 ], function load__logical_expression2_test(exports, dart_sdk, expect) {
5 'use strict';
6 const core = dart_sdk.core;
7 const _interceptors = dart_sdk._interceptors;
8 const dart = dart_sdk.dart;
9 const dartx = dart_sdk.dartx;
10 const expect$ = expect.expect;
11 const logical_expression2_test = Object.create(null);
12 let JSArrayOfObject = () => (JSArrayOfObject = dart.constFn(_interceptors.JSAr ray$(core.Object)))();
13 let ObjectTovoid = () => (ObjectTovoid = dart.constFn(dart.definiteFunctionTyp e(dart.void, [core.Object])))();
14 let dynamicToint = () => (dynamicToint = dart.constFn(dart.definiteFunctionTyp e(core.int, [dart.dynamic])))();
15 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT ype(dart.dynamic, [])))();
16 logical_expression2_test.globalCounter = 0;
17 logical_expression2_test.nonInlinedUse = function(object) {
18 if (new core.DateTime.now().millisecondsSinceEpoch == 42) logical_expression 2_test.nonInlinedUse(object);
19 if (!(typeof object == 'string')) {
20 logical_expression2_test.globalCounter = dart.notNull(logical_expression2_ test.globalCounter) + 1;
21 }
22 };
23 dart.fn(logical_expression2_test.nonInlinedUse, ObjectTovoid());
24 logical_expression2_test.confuse = function(x) {
25 if (new core.DateTime.now().millisecondsSinceEpoch == 42) return logical_exp ression2_test.confuse(dart.dsend(x, '-', 1));
26 return core.int._check(x);
27 };
28 dart.fn(logical_expression2_test.confuse, dynamicToint());
29 logical_expression2_test.main = function() {
30 let o = JSArrayOfObject().of(["foo", 499])[dartx.get](logical_expression2_te st.confuse(1));
31 if (typeof o == 'number' || typeof o == 'string' && true) {
32 logical_expression2_test.nonInlinedUse(o);
33 }
34 expect$.Expect.equals(1, logical_expression2_test.globalCounter);
35 };
36 dart.fn(logical_expression2_test.main, VoidTodynamic());
37 // Exports:
38 exports.logical_expression2_test = logical_expression2_test;
39 });
OLDNEW
« no previous file with comments | « test/codegen/expect/language/local_function_test.js ('k') | test/codegen/expect/language/logical_expression3_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698