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

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

Issue 2250643002: Support encoding of NaN, infinity and negative infinity. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 4 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/serialization/serialization.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 // These tests are very long-running and put here first to compile them on 8 // These tests are very long-running and put here first to compile them on
9 // their own tests. 9 // their own tests.
10 const Test('Disable tree shaking through reflection', const { 10 const Test('Disable tree shaking through reflection', const {
(...skipping 667 matching lines...) Expand 10 before | Expand all | Expand 10 after
678 'main.dart': ''' 678 'main.dart': '''
679 import 'a.dart'; 679 import 'a.dart';
680 680
681 main() => y; 681 main() => y;
682 ''', 682 ''',
683 }, preserializedSourceFiles: const { 683 }, preserializedSourceFiles: const {
684 'a.dart': ''' 684 'a.dart': '''
685 var x, y = 2; 685 var x, y = 2;
686 ''', 686 ''',
687 }), 687 }),
688
689 const Test('Double values', const {},
690 preserializedSourceFiles: const {
691 'main.dart': '''
692 const a = 1e+400;
693 main() => a;
694 ''',
695 }),
688 ]; 696 ];
689 697
690 class Test { 698 class Test {
691 final String name; 699 final String name;
692 final Map sourceFiles; 700 final Map sourceFiles;
693 final Map preserializedSourceFiles; 701 final Map preserializedSourceFiles;
694 final Map unserializedSourceFiles; 702 final Map unserializedSourceFiles;
695 final int expectedErrorCount; 703 final int expectedErrorCount;
696 final int expectedWarningCount; 704 final int expectedWarningCount;
697 final int expectedHintCount; 705 final int expectedHintCount;
698 final int expectedInfoCount; 706 final int expectedInfoCount;
699 final bool checkedMode; 707 final bool checkedMode;
700 708
701 const Test( 709 const Test(
702 this.name, 710 this.name,
703 this.sourceFiles, 711 this.sourceFiles,
704 {this.preserializedSourceFiles, 712 {this.preserializedSourceFiles,
705 this.unserializedSourceFiles, 713 this.unserializedSourceFiles,
706 this.expectedErrorCount: 0, 714 this.expectedErrorCount: 0,
707 this.expectedWarningCount: 0, 715 this.expectedWarningCount: 0,
708 this.expectedHintCount: 0, 716 this.expectedHintCount: 0,
709 this.expectedInfoCount: 0, 717 this.expectedInfoCount: 0,
710 this.checkedMode: false}); 718 this.checkedMode: false});
711 } 719 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/serialization/serialization.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698