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

Unified Diff: pkg/analysis_server/test/services/completion/local_computer_test.dart

Issue 645573004: fix suggestions in class body and more common tests (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: merge Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/analysis_server/test/services/completion/imported_computer_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/test/services/completion/local_computer_test.dart
diff --git a/pkg/analysis_server/test/services/completion/local_computer_test.dart b/pkg/analysis_server/test/services/completion/local_computer_test.dart
index c8048795f591e864d0adde018a5575a7d48cf4a5..c235462cd5b78071f3faf4f2ef64eebeadeeb204 100644
--- a/pkg/analysis_server/test/services/completion/local_computer_test.dart
+++ b/pkg/analysis_server/test/services/completion/local_computer_test.dart
@@ -24,57 +24,6 @@ class LocalComputerTest extends AbstractSelectorSuggestionTest {
computer = new LocalComputer();
}
- test_CatchClause_typed() {
- // Block CatchClause TryStatement
- addTestSource('class A {a() {try{} on E catch (e) {^}}}');
- expect(computeFast(), isTrue);
- assertSuggestParameter('e', 'E');
- }
-
- test_CatchClause_untyped() {
- // Block CatchClause TryStatement
- addTestSource('class A {a() {try{} catch (e, s) {^}}}');
- expect(computeFast(), isTrue);
- assertSuggestParameter('e', null);
- assertSuggestParameter('s', 'StackTrace');
- }
-
- test_ClassDeclaration_body() {
- // ClassDeclaration CompilationUnit
- addTestSource( //
- 'import "boo.dart" as x;' //
- ' @deprecated class A {^}' //
- ' class _B {}' //
- ' A T;');
- expect(computeFast(), isTrue);
- var a = assertSuggestClass('A');
- expect(a.element.isDeprecated, isTrue);
- expect(a.element.isPrivate, isFalse);
- var b = assertSuggestClass('_B');
- expect(b.element.isDeprecated, isFalse);
- expect(b.element.isPrivate, isTrue);
- assertSuggestTopLevelVar('T', 'A');
- // Library prefix suggestion is provided by ImportedComputer
- assertNotSuggested('x');
- }
-
- test_ExpressionStatement_name() {
- // ExpressionStatement Block
- addTestSource('class A {a() {var f; A ^}}');
- expect(computeFast(), isTrue);
- assertNotSuggested('A');
- assertNotSuggested('a');
- assertNotSuggested('f');
- }
-
- test_FieldDeclaration_name() {
- // SimpleIdentifier VariableDeclaration VariableDeclarationList
- // FieldDeclaration
- addTestSource('class A {B ^}}');
- expect(computeFast(), isTrue);
- assertNotSuggested('A');
- }
-
test_ForEachStatement_body_typed() {
// Block ForEachStatement
addTestSource('main(args) {for (int foo in bar) {^}}');
« no previous file with comments | « pkg/analysis_server/test/services/completion/imported_computer_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698