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

Side by Side Diff: tests/compiler/dart2js/serialization/test_data.dart

Issue 2005843002: Yet another unnecessary ElementX reference (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 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/resolution/members.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) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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 library dart2js.serialization_test_data; 5 library dart2js.serialization_test_data;
6 6
7 const List<Test> TESTS = const <Test>[ 7 const List<Test> TESTS = const <Test>[
8 const Test(const { 8 const Test(const {
9 'main.dart': 'main() {}' 9 'main.dart': 'main() {}'
10 }), 10 }),
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 main() => new UnmodifiableListView(null); 246 main() => new UnmodifiableListView(null);
247 ''', 247 ''',
248 }), 248 }),
249 249
250 const Test(const { 250 const Test(const {
251 'main.dart': ''' 251 'main.dart': '''
252 var myIdentical = identical; 252 var myIdentical = identical;
253 main() => myIdentical; 253 main() => myIdentical;
254 ''', 254 ''',
255 }), 255 }),
256
257 const Test(const {
258 'main.dart': '''
259 class Foo {
260 String toString() => super.toString();
261 }
262 main() {
263 print(new Foo());
264 }
265 ''',
266 }),
256 ]; 267 ];
257 268
258 class Test { 269 class Test {
259 final Map sourceFiles; 270 final Map sourceFiles;
260 final int expectedErrorCount; 271 final int expectedErrorCount;
261 final int expectedWarningCount; 272 final int expectedWarningCount;
262 final int expectedHintCount; 273 final int expectedHintCount;
263 final int expectedInfoCount; 274 final int expectedInfoCount;
264 275
265 const Test(this.sourceFiles, { 276 const Test(this.sourceFiles, {
266 this.expectedErrorCount: 0, 277 this.expectedErrorCount: 0,
267 this.expectedWarningCount: 0, 278 this.expectedWarningCount: 0,
268 this.expectedHintCount: 0, 279 this.expectedHintCount: 0,
269 this.expectedInfoCount: 0}); 280 this.expectedInfoCount: 0});
270 } 281 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/resolution/members.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698