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

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

Issue 2394683006: Switch analysis_server to use 'package:test'. (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_reflective_loader/test_reflective_loader.dart'; 12 import 'package:test_reflective_loader/test_reflective_loader.dart';
12 import 'package:unittest/unittest.dart';
13 13
14 import '../../utils.dart'; 14 import '../../utils.dart';
15 import '../integration_tests.dart'; 15 import '../integration_tests.dart';
16 16
17 main() { 17 main() {
18 initializeTestEnvironment(); 18 initializeTestEnvironment();
19 defineReflectiveTests(AnalysisGetHoverIntegrationTest); 19 defineReflectiveSuite(() {
20 defineReflectiveTests(AnalysisGetHoverIntegrationTest);
21 });
20 } 22 }
21 23
22 @reflectiveTest 24 @reflectiveTest
23 class AnalysisGetHoverIntegrationTest 25 class AnalysisGetHoverIntegrationTest
24 extends AbstractAnalysisServerIntegrationTest { 26 extends AbstractAnalysisServerIntegrationTest {
25 /** 27 /**
26 * Pathname of the file containing Dart code. 28 * Pathname of the file containing Dart code.
27 */ 29 */
28 String pathname; 30 String pathname;
29 31
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 tests.add(checkHover( 184 tests.add(checkHover(
183 'func(35', 4, ['func', 'int', 'param'], 'function', ['int', 'void'], 185 'func(35', 4, ['func', 'int', 'param'], 'function', ['int', 'void'],
184 docRegexp: 'Documentation for func')); 186 docRegexp: 'Documentation for func'));
185 tests.add(checkHover('35', 2, null, null, ['int'], 187 tests.add(checkHover('35', 2, null, null, ['int'],
186 isLiteral: true, parameterRegexps: ['int', 'param'])); 188 isLiteral: true, parameterRegexps: ['int', 'param']));
187 tests.add(checkNoHover('comment')); 189 tests.add(checkNoHover('comment'));
188 return Future.wait(tests); 190 return Future.wait(tests);
189 }); 191 });
190 } 192 }
191 } 193 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698