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

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

Issue 2399913002: Remove 'initializeTestEnvironment' from 'analyzer'. (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/test.dart';
11 import 'package:test_reflective_loader/test_reflective_loader.dart'; 11 import 'package:test_reflective_loader/test_reflective_loader.dart';
12 12
13 import '../../generated/test_support.dart'; 13 import '../../generated/test_support.dart';
14 import '../../utils.dart';
15 14
16 main() { 15 main() {
17 initializeTestEnvironment();
18 defineReflectiveSuite(() { 16 defineReflectiveSuite(() {
19 defineReflectiveTests(ConstantTaskInputBuilderTest); 17 defineReflectiveTests(ConstantTaskInputBuilderTest);
20 defineReflectiveTests(ConstantTaskInputTest); 18 defineReflectiveTests(ConstantTaskInputTest);
21 defineReflectiveTests(ListTaskInputImplTest); 19 defineReflectiveTests(ListTaskInputImplTest);
22 defineReflectiveTests(ListToListTaskInputTest); 20 defineReflectiveTests(ListToListTaskInputTest);
23 defineReflectiveTests(ListToListTaskInputBuilderTest); 21 defineReflectiveTests(ListToListTaskInputBuilderTest);
24 defineReflectiveTests(ListToMapTaskInputBuilderTest); 22 defineReflectiveTests(ListToMapTaskInputBuilderTest);
25 defineReflectiveTests(ListToMapTaskInputTest); 23 defineReflectiveTests(ListToMapTaskInputTest);
26 defineReflectiveTests(ObjectToListTaskInputBuilderTest); 24 defineReflectiveTests(ObjectToListTaskInputBuilderTest);
27 defineReflectiveTests(ObjectToListTaskInputTest); 25 defineReflectiveTests(ObjectToListTaskInputTest);
(...skipping 1041 matching lines...) Expand 10 before | Expand all | Expand 10 after
1069 test_moveNext_withSet() { 1067 test_moveNext_withSet() {
1070 Map<String, TaskInput> inputDescriptors = {'one': input1}; 1068 Map<String, TaskInput> inputDescriptors = {'one': input1};
1071 TopLevelTaskInputBuilder builder = 1069 TopLevelTaskInputBuilder builder =
1072 new TopLevelTaskInputBuilder(inputDescriptors); 1070 new TopLevelTaskInputBuilder(inputDescriptors);
1073 expect(builder.moveNext(), true); 1071 expect(builder.moveNext(), true);
1074 builder.currentValue = 'value1'; 1072 builder.currentValue = 'value1';
1075 expect(builder.moveNext(), false); 1073 expect(builder.moveNext(), false);
1076 expect(builder.moveNext(), false); 1074 expect(builder.moveNext(), false);
1077 } 1075 }
1078 } 1076 }
OLDNEW
« no previous file with comments | « pkg/analyzer/test/src/task/incremental_element_builder_test.dart ('k') | pkg/analyzer/test/src/task/manager_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698