| 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 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 }), | 202 }), |
| 203 | 203 |
| 204 const Test(const { | 204 const Test(const { |
| 205 'main.dart': ''' | 205 'main.dart': ''' |
| 206 class A { | 206 class A { |
| 207 A(); | 207 A(); |
| 208 } | 208 } |
| 209 main() => new A(); | 209 main() => new A(); |
| 210 ''', | 210 ''', |
| 211 }), | 211 }), |
| 212 |
| 213 const Test(const { |
| 214 'main.dart': ''' |
| 215 class C { |
| 216 const C(); |
| 217 } |
| 218 main() => const C();''' |
| 219 }), |
| 212 ]; | 220 ]; |
| 213 | 221 |
| 214 class Test { | 222 class Test { |
| 215 final Map sourceFiles; | 223 final Map sourceFiles; |
| 216 final int expectedErrorCount; | 224 final int expectedErrorCount; |
| 217 final int expectedWarningCount; | 225 final int expectedWarningCount; |
| 218 final int expectedHintCount; | 226 final int expectedHintCount; |
| 219 final int expectedInfoCount; | 227 final int expectedInfoCount; |
| 220 | 228 |
| 221 const Test(this.sourceFiles, { | 229 const Test(this.sourceFiles, { |
| 222 this.expectedErrorCount: 0, | 230 this.expectedErrorCount: 0, |
| 223 this.expectedWarningCount: 0, | 231 this.expectedWarningCount: 0, |
| 224 this.expectedHintCount: 0, | 232 this.expectedHintCount: 0, |
| 225 this.expectedInfoCount: 0}); | 233 this.expectedInfoCount: 0}); |
| 226 } | 234 } |
| OLD | NEW |