Chromium Code Reviews| 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 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 231 abstract class C implements List { | 231 abstract class C implements List { |
| 232 factory C([_]) = List; | 232 factory C([_]) = List; |
| 233 } | 233 } |
| 234 main() => new C();''' | 234 main() => new C();''' |
| 235 }), | 235 }), |
| 236 | 236 |
| 237 const Test(const { | 237 const Test(const { |
| 238 'main.dart': ''' | 238 'main.dart': ''' |
| 239 main() => const Duration(); | 239 main() => const Duration(); |
| 240 ''', | 240 ''', |
| 241 }) | 241 }), |
| 242 | |
| 243 const Test(const { | |
| 244 'main.dart': ''' | |
| 245 import 'dart:collection'; | |
| 246 main() => new UnmodifiableListView(null); | |
|
Siggi Cherem (dart-lang)
2016/05/20 21:17:53
we should start looking into changing these tests
Johnni Winther
2016/05/23 08:42:36
(a) Naming, yes. The unittest package, no. (Last t
Siggi Cherem (dart-lang)
2016/05/23 16:25:10
Let's give it another try... unittest should suppo
| |
| 247 ''', | |
| 248 }), | |
| 242 ]; | 249 ]; |
| 243 | 250 |
| 244 class Test { | 251 class Test { |
| 245 final Map sourceFiles; | 252 final Map sourceFiles; |
| 246 final int expectedErrorCount; | 253 final int expectedErrorCount; |
| 247 final int expectedWarningCount; | 254 final int expectedWarningCount; |
| 248 final int expectedHintCount; | 255 final int expectedHintCount; |
| 249 final int expectedInfoCount; | 256 final int expectedInfoCount; |
| 250 | 257 |
| 251 const Test(this.sourceFiles, { | 258 const Test(this.sourceFiles, { |
| 252 this.expectedErrorCount: 0, | 259 this.expectedErrorCount: 0, |
| 253 this.expectedWarningCount: 0, | 260 this.expectedWarningCount: 0, |
| 254 this.expectedHintCount: 0, | 261 this.expectedHintCount: 0, |
| 255 this.expectedInfoCount: 0}); | 262 this.expectedInfoCount: 0}); |
| 256 } | 263 } |
| OLD | NEW |