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

Side by Side Diff: pkg/analysis_server/test/integration/analysis/get_hover_test.dart

Issue 2402483002: Remove 'initializeTestEnvironment' from 'analysis_server'. (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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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.integration.analysis.get.hover; 5 library test.integration.analysis.get.hover;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 8
9 import 'package:analysis_server/plugin/protocol/protocol.dart'; 9 import 'package:analysis_server/plugin/protocol/protocol.dart';
10 import 'package:path/path.dart'; 10 import 'package:path/path.dart';
11 import 'package:test/test.dart'; 11 import 'package:test/test.dart';
12 import 'package:test_reflective_loader/test_reflective_loader.dart'; 12 import 'package:test_reflective_loader/test_reflective_loader.dart';
13 13
14 import '../../utils.dart';
15 import '../integration_tests.dart'; 14 import '../integration_tests.dart';
16 15
17 main() { 16 main() {
18 initializeTestEnvironment();
19 defineReflectiveSuite(() { 17 defineReflectiveSuite(() {
20 defineReflectiveTests(AnalysisGetHoverIntegrationTest); 18 defineReflectiveTests(AnalysisGetHoverIntegrationTest);
21 }); 19 });
22 } 20 }
23 21
24 @reflectiveTest 22 @reflectiveTest
25 class AnalysisGetHoverIntegrationTest 23 class AnalysisGetHoverIntegrationTest
26 extends AbstractAnalysisServerIntegrationTest { 24 extends AbstractAnalysisServerIntegrationTest {
27 /** 25 /**
28 * Pathname of the file containing Dart code. 26 * Pathname of the file containing Dart code.
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 tests.add(checkHover( 182 tests.add(checkHover(
185 'func(35', 4, ['func', 'int', 'param'], 'function', ['int', 'void'], 183 'func(35', 4, ['func', 'int', 'param'], 'function', ['int', 'void'],
186 docRegexp: 'Documentation for func')); 184 docRegexp: 'Documentation for func'));
187 tests.add(checkHover('35', 2, null, null, ['int'], 185 tests.add(checkHover('35', 2, null, null, ['int'],
188 isLiteral: true, parameterRegexps: ['int', 'param'])); 186 isLiteral: true, parameterRegexps: ['int', 'param']));
189 tests.add(checkNoHover('comment')); 187 tests.add(checkNoHover('comment'));
190 return Future.wait(tests); 188 return Future.wait(tests);
191 }); 189 });
192 } 190 }
193 } 191 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698