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

Side by Side Diff: pkg/analysis_server/test/services/completion/completion_manager_test.dart

Issue 1533973002: remove CompletionCache and obsolete tests, and cleanup imports (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: merge Created 5 years 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
(Empty)
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
3 // BSD-style license that can be found in the LICENSE file.
4
5 library test.services.completion.manager;
6
7 import 'package:analysis_server/src/services/completion/completion_manager.dart' ;
8 import 'package:analysis_server/src/services/completion/dart_completion_manager. dart';
9 import 'package:analyzer/src/generated/source.dart';
10 import 'package:test_reflective_loader/test_reflective_loader.dart';
11 import 'package:unittest/unittest.dart';
12
13 import '../../abstract_context.dart';
14 import '../../utils.dart';
15
16 main() {
17 initializeTestEnvironment();
18 defineReflectiveTests(CompletionManagerTest);
19 }
20
21 @reflectiveTest
22 class CompletionManagerTest extends AbstractContextTest {
23 var perf = new CompletionPerformance();
24
25 test_dart() {
26 Source source = addSource('/does/not/exist.dart', '');
27 var manager = new CompletionManager.create(context, source, null, []);
28 expect(manager.runtimeType, DartCompletionManager);
29 }
30
31 test_html() {
32 Source source = addSource('/does/not/exist.html', '');
33 var manager = new CompletionManager.create(context, source, null, []);
34 expect(manager.runtimeType, NoOpCompletionManager);
35 }
36
37 test_null_context() {
38 Source source = addSource('/does/not/exist.dart', '');
39 var manager = new CompletionManager.create(null, source, null, []);
40 expect(manager.runtimeType, NoOpCompletionManager);
41 }
42
43 test_other() {
44 Source source = addSource('/does/not/exist.foo', '');
45 var manager = new CompletionManager.create(context, source, null, []);
46 expect(manager.runtimeType, NoOpCompletionManager);
47 }
48 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698