OLD | NEW |
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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.src.task.inputs_test; | 5 library test.src.task.inputs_test; |
6 | 6 |
7 import 'package:analyzer/src/task/inputs.dart'; | 7 import 'package:analyzer/src/task/inputs.dart'; |
8 import 'package:analyzer/src/task/model.dart'; | 8 import 'package:analyzer/src/task/model.dart'; |
9 import 'package:analyzer/task/model.dart'; | 9 import 'package:analyzer/task/model.dart'; |
10 import 'package:unittest/unittest.dart'; | 10 import 'package:unittest/unittest.dart'; |
11 | 11 |
12 import '../../generated/test_support.dart'; | 12 import '../../generated/test_support.dart'; |
13 import '../../reflective_tests.dart'; | 13 import '../../reflective_tests.dart'; |
| 14 import '../../utils.dart'; |
14 | 15 |
15 main() { | 16 main() { |
16 groupSep = ' | '; | 17 initializeTestEnvironment(); |
17 runReflectiveTests(ListTaskInputImplTest); | 18 runReflectiveTests(ListTaskInputImplTest); |
18 runReflectiveTests(ListToListTaskInputTest); | 19 runReflectiveTests(ListToListTaskInputTest); |
19 runReflectiveTests(ListToListTaskInputBuilderTest); | 20 runReflectiveTests(ListToListTaskInputBuilderTest); |
20 runReflectiveTests(ListToMapTaskInputBuilderTest); | 21 runReflectiveTests(ListToMapTaskInputBuilderTest); |
21 runReflectiveTests(ListToMapTaskInputTest); | 22 runReflectiveTests(ListToMapTaskInputTest); |
22 runReflectiveTests(ObjectToListTaskInputBuilderTest); | 23 runReflectiveTests(ObjectToListTaskInputBuilderTest); |
23 runReflectiveTests(ObjectToListTaskInputTest); | 24 runReflectiveTests(ObjectToListTaskInputTest); |
24 runReflectiveTests(SimpleTaskInputTest); | 25 runReflectiveTests(SimpleTaskInputTest); |
25 runReflectiveTests(SimpleTaskInputBuilderTest); | 26 runReflectiveTests(SimpleTaskInputBuilderTest); |
26 runReflectiveTests(TopLevelTaskInputBuilderTest); | 27 runReflectiveTests(TopLevelTaskInputBuilderTest); |
(...skipping 914 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
941 test_moveNext_withSet() { | 942 test_moveNext_withSet() { |
942 Map<String, TaskInput> inputDescriptors = {'one': input1}; | 943 Map<String, TaskInput> inputDescriptors = {'one': input1}; |
943 TopLevelTaskInputBuilder builder = | 944 TopLevelTaskInputBuilder builder = |
944 new TopLevelTaskInputBuilder(inputDescriptors); | 945 new TopLevelTaskInputBuilder(inputDescriptors); |
945 expect(builder.moveNext(), true); | 946 expect(builder.moveNext(), true); |
946 builder.currentValue = 'value1'; | 947 builder.currentValue = 'value1'; |
947 expect(builder.moveNext(), false); | 948 expect(builder.moveNext(), false); |
948 expect(builder.moveNext(), false); | 949 expect(builder.moveNext(), false); |
949 } | 950 } |
950 } | 951 } |
OLD | NEW |