| Index: pkg/analysis_services/test/completion/top_level_computer_test.dart
|
| diff --git a/pkg/analysis_services/test/completion/top_level_computer_test.dart b/pkg/analysis_services/test/completion/top_level_computer_test.dart
|
| deleted file mode 100644
|
| index aa19fd2ed652540cce7b8944cd38fc1961d83881..0000000000000000000000000000000000000000
|
| --- a/pkg/analysis_services/test/completion/top_level_computer_test.dart
|
| +++ /dev/null
|
| @@ -1,81 +0,0 @@
|
| -// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
|
| -// for details. All rights reserved. Use of this source code is governed by a
|
| -// BSD-style license that can be found in the LICENSE file.
|
| -
|
| -library test.services.completion.toplevel;
|
| -
|
| -import 'package:analysis_services/completion/completion_suggestion.dart';
|
| -import 'package:analysis_services/src/completion/top_level_computer.dart';
|
| -import 'package:analysis_testing/reflective_tests.dart';
|
| -import 'package:unittest/unittest.dart';
|
| -
|
| -import 'completion_test_util.dart';
|
| -
|
| -main() {
|
| - groupSep = ' | ';
|
| - runReflectiveTests(TopLevelComputerTest);
|
| -}
|
| -
|
| -@ReflectiveTestCase()
|
| -class TopLevelComputerTest extends AbstractCompletionTest {
|
| -
|
| - @override
|
| - void setUp() {
|
| - super.setUp();
|
| - computer = new TopLevelComputer();
|
| - }
|
| -
|
| - test_class() {
|
| - addSource('/testA.dart', 'class A {int x;} class _B { }');
|
| - addTestSource('import "/testA.dart"; class C {foo(){^}}');
|
| - return computeFull().then((_) {
|
| - assertSuggestClass('A');
|
| - assertNotSuggested('x');
|
| - assertNotSuggested('_B');
|
| - });
|
| - }
|
| -
|
| - test_class_notImported() {
|
| - addSource('/testA.dart', 'class A {int x;} class _B { }');
|
| - addTestSource('class C {foo(){^}}');
|
| - return computeFull().then((_) {
|
| - assertSuggestClass('A', CompletionRelevance.LOW);
|
| - assertNotSuggested('x');
|
| - assertNotSuggested('_B');
|
| - });
|
| - }
|
| -
|
| - test_dartCore() {
|
| - addTestSource('class C {foo(){^}}');
|
| - return computeFull().then((_) {
|
| - assertSuggestClass('Object');
|
| - assertNotSuggested('HtmlElement');
|
| - });
|
| - }
|
| -
|
| - test_dartHtml() {
|
| - addTestSource('import "dart:html"; class C {foo(){^}}');
|
| - return computeFull().then((_) {
|
| - assertSuggestClass('Object');
|
| - assertSuggestClass('HtmlElement');
|
| - });
|
| - }
|
| -
|
| - test_topLevelVar() {
|
| - addSource('/testA.dart', 'var T1; var _T2;');
|
| - addTestSource('import "/testA.dart"; class C {foo(){^}}');
|
| - return computeFull().then((_) {
|
| - assertSuggestTopLevelVar('T1');
|
| - assertNotSuggested('_T2');
|
| - });
|
| - }
|
| -
|
| - test_topLevelVar_notImported() {
|
| - addSource('/testA.dart', 'var T1; var _T2;');
|
| - addTestSource('class C {foo(){^}}');
|
| - return computeFull().then((_) {
|
| - assertSuggestTopLevelVar('T1', CompletionRelevance.LOW);
|
| - assertNotSuggested('_T2');
|
| - });
|
| - }
|
| -}
|
|
|