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

Side by Side Diff: test/codegen/expect/language/for_in2_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/for_in2_test', null, /* Imports */[
2 'dart_sdk',
3 'expect'
4 ], function load__for_in2_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 for_in2_test = Object.create(null);
12 let SetOfint = () => (SetOfint = dart.constFn(core.Set$(core.int)))();
13 let JSArrayOfint = () => (JSArrayOfint = dart.constFn(_interceptors.JSArray$(c ore.int)))();
14 let VoidTovoid = () => (VoidTovoid = dart.constFn(dart.definiteFunctionType(da rt.void, [])))();
15 dart.defineLazy(for_in2_test, {
16 get set() {
17 return SetOfint().from(JSArrayOfint().of([1, 2]));
18 },
19 set set(_) {}
20 });
21 for_in2_test.x = null;
22 for_in2_test.A = class A extends core.Object {
23 new() {
24 this.field = null;
25 }
26 test() {
27 let count = 0;
28 for (/* Unimplemented unknown name */field of for_in2_test.set) {
29 count = dart.notNull(count) + dart.notNull(core.int._check(this.field));
30 }
31 expect$.Expect.equals(3, count);
32 count = 0;
33 for (/* Unimplemented unknown name */x of for_in2_test.set) {
34 count = dart.notNull(count) + dart.notNull(core.int._check(for_in2_test. x));
35 }
36 expect$.Expect.equals(3, count);
37 }
38 };
39 dart.setSignature(for_in2_test.A, {
40 methods: () => ({test: dart.definiteFunctionType(dart.dynamic, [])})
41 });
42 for_in2_test.main = function() {
43 new for_in2_test.A().test();
44 };
45 dart.fn(for_in2_test.main, VoidTovoid());
46 // Exports:
47 exports.for_in2_test = for_in2_test;
48 });
OLDNEW
« no previous file with comments | « test/codegen/expect/language/for2_test.js ('k') | test/codegen/expect/language/for_in_side_effects_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698