OLD | NEW |
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2017, 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 import 'package:analysis_server/protocol/protocol_generated.dart'; | 5 import 'package:analysis_server/protocol/protocol_generated.dart'; |
6 import 'package:analyzer_plugin/protocol/protocol_common.dart'; | |
7 import 'package:test/test.dart'; | 6 import 'package:test/test.dart'; |
8 import 'package:test_reflective_loader/test_reflective_loader.dart'; | 7 import 'package:test_reflective_loader/test_reflective_loader.dart'; |
9 | 8 |
10 import '../support/integration_tests.dart'; | 9 import '../support/integration_tests.dart'; |
11 | 10 |
12 main() { | 11 main() { |
13 defineReflectiveSuite(() { | 12 defineReflectiveSuite(() { |
14 defineReflectiveTests(IsPostfixCompletionApplicableTest); | 13 defineReflectiveTests(IsPostfixCompletionApplicableTest); |
15 }); | 14 }); |
16 } | 15 } |
(...skipping 16 matching lines...) Expand all Loading... |
33 | 32 |
34 await analysisFinished; | 33 await analysisFinished; |
35 expect(currentAnalysisErrors[pathname], isEmpty); | 34 expect(currentAnalysisErrors[pathname], isEmpty); |
36 | 35 |
37 // expect a postfix completion applicable result | 36 // expect a postfix completion applicable result |
38 EditIsPostfixCompletionApplicableResult result = | 37 EditIsPostfixCompletionApplicableResult result = |
39 await sendEditIsPostfixCompletionApplicable(pathname, '.tryon', loc); | 38 await sendEditIsPostfixCompletionApplicable(pathname, '.tryon', loc); |
40 expect(result.value, isTrue); | 39 expect(result.value, isTrue); |
41 } | 40 } |
42 } | 41 } |
OLD | NEW |