Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(24)

Unified Diff: pkg/analysis_server/test/services/refactoring/move_file_test.dart

Issue 1144393006: Bug fixes for the new task model (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: pkg/analysis_server/test/services/refactoring/move_file_test.dart
diff --git a/pkg/analysis_server/test/services/refactoring/move_file_test.dart b/pkg/analysis_server/test/services/refactoring/move_file_test.dart
index a3dd17da688462d217f052b9b3772f6dab3b8a90..cbae32f2c3b58e42ea5d98584863ec9df8241d7b 100644
--- a/pkg/analysis_server/test/services/refactoring/move_file_test.dart
+++ b/pkg/analysis_server/test/services/refactoring/move_file_test.dart
@@ -145,14 +145,18 @@ import 'new_name.dart';
String pathA = '/project/000/1111/a.dart';
testFile = '/project/000/1111/22/test.dart';
addSource(pathA, '''
+library lib;
part '22/test.dart';
''');
- addTestSource('');
+ addTestSource('''
+part of lib;
+''');
_performAnalysis();
// perform refactoring
_createRefactoring('/project/000/1111/22/new_name.dart');
await _assertSuccessfulRefactoring();
assertFileChangeResult(pathA, '''
+library lib;
part '22/new_name.dart';
''');
assertNoFileChange(testFile);
@@ -163,20 +167,26 @@ part '22/new_name.dart';
String pathB = '/project/000/b.dart';
testFile = '/project/000/1111/22/test.dart';
addSource(pathA, '''
+library lib;
part '22/test.dart';
''');
addSource(pathB, '''
+library lib;
part '1111/22/test.dart';
''');
- addTestSource('');
+ addTestSource('''
+part of lib;
+''');
_performAnalysis();
// perform refactoring
_createRefactoring('/project/000/1111/22/new_name.dart');
await _assertSuccessfulRefactoring();
assertFileChangeResult(pathA, '''
+library lib;
part '22/new_name.dart';
''');
assertFileChangeResult(pathB, '''
+library lib;
part '1111/22/new_name.dart';
''');
assertNoFileChange(testFile);

Powered by Google App Engine
This is Rietveld 408576698