| 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.dart.keyword; | 5 library test.services.completion.dart.keyword; |
| 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/keyword_computer.dart'; | 8 import 'package:analysis_server/src/services/completion/keyword_computer.dart'; |
| 9 import 'package:analysis_testing/reflective_tests.dart'; | 9 import 'package:analysis_testing/reflective_tests.dart'; |
| 10 import 'package:analyzer/src/generated/scanner.dart'; | 10 import 'package:analyzer/src/generated/scanner.dart'; |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 'abstract', | 138 'abstract', |
| 139 'class', | 139 'class', |
| 140 'const', | 140 'const', |
| 141 'export', | 141 'export', |
| 142 'final', | 142 'final', |
| 143 'import', | 143 'import', |
| 144 'part', | 144 'part', |
| 145 'typedef', | 145 'typedef', |
| 146 'var']); | 146 'var']); |
| 147 } | 147 } |
| 148 |
| 149 test_partial_class() { |
| 150 addTestSource('cl^'); |
| 151 expect(computeFast(), isTrue); |
| 152 assertSuggestKeywords( |
| 153 [ |
| 154 'abstract', |
| 155 'class', |
| 156 'const', |
| 157 'export', |
| 158 'final', |
| 159 'import', |
| 160 'library', |
| 161 'part', |
| 162 'typedef', |
| 163 'var']); |
| 164 } |
| 165 |
| 166 test_partial_class2() { |
| 167 addTestSource('library a; cl^'); |
| 168 expect(computeFast(), isTrue); |
| 169 assertSuggestKeywords( |
| 170 [ |
| 171 'abstract', |
| 172 'class', |
| 173 'const', |
| 174 'export', |
| 175 'final', |
| 176 'import', |
| 177 'part', |
| 178 'typedef', |
| 179 'var']); |
| 180 } |
| 148 } | 181 } |
| OLD | NEW |