OLD | NEW |
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(const { | 8 const Test(const { |
9 'main.dart': 'main() {}' | 9 'main.dart': 'main() {}' |
10 }), | 10 }), |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 main() { | 194 main() { |
195 loop: for (var a in []) { | 195 loop: for (var a in []) { |
196 for (var b in []) { | 196 for (var b in []) { |
197 continue loop; | 197 continue loop; |
198 } | 198 } |
199 break; | 199 break; |
200 } | 200 } |
201 }''' | 201 }''' |
202 }), | 202 }), |
203 | 203 |
| 204 const Test(const { |
| 205 'main.dart': ''' |
| 206 class A { |
| 207 A(); |
| 208 } |
| 209 main() => new A(); |
| 210 ''', |
| 211 }), |
204 ]; | 212 ]; |
205 | 213 |
206 class Test { | 214 class Test { |
207 final Map sourceFiles; | 215 final Map sourceFiles; |
208 final int expectedErrorCount; | 216 final int expectedErrorCount; |
209 final int expectedWarningCount; | 217 final int expectedWarningCount; |
210 final int expectedHintCount; | 218 final int expectedHintCount; |
211 final int expectedInfoCount; | 219 final int expectedInfoCount; |
212 | 220 |
213 const Test(this.sourceFiles, { | 221 const Test(this.sourceFiles, { |
214 this.expectedErrorCount: 0, | 222 this.expectedErrorCount: 0, |
215 this.expectedWarningCount: 0, | 223 this.expectedWarningCount: 0, |
216 this.expectedHintCount: 0, | 224 this.expectedHintCount: 0, |
217 this.expectedInfoCount: 0}); | 225 this.expectedInfoCount: 0}); |
218 } | 226 } |
OLD | NEW |