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

Side by Side Diff: pkg/analysis_server/test/edit/postfix_completion_test.dart

Issue 3001413002: Remove uses of the old plugin model from the analysis server (Closed)
Patch Set: Created 3 years, 4 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) 2017, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2017, 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 import 'package:analysis_server/protocol/protocol.dart'; 5 import 'package:analysis_server/protocol/protocol.dart';
6 import 'package:analysis_server/protocol/protocol_generated.dart'; 6 import 'package:analysis_server/protocol/protocol_generated.dart';
7 import 'package:analysis_server/src/edit/edit_domain.dart'; 7 import 'package:analysis_server/src/edit/edit_domain.dart';
8 import 'package:analyzer_plugin/protocol/protocol_common.dart'; 8 import 'package:analyzer_plugin/protocol/protocol_common.dart';
9 import 'package:plugin/manager.dart';
10 import 'package:test/test.dart'; 9 import 'package:test/test.dart';
11 import 'package:test_reflective_loader/test_reflective_loader.dart'; 10 import 'package:test_reflective_loader/test_reflective_loader.dart';
12 11
13 import '../analysis_abstract.dart'; 12 import '../analysis_abstract.dart';
14 13
15 main() { 14 main() {
16 defineReflectiveSuite(() { 15 defineReflectiveSuite(() {
17 defineReflectiveTests(PostfixCompletionTest); 16 defineReflectiveTests(PostfixCompletionTest);
18 }); 17 });
19 } 18 }
20 19
21 @reflectiveTest 20 @reflectiveTest
22 class PostfixCompletionTest extends AbstractAnalysisTest { 21 class PostfixCompletionTest extends AbstractAnalysisTest {
23 SourceChange change; 22 SourceChange change;
24 23
25 @override 24 @override
26 void setUp() { 25 void setUp() {
27 super.setUp(); 26 super.setUp();
28 createProject(); 27 createProject();
29 ExtensionManager manager = new ExtensionManager();
30 manager.processPlugins([server.serverPlugin]);
31 handler = new EditDomainHandler(server); 28 handler = new EditDomainHandler(server);
32 } 29 }
33 30
34 test_for() async { 31 test_for() async {
35 addTestFile(''' 32 addTestFile('''
36 main() { 33 main() {
37 [].for 34 [].for
38 } 35 }
39 '''); 36 ''');
40 await waitForTasksFinished(); 37 await waitForTasksFinished();
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 if (!isApplicable.value) { 84 if (!isApplicable.value) {
88 fail("Postfix completion not applicable at given location"); 85 fail("Postfix completion not applicable at given location");
89 } 86 }
90 request = new EditGetPostfixCompletionParams(testFile, key, offset) 87 request = new EditGetPostfixCompletionParams(testFile, key, offset)
91 .toRequest('1'); 88 .toRequest('1');
92 response = await waitResponse(request); 89 response = await waitResponse(request);
93 var result = new EditGetPostfixCompletionResult.fromResponse(response); 90 var result = new EditGetPostfixCompletionResult.fromResponse(response);
94 change = result.change; 91 change = result.change;
95 } 92 }
96 } 93 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/test/edit/organize_directives_test.dart ('k') | pkg/analysis_server/test/edit/refactoring_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698