| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 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 | 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 library test.services.completion.toplevel; | 5 library test.services.completion.toplevel; |
| 6 | 6 |
| 7 import 'package:analysis_server/src/protocol.dart'; | 7 import 'package:analysis_server/src/protocol.dart'; |
| 8 import 'package:analysis_server/src/services/completion/imported_computer.dart'; | 8 import 'package:analysis_server/src/services/completion/imported_computer.dart'; |
| 9 import 'package:unittest/unittest.dart'; | 9 import 'package:unittest/unittest.dart'; |
| 10 | 10 |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 // SimpleIdentifier VariableDeclaration VariableDeclarationList | 119 // SimpleIdentifier VariableDeclaration VariableDeclarationList |
| 120 // FieldDeclaration | 120 // FieldDeclaration |
| 121 addSource('/testA.dart', 'class A { }'); | 121 addSource('/testA.dart', 'class A { }'); |
| 122 addTestSource(''' | 122 addTestSource(''' |
| 123 import "/testA.dart"; | 123 import "/testA.dart"; |
| 124 class C {var ^}'''); | 124 class C {var ^}'''); |
| 125 return computeFull().then((_) { | 125 return computeFull().then((_) { |
| 126 assertNotSuggested('A'); | 126 assertNotSuggested('A'); |
| 127 }); | 127 }); |
| 128 } | 128 } |
| 129 | |
| 130 test_ImportDirective_dart() { | |
| 131 // SimpleStringLiteral ImportDirective | |
| 132 addTestSource(''' | |
| 133 import "dart^"; | |
| 134 main() {}'''); | |
| 135 return computeFull().then((_) { | |
| 136 assertNotSuggested('Object'); | |
| 137 }); | |
| 138 } | |
| 139 } | 129 } |
| OLD | NEW |