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

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

Issue 2857333003: Handle const Symbol(...) in closed_world2_test (Closed)
Patch Set: Created 3 years, 7 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/ssa/kernel_impact.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 // 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.closed_world2_test; 7 library dart2js.kernel.closed_world2_test;
8 8
9 import 'dart:async'; 9 import 'dart:async';
10 10
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 print('Hello World'); 82 print('Hello World');
83 ''.contains; // Trigger member closurization. 83 ''.contains; // Trigger member closurization.
84 new Element.div(); 84 new Element.div();
85 new ClassWithSetter().setter = null; 85 new ClassWithSetter().setter = null;
86 new Class1().method1(); 86 new Class1().method1();
87 new Class2().method2(); 87 new Class2().method2();
88 new Class2().method3(); 88 new Class2().method3();
89 null is List<int>; // Use generic test 89 null is List<int>; // Use generic test
90 method1(); // Both top level and instance method named 'method1' are live. 90 method1(); // Both top level and instance method named 'method1' are live.
91 #main; // Use a const symbol. 91 #main; // Use a const symbol.
92 const Symbol('foo'); // Use the const Symbol constructor directly
92 new Int8List(0); // Use redirect factory to abstract native class 93 new Int8List(0); // Use redirect factory to abstract native class
93 } 94 }
94 ''' 95 '''
95 }; 96 };
96 97
97 main(List<String> args) { 98 main(List<String> args) {
98 asyncTest(() async { 99 asyncTest(() async {
99 await mainInternal(args); 100 await mainInternal(args);
100 }); 101 });
101 } 102 }
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 278
278 classes2.add(cls2); 279 classes2.add(cls2);
279 }); 280 });
280 env2.forEachClass(lib2, (ClassEntity cls2) { 281 env2.forEachClass(lib2, (ClassEntity cls2) {
281 Expect.isTrue(classes2.contains(cls2), "Extra class $cls2 in $lib2"); 282 Expect.isTrue(classes2.contains(cls2), "Extra class $cls2 in $lib2");
282 }); 283 });
283 }); 284 });
284 285
285 // TODO(johnniwinther): Test the remaining properties of [ElementEnvironment]. 286 // TODO(johnniwinther): Test the remaining properties of [ElementEnvironment].
286 } 287 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/ssa/kernel_impact.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698