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

Side by Side Diff: tests/compiler/dart2js/kernel/compile_from_dill_test_helper.dart

Issue 2992863002: Support forEachClassMember on closure classes (Closed)
Patch Set: Updated cf. comments Created 3 years, 4 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
« no previous file with comments | « pkg/compiler/lib/src/universe/use.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 // Helper to test compilation equivalence between source and .dill based 5 // Helper to test compilation equivalence between source and .dill based
6 // compilation. 6 // compilation.
7 library dart2js.kernel.compile_from_dill_test_helper; 7 library dart2js.kernel.compile_from_dill_test_helper;
8 8
9 import 'dart:async'; 9 import 'dart:async';
10 10
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 default: 126 default:
127 x = 11; 127 x = 11;
128 break; 128 break;
129 } 129 }
130 x = toplevel; 130 x = toplevel;
131 x = testIs(x); 131 x = testIs(x);
132 x = new Generic<int>().method(x); 132 x = new Generic<int>().method(x);
133 x = testAsGeneric(x); 133 x = testAsGeneric(x);
134 x = testAsFunction(x); 134 x = testAsFunction(x);
135 print(x); 135 print(x);
136 var f = (x) {
137 return 400 + x;
138 };
139 x = f(x);
136 return x; 140 return x;
137 } 141 }
138 typedef NoArg(); 142 typedef NoArg();
139 @NoInline() 143 @NoInline()
140 testIs(o) => o is Generic<int> || o is NoArg; 144 testIs(o) => o is Generic<int> || o is NoArg;
141 @NoInline() 145 @NoInline()
142 testAsGeneric(o) => o as Generic<int>; 146 testAsGeneric(o) => o as Generic<int>;
143 @NoInline() 147 @NoInline()
144 testAsFunction(o) => o as NoArg; 148 testAsFunction(o) => o as NoArg;
145 ''' 149 '''
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 Map<String, BufferedOutputSink> map2 = collector2.outputMap[outputType]; 363 Map<String, BufferedOutputSink> map2 = collector2.outputMap[outputType];
360 checkSets(map1.keys, map2.keys, 'output', equality); 364 checkSets(map1.keys, map2.keys, 'output', equality);
361 map1.forEach((String name, BufferedOutputSink output1) { 365 map1.forEach((String name, BufferedOutputSink output1) {
362 BufferedOutputSink output2 = map2[name]; 366 BufferedOutputSink output2 = map2[name];
363 Expect.stringEquals(output1.text, output2.text); 367 Expect.stringEquals(output1.text, output2.text);
364 }); 368 });
365 }); 369 });
366 } 370 }
367 return ResultKind.success; 371 return ResultKind.success;
368 } 372 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/universe/use.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698