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/serialization/test_data.dart

Issue 2033383002: Handle use of fromEnvironment from serialized data. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Fixes 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 351 matching lines...) Expand 10 before | Expand all | Expand 10 after
362 'main.dart': ''' 362 'main.dart': '''
363 import 'a.dart' deferred as lib; 363 import 'a.dart' deferred as lib;
364 main() { 364 main() {
365 lib.foo(); 365 lib.foo();
366 } 366 }
367 ''', 367 ''',
368 'a.dart': ''' 368 'a.dart': '''
369 void foo() {} 369 void foo() {}
370 ''', 370 ''',
371 }), 371 }),
372
373 const Test('fromEnvironment constants', const {
374 'main.dart': '''
375 main() => const String.fromEnvironment("foo");
376 ''',
377 }),
372 ]; 378 ];
373 379
374 class Test { 380 class Test {
375 final String name; 381 final String name;
376 final Map sourceFiles; 382 final Map sourceFiles;
377 final Map preserializedSourceFiles; 383 final Map preserializedSourceFiles;
378 final Map unserializedSourceFiles; 384 final Map unserializedSourceFiles;
379 final int expectedErrorCount; 385 final int expectedErrorCount;
380 final int expectedWarningCount; 386 final int expectedWarningCount;
381 final int expectedHintCount; 387 final int expectedHintCount;
382 final int expectedInfoCount; 388 final int expectedInfoCount;
383 389
384 const Test( 390 const Test(
385 this.name, 391 this.name,
386 this.sourceFiles, 392 this.sourceFiles,
387 {this.preserializedSourceFiles, 393 {this.preserializedSourceFiles,
388 this.unserializedSourceFiles, 394 this.unserializedSourceFiles,
389 this.expectedErrorCount: 0, 395 this.expectedErrorCount: 0,
390 this.expectedWarningCount: 0, 396 this.expectedWarningCount: 0,
391 this.expectedHintCount: 0, 397 this.expectedHintCount: 0,
392 this.expectedInfoCount: 0}); 398 this.expectedInfoCount: 0});
393 } 399 }
OLDNEW
« pkg/compiler/lib/src/elements/common.dart ('K') | « pkg/compiler/lib/src/serialization/modelz.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698