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

Side by Side Diff: pkg/analysis_server/test/services/completion/dart/imported_reference_contributor_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.services.completion.contributor.dart.imported_ref; 5 library test.services.completion.contributor.dart.imported_ref;
6 6
7 import 'package:analysis_server/plugin/protocol/protocol.dart' 7 import 'package:analysis_server/plugin/protocol/protocol.dart'
8 hide Element, ElementKind; 8 hide Element, ElementKind;
9 import 'package:analysis_server/src/protocol_server.dart'; 9 import 'package:analysis_server/src/protocol_server.dart';
10 import 'package:analysis_server/src/provisional/completion/dart/completion_dart. dart'; 10 import 'package:analysis_server/src/provisional/completion/dart/completion_dart. dart';
11 import 'package:analysis_server/src/services/completion/dart/imported_reference_ contributor.dart'; 11 import 'package:analysis_server/src/services/completion/dart/imported_reference_ contributor.dart';
12 import 'package:analyzer/dart/ast/ast.dart'; 12 import 'package:analyzer/dart/ast/ast.dart';
13 import 'package:analyzer/src/generated/engine.dart'; 13 import 'package:analyzer/src/generated/engine.dart';
14 import 'package:analyzer/src/generated/source.dart'; 14 import 'package:analyzer/src/generated/source.dart';
15 import 'package:test/test.dart';
15 import 'package:test_reflective_loader/test_reflective_loader.dart'; 16 import 'package:test_reflective_loader/test_reflective_loader.dart';
16 import 'package:unittest/unittest.dart';
17 17
18 import '../../../abstract_context.dart'; 18 import '../../../abstract_context.dart';
19 import '../../../utils.dart'; 19 import '../../../utils.dart';
20 import 'completion_contributor_util.dart'; 20 import 'completion_contributor_util.dart';
21 21
22 main() { 22 main() {
23 initializeTestEnvironment(); 23 initializeTestEnvironment();
24 defineReflectiveTests(ImportedReferenceContributorTest); 24 defineReflectiveSuite(() {
25 defineReflectiveTests(ImportedReferenceContributorTest);
26 });
25 } 27 }
26 28
27 @reflectiveTest 29 @reflectiveTest
28 class ImportedReferenceContributorTest extends DartCompletionContributorTest { 30 class ImportedReferenceContributorTest extends DartCompletionContributorTest {
29 @override 31 @override
30 bool get isNullExpectedReturnTypeConsideredDynamic => false; 32 bool get isNullExpectedReturnTypeConsideredDynamic => false;
31 33
32 @override 34 @override
33 DartCompletionContributor createContributor() { 35 DartCompletionContributor createContributor() {
34 return new ImportedReferenceContributor(); 36 return new ImportedReferenceContributor();
(...skipping 4467 matching lines...) Expand 10 before | Expand all | Expand 10 after
4502 assertNotSuggested('foo2'); 4504 assertNotSuggested('foo2');
4503 assertNotSuggested('bar2'); 4505 assertNotSuggested('bar2');
4504 assertNotSuggested('_B'); 4506 assertNotSuggested('_B');
4505 assertNotSuggested('Y'); 4507 assertNotSuggested('Y');
4506 assertNotSuggested('C'); 4508 assertNotSuggested('C');
4507 assertNotSuggested('f'); 4509 assertNotSuggested('f');
4508 assertNotSuggested('x'); 4510 assertNotSuggested('x');
4509 assertNotSuggested('e'); 4511 assertNotSuggested('e');
4510 } 4512 }
4511 } 4513 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698