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

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

Issue 2103833002: Fix serialization of IndexSetIfNullStructure. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 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
« no previous file with comments | « pkg/compiler/lib/src/resolution/send_structure.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('Empty program', const { 8 const Test('Empty program', const {
9 'main.dart': 'main() {}' 9 'main.dart': 'main() {}'
10 }), 10 }),
(...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after
447 } 447 }
448 ''', 448 ''',
449 }, preserializedSourceFiles: const { 449 }, preserializedSourceFiles: const {
450 'a.dart': ''' 450 'a.dart': '''
451 class A { 451 class A {
452 final field1; 452 final field1;
453 const A(a) : this.field1 = a + 1.0; 453 const A(a) : this.field1 = a + 1.0;
454 } 454 }
455 ''', 455 ''',
456 }), 456 }),
457
458 const Test('Index set if null', const {
459 'main.dart': '''
460 import 'a.dart';
461
462 main() => m(null, null, null);
463 ''',
464 }, preserializedSourceFiles: const {
465 'a.dart': '''
466 m(a, b, c) => a[b] ??= c;
467 ''',
468 }),
457 ]; 469 ];
458 470
459 class Test { 471 class Test {
460 final String name; 472 final String name;
461 final Map sourceFiles; 473 final Map sourceFiles;
462 final Map preserializedSourceFiles; 474 final Map preserializedSourceFiles;
463 final Map unserializedSourceFiles; 475 final Map unserializedSourceFiles;
464 final int expectedErrorCount; 476 final int expectedErrorCount;
465 final int expectedWarningCount; 477 final int expectedWarningCount;
466 final int expectedHintCount; 478 final int expectedHintCount;
467 final int expectedInfoCount; 479 final int expectedInfoCount;
468 480
469 const Test( 481 const Test(
470 this.name, 482 this.name,
471 this.sourceFiles, 483 this.sourceFiles,
472 {this.preserializedSourceFiles, 484 {this.preserializedSourceFiles,
473 this.unserializedSourceFiles, 485 this.unserializedSourceFiles,
474 this.expectedErrorCount: 0, 486 this.expectedErrorCount: 0,
475 this.expectedWarningCount: 0, 487 this.expectedWarningCount: 0,
476 this.expectedHintCount: 0, 488 this.expectedHintCount: 0,
477 this.expectedInfoCount: 0}); 489 this.expectedInfoCount: 0});
478 } 490 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/resolution/send_structure.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698