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 import 'package:kernel/kernel.dart'; | 4 import 'package:kernel/kernel.dart'; |
5 import 'package:kernel/transformations/mixin_full_resolution.dart'; | 5 import 'package:kernel/transformations/mixin_full_resolution.dart'; |
6 | 6 |
7 import 'baseline_tester.dart'; | 7 import 'baseline_tester.dart'; |
8 | 8 |
9 class SpecModeTest extends TestTarget { | 9 class SpecModeTest extends TestTarget { |
10 @override | 10 @override |
11 List<String> get extraRequiredLibraries => []; | 11 List<String> get extraRequiredLibraries => []; |
12 | 12 |
13 @override | 13 @override |
14 String get name => 'spec-mode-test'; | 14 String get name => 'spec-mode-test'; |
15 | 15 |
16 @override | 16 @override |
17 bool get strongMode => false; | 17 bool get strongMode => false; |
18 | 18 |
19 @override | 19 @override |
20 List<String> transformProgram(Program program) { | 20 List<String> transformProgram(Program program) { |
21 new MixinFullResolution().transform(program); | 21 new MixinFullResolution().transform(program); |
22 return const <String>[]; | 22 return const <String>[]; |
23 } | 23 } |
24 } | 24 } |
25 | 25 |
26 void main() { | 26 void main() { |
27 runBaselineTests('spec-mode', new SpecModeTest()); | 27 runBaselineTests('spec-mode', new SpecModeTest()); |
28 } | 28 } |
OLD | NEW |