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

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

Issue 2018523002: Use correct type on evaluated literal symbols. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 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) 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('Empty program', const { 8 const Test('Empty program', const {
9 'main.dart': 'main() {}' 9 'main.dart': 'main() {}'
10 }), 10 }),
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 ''', 309 ''',
310 }), 310 }),
311 311
312 const Test('Import mirrors, thus checking import paths', const { 312 const Test('Import mirrors, thus checking import paths', const {
313 'main.dart': ''' 313 'main.dart': '''
314 import 'dart:mirrors'; 314 import 'dart:mirrors';
315 main() {} 315 main() {}
316 ''', 316 ''',
317 }, 317 },
318 expectedWarningCount: 1), 318 expectedWarningCount: 1),
319
320 const Test('Serialized symbol literal', const {
321 'main.dart': '''
322 import 'lib.dart';
323 main() => m();
324 ''',
325 }, preserializedSourceFiles: const {
326 'lib.dart': '''
327 m() => print(#main);
328 ''',
329 }),
319 ]; 330 ];
320 331
321 class Test { 332 class Test {
322 final String name; 333 final String name;
323 final Map sourceFiles; 334 final Map sourceFiles;
324 final Map preserializedSourceFiles; 335 final Map preserializedSourceFiles;
325 final int expectedErrorCount; 336 final int expectedErrorCount;
326 final int expectedWarningCount; 337 final int expectedWarningCount;
327 final int expectedHintCount; 338 final int expectedHintCount;
328 final int expectedInfoCount; 339 final int expectedInfoCount;
329 340
330 const Test( 341 const Test(
331 this.name, 342 this.name,
332 this.sourceFiles, 343 this.sourceFiles,
333 {this.preserializedSourceFiles, 344 {this.preserializedSourceFiles,
334 this.expectedErrorCount: 0, 345 this.expectedErrorCount: 0,
335 this.expectedWarningCount: 0, 346 this.expectedWarningCount: 0,
336 this.expectedHintCount: 0, 347 this.expectedHintCount: 0,
337 this.expectedInfoCount: 0}); 348 this.expectedInfoCount: 0});
338 } 349 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698