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/language/enum_test.dart

Issue 2247733005: Correct and GC unrecognized flags from our tests. (Closed) Base URL: git@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 | « tests/language/enum_syntax_test.dart ('k') | tests/language/function_field_test.dart » ('j') | 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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 // SharedOptions=--enable-enum
6
7 import 'package:expect/expect.dart'; 5 import 'package:expect/expect.dart';
8 6
9 enum Enum1 { _ } 7 enum Enum1 { _ }
10 enum Enum2 { A } 8 enum Enum2 { A }
11 enum Enum3 { B, C } 9 enum Enum3 { B, C }
12 enum Enum4 { D, E, } 10 enum Enum4 { D, E, }
13 enum Enum5 { F, G, H } 11 enum Enum5 { F, G, H }
14 enum _Enum6 { I, _J } 12 enum _Enum6 { I, _J }
15 13
16 main() { 14 main() {
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 index = 2; 103 index = 2;
106 break; 104 break;
107 case Enum5.F: 105 case Enum5.F:
108 index = 0; 106 index = 0;
109 break; 107 break;
110 case Enum5.G: 108 case Enum5.G:
111 index = 1; 109 index = 1;
112 break; 110 break;
113 } 111 }
114 Expect.equals(e.index, index); 112 Expect.equals(e.index, index);
115 } 113 }
OLDNEW
« no previous file with comments | « tests/language/enum_syntax_test.dart ('k') | tests/language/function_field_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698