| 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.edit.assists; | 5 library test.edit.assists; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 | 8 |
| 9 import 'package:analysis_server/src/constants.dart'; | 9 import 'package:analysis_server/src/constants.dart'; |
| 10 import 'package:analysis_server/src/edit/edit_domain.dart'; | 10 import 'package:analysis_server/src/edit/edit_domain.dart'; |
| 11 import 'package:analysis_server/src/protocol.dart'; | 11 import 'package:analysis_server/src/protocol.dart'; |
| 12 import 'package:analysis_server/src/services/constants.dart'; | |
| 13 import 'package:analysis_server/src/services/correction/change.dart'; | 12 import 'package:analysis_server/src/services/correction/change.dart'; |
| 14 import 'package:analysis_testing/reflective_tests.dart'; | 13 import 'package:analysis_testing/reflective_tests.dart'; |
| 15 import 'package:unittest/unittest.dart' hide ERROR; | 14 import 'package:unittest/unittest.dart' hide ERROR; |
| 16 | 15 |
| 17 import '../analysis_abstract.dart'; | 16 import '../analysis_abstract.dart'; |
| 18 | 17 |
| 19 | 18 |
| 20 main() { | 19 main() { |
| 21 groupSep = ' | '; | 20 groupSep = ' | '; |
| 22 runReflectiveTests(AssistsTest); | 21 runReflectiveTests(AssistsTest); |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 if (change.message == message) { | 120 if (change.message == message) { |
| 122 String resultCode = | 121 String resultCode = |
| 123 Edit.applySequence(testCode, change.fileEdits[0].edits); | 122 Edit.applySequence(testCode, change.fileEdits[0].edits); |
| 124 expect(resultCode, expectedCode); | 123 expect(resultCode, expectedCode); |
| 125 return; | 124 return; |
| 126 } | 125 } |
| 127 } | 126 } |
| 128 fail("Expected to find |$message| in\n" + changes.join('\n')); | 127 fail("Expected to find |$message| in\n" + changes.join('\n')); |
| 129 } | 128 } |
| 130 } | 129 } |
| OLD | NEW |