| 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.refactoring.rename; | 5 library test.services.refactoring.rename; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 | 8 |
| 9 import 'package:analysis_server/src/protocol2.dart' show SourceChange, | 9 import 'package:analysis_server/src/protocol.dart' hide Element; |
| 10 SourceEdit, SourceFileEdit; | |
| 11 import 'package:analysis_server/src/services/correction/namespace.dart'; | 10 import 'package:analysis_server/src/services/correction/namespace.dart'; |
| 12 import 'package:analysis_server/src/services/refactoring/refactoring.dart'; | 11 import 'package:analysis_server/src/services/refactoring/refactoring.dart'; |
| 13 import 'package:analyzer/file_system/file_system.dart'; | 12 import 'package:analyzer/file_system/file_system.dart'; |
| 14 import 'package:analyzer/src/generated/ast.dart'; | 13 import 'package:analyzer/src/generated/ast.dart'; |
| 15 import 'package:analyzer/src/generated/element.dart'; | 14 import 'package:analyzer/src/generated/element.dart'; |
| 16 import 'package:analyzer/src/generated/source.dart'; | 15 import 'package:analyzer/src/generated/source.dart'; |
| 17 import 'package:unittest/unittest.dart'; | 16 import 'package:unittest/unittest.dart'; |
| 18 | 17 |
| 19 import 'abstract_refactoring.dart'; | 18 import 'abstract_refactoring.dart'; |
| 20 | 19 |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 // void assertChangeResult(Change change, Source source, String expected) | 132 // void assertChangeResult(Change change, Source source, String expected) |
| 134 // { | 133 // { |
| 135 // SourceChange sourceChange = getSourceChange(compositeChange, source); | 134 // SourceChange sourceChange = getSourceChange(compositeChange, source); |
| 136 // assertNotNull("No change for: " + source.toString(), sourceChange); | 135 // assertNotNull("No change for: " + source.toString(), sourceChange); |
| 137 // String sourceResult = getChangeResult(context, source, sourceChange); | 136 // String sourceResult = getChangeResult(context, source, sourceChange); |
| 138 // assertEquals(expected, sourceResult); | 137 // assertEquals(expected, sourceResult); |
| 139 //// AnalysisContext context = getAnalysisContext(); | 138 //// AnalysisContext context = getAnalysisContext(); |
| 140 //// assertChangeResult(context, compositeChange, source, expected); | 139 //// assertChangeResult(context, compositeChange, source, expected); |
| 141 // } | 140 // } |
| 142 } | 141 } |
| OLD | NEW |