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

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

Issue 2968383002: Add ConstructorBodyEntity (Closed)
Patch Set: Created 3 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
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 import 'dart:io'; 10 import 'dart:io';
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 'main.dart': ''' 50 'main.dart': '''
51 import 'dart:html'; 51 import 'dart:html';
52 52
53 foo({named}) => 1; 53 foo({named}) => 1;
54 bar(a) => !a; 54 bar(a) => !a;
55 class Class { 55 class Class {
56 var field; 56 var field;
57 static var staticField; 57 static var staticField;
58 58
59 Class(); 59 Class();
60 Class.named(this.field); 60 Class.named(this.field) {
61 staticField = 42;
62 }
61 63
62 method() {} 64 method() {}
63 } 65 }
64 66
65 class SubClass extends Class { 67 class SubClass extends Class {
66 method() { 68 method() {
67 super.method(); 69 super.method();
68 } 70 }
69 } 71 }
70 72
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 Map<String, BufferedOutputSink> map2 = collector2.outputMap[outputType]; 297 Map<String, BufferedOutputSink> map2 = collector2.outputMap[outputType];
296 checkSets(map1.keys, map2.keys, 'output', equality); 298 checkSets(map1.keys, map2.keys, 'output', equality);
297 map1.forEach((String name, BufferedOutputSink output1) { 299 map1.forEach((String name, BufferedOutputSink output1) {
298 BufferedOutputSink output2 = map2[name]; 300 BufferedOutputSink output2 = map2[name];
299 Expect.stringEquals(output1.text, output2.text); 301 Expect.stringEquals(output1.text, output2.text);
300 }); 302 });
301 }); 303 });
302 } 304 }
303 return ResultKind.success; 305 return ResultKind.success;
304 } 306 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698