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

Unified Diff: pkg/analysis_services/test/completion/top_level_computer_test.dart

Issue 458073002: rename and improve imported completion computer (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: merge Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/analysis_services/test/completion/test_all.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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');
- });
- }
-}
« no previous file with comments | « pkg/analysis_services/test/completion/test_all.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698