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

Side by Side Diff: test/codegen/expect/language/issue15720_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/issue15720_test', null, /* Imports */[
2 'dart_sdk'
3 ], function load__issue15720_test(exports, dart_sdk) {
4 'use strict';
5 const core = dart_sdk.core;
6 const _interceptors = dart_sdk._interceptors;
7 const dart = dart_sdk.dart;
8 const dartx = dart_sdk.dartx;
9 const issue15720_test = Object.create(null);
10 let SetOfB = () => (SetOfB = dart.constFn(core.Set$(issue15720_test.B)))();
11 let JSArrayOfB = () => (JSArrayOfB = dart.constFn(_interceptors.JSArray$(issue 15720_test.B)))();
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 issue15720_test.B = class B extends core.Object {};
15 issue15720_test.confuse = function(x) {
16 if (dart.equals(new core.DateTime.now(), 42)) return issue15720_test.confuse (x);
17 return x;
18 };
19 dart.fn(issue15720_test.confuse, dynamicTodynamic());
20 issue15720_test.main = function() {
21 let set = SetOfB().from(JSArrayOfB().of([]));
22 issue15720_test.confuse(499);
23 issue15720_test.confuse(set);
24 let t1 = new issue15720_test.B();
25 let t2 = new issue15720_test.B();
26 let t3 = new issue15720_test.B();
27 let t4 = new issue15720_test.B();
28 set.addAll(JSArrayOfB().of([t1, t2, t3, t4]));
29 issue15720_test.confuse(7);
30 set.addAll(JSArrayOfB().of([t1, t2, t3, t4]));
31 };
32 dart.fn(issue15720_test.main, VoidTodynamic());
33 // Exports:
34 exports.issue15720_test = issue15720_test;
35 });
OLDNEW
« no previous file with comments | « test/codegen/expect/language/issue15702_test.js ('k') | test/codegen/expect/language/issue1578_negative_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698