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

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

Issue 2957583003: Fix computation of default values for named parameters. (Closed)
Patch Set: Created 3 years, 6 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
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 // Partial test that the closed world computed from [WorldImpact]s derived from 5 // Partial test that the closed world computed from [WorldImpact]s derived from
6 // kernel is equivalent to the original computed from resolution. 6 // kernel is equivalent to the original computed from resolution.
7 library dart2js.kernel.compile_from_dill_test; 7 library dart2js.kernel.compile_from_dill_test;
8 8
9 import 'dart:async'; 9 import 'dart:async';
10 import 'dart:io'; 10 import 'dart:io';
(...skipping 14 matching lines...) Expand all
25 import '../memory_compiler.dart'; 25 import '../memory_compiler.dart';
26 import '../equivalence/check_functions.dart'; 26 import '../equivalence/check_functions.dart';
27 import '../equivalence/check_helpers.dart'; 27 import '../equivalence/check_helpers.dart';
28 import '../serialization/helper.dart'; 28 import '../serialization/helper.dart';
29 import 'test_helpers.dart'; 29 import 'test_helpers.dart';
30 30
31 import 'compiler_helper.dart'; 31 import 'compiler_helper.dart';
32 32
33 const SOURCE = const { 33 const SOURCE = const {
34 'main.dart': ''' 34 'main.dart': '''
35 foo() => 1; 35 foo({named}) => 1;
36 bar(a) => !a; 36 bar(a) => !a;
37 class Class { 37 class Class {
38 var field; 38 var field;
39 static var staticField; 39 static var staticField;
40 Class(this.field); 40 Class(this.field);
41 } 41 }
42 main() { 42 main() {
43 foo(); 43 foo();
44 bar(true); 44 bar(true);
45 []; 45 [];
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 } 191 }
192 Map<String, BufferedOutputSink> map2 = collector2.outputMap[outputType]; 192 Map<String, BufferedOutputSink> map2 = collector2.outputMap[outputType];
193 checkSets(map1.keys, map2.keys, 'output', equality); 193 checkSets(map1.keys, map2.keys, 'output', equality);
194 map1.forEach((String name, BufferedOutputSink output1) { 194 map1.forEach((String name, BufferedOutputSink output1) {
195 BufferedOutputSink output2 = map2[name]; 195 BufferedOutputSink output2 = map2[name];
196 Expect.stringEquals(output1.text, output2.text); 196 Expect.stringEquals(output1.text, output2.text);
197 }); 197 });
198 }); 198 });
199 return ResultKind.success; 199 return ResultKind.success;
200 } 200 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/ssa/builder_kernel.dart ('k') | tests/compiler/dart2js_extra/dart2js_extra.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698