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

Side by Side Diff: tests/lib_strong/mirrors/metadata_allowed_values_test.dart

Issue 2768073002: Format all multitests (Closed)
Patch Set: Created 3 years, 9 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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 test.metadata_allowed_values; 5 library test.metadata_allowed_values;
6 6
7 import 'dart:mirrors'; 7 import 'dart:mirrors';
8 import 'package:expect/expect.dart'; 8 import 'package:expect/expect.dart';
9 9
10 import 'metadata_allowed_values_import.dart'; // Unprefixed. 10 import 'metadata_allowed_values_import.dart'; // Unprefixed.
11 import 'metadata_allowed_values_import.dart' as prefix; 11 import 'metadata_allowed_values_import.dart' as prefix;
12 12
13 @A // //# 01: compile-time error 13 @A // //# 01: compile-time error
14 class A {} 14 class A {}
15 15
16 @B.CONSTANT 16 @B.CONSTANT
17 class B { 17 class B {
18 static const CONSTANT = 3; 18 static const CONSTANT = 3;
19 } 19 }
20 20
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 @true // //# 23: compile-time error 130 @true // //# 23: compile-time error
131 class FF {} 131 class FF {}
132 132
133 @false // //# 24: compile-time error 133 @false // //# 24: compile-time error
134 class GG {} 134 class GG {}
135 135
136 @null // //# 25: compile-time error 136 @null // //# 25: compile-time error
137 class HH {} 137 class HH {}
138 138
139 const a = const [1, 2, 3]; 139 const a = const [1, 2, 3];
140
140 @a 141 @a
141 class II {} 142 class II {}
142 143
143 @a[0] // //# 26: compile-time error 144 @a[0] // //# 26: compile-time error
144 class JJ {} 145 class JJ {}
145 146
146 @kk // //# 27: compile-time error 147 @kk // //# 27: compile-time error
147 class KK { 148 class KK {
148 const KK(); 149 const KK();
149 } 150 }
151
150 get kk => const KK(); 152 get kk => const KK();
151 153
152 @LL(() => 42) // //# 28: compile-time error 154 @LL(() => 42) // //# 28: compile-time error
153 class LL { 155 class LL {
154 final field; 156 final field;
155 const LL(this.field); 157 const LL(this.field);
156 } 158 }
157 159
158 @MM((x) => 42) // //# 29: compile-time error 160 @MM((x) => 42) // //# 29: compile-time error
159 class MM { 161 class MM {
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 reflectClass(GG).metadata; 215 reflectClass(GG).metadata;
214 reflectClass(HH).metadata; 216 reflectClass(HH).metadata;
215 reflectClass(II).metadata; 217 reflectClass(II).metadata;
216 reflectClass(JJ).metadata; 218 reflectClass(JJ).metadata;
217 reflectClass(KK).metadata; 219 reflectClass(KK).metadata;
218 reflectClass(LL).metadata; 220 reflectClass(LL).metadata;
219 reflectClass(MM).metadata; 221 reflectClass(MM).metadata;
220 reflectClass(NN).metadata; 222 reflectClass(NN).metadata;
221 reflectClass(OO).metadata; 223 reflectClass(OO).metadata;
222 } 224 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698