Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(336)

Side by Side Diff: pkg/analyzer/test/src/task/inputs_test.dart

Issue 2391423003: Switch 'analyzer' to 'package:test' and test_reflective_loader ^0.1.0. (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 analyzer.test.src.task.inputs_test; 5 library analyzer.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:test/test.dart';
10 import 'package:test_reflective_loader/test_reflective_loader.dart'; 11 import 'package:test_reflective_loader/test_reflective_loader.dart';
11 import 'package:unittest/unittest.dart';
12 12
13 import '../../generated/test_support.dart'; 13 import '../../generated/test_support.dart';
14 import '../../utils.dart'; 14 import '../../utils.dart';
15 15
16 main() { 16 main() {
17 initializeTestEnvironment(); 17 initializeTestEnvironment();
18 defineReflectiveTests(ConstantTaskInputBuilderTest); 18 defineReflectiveSuite(() {
19 defineReflectiveTests(ConstantTaskInputTest); 19 defineReflectiveTests(ConstantTaskInputBuilderTest);
20 defineReflectiveTests(ListTaskInputImplTest); 20 defineReflectiveTests(ConstantTaskInputTest);
21 defineReflectiveTests(ListToListTaskInputTest); 21 defineReflectiveTests(ListTaskInputImplTest);
22 defineReflectiveTests(ListToListTaskInputBuilderTest); 22 defineReflectiveTests(ListToListTaskInputTest);
23 defineReflectiveTests(ListToMapTaskInputBuilderTest); 23 defineReflectiveTests(ListToListTaskInputBuilderTest);
24 defineReflectiveTests(ListToMapTaskInputTest); 24 defineReflectiveTests(ListToMapTaskInputBuilderTest);
25 defineReflectiveTests(ObjectToListTaskInputBuilderTest); 25 defineReflectiveTests(ListToMapTaskInputTest);
26 defineReflectiveTests(ObjectToListTaskInputTest); 26 defineReflectiveTests(ObjectToListTaskInputBuilderTest);
27 defineReflectiveTests(SimpleTaskInputTest); 27 defineReflectiveTests(ObjectToListTaskInputTest);
28 defineReflectiveTests(SimpleTaskInputBuilderTest); 28 defineReflectiveTests(SimpleTaskInputTest);
29 defineReflectiveTests(TopLevelTaskInputBuilderTest); 29 defineReflectiveTests(SimpleTaskInputBuilderTest);
30 defineReflectiveTests(TopLevelTaskInputBuilderTest);
31 });
30 } 32 }
31 33
32 @reflectiveTest 34 @reflectiveTest
33 class ConstantTaskInputBuilderTest extends EngineTestCase { 35 class ConstantTaskInputBuilderTest extends EngineTestCase {
34 static final int value = 7; 36 static final int value = 7;
35 static final ConstantTaskInput<int> input = new ConstantTaskInput<int>(value); 37 static final ConstantTaskInput<int> input = new ConstantTaskInput<int>(value);
36 38
37 ConstantTaskInputBuilder builder; 39 ConstantTaskInputBuilder builder;
38 40
39 void setUp() { 41 void setUp() {
(...skipping 1027 matching lines...) Expand 10 before | Expand all | Expand 10 after
1067 test_moveNext_withSet() { 1069 test_moveNext_withSet() {
1068 Map<String, TaskInput> inputDescriptors = {'one': input1}; 1070 Map<String, TaskInput> inputDescriptors = {'one': input1};
1069 TopLevelTaskInputBuilder builder = 1071 TopLevelTaskInputBuilder builder =
1070 new TopLevelTaskInputBuilder(inputDescriptors); 1072 new TopLevelTaskInputBuilder(inputDescriptors);
1071 expect(builder.moveNext(), true); 1073 expect(builder.moveNext(), true);
1072 builder.currentValue = 'value1'; 1074 builder.currentValue = 'value1';
1073 expect(builder.moveNext(), false); 1075 expect(builder.moveNext(), false);
1074 expect(builder.moveNext(), false); 1076 expect(builder.moveNext(), false);
1075 } 1077 }
1076 } 1078 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698