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

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

Issue 908463004: Convert refactoring tests to use 'await'. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 10 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/rename_library_test.dart
diff --git a/pkg/analysis_server/test/services/refactoring/rename_library_test.dart b/pkg/analysis_server/test/services/refactoring/rename_library_test.dart
index 552ff5625c687eec6f3f34aaa1f6b6ad36805fd3..4df587dff8749f296fcd15680c0b2527219248a1 100644
--- a/pkg/analysis_server/test/services/refactoring/rename_library_test.dart
+++ b/pkg/analysis_server/test/services/refactoring/rename_library_test.dart
@@ -46,7 +46,7 @@ library my.app;
expectedMessage: "The new name must be different than the current name.");
}
- test_createChange() {
+ test_createChange() async {
Source unitSource = addSource('/part.dart', '''
part of my.app;
''');
@@ -63,14 +63,13 @@ part 'part.dart';
expect(refactoring.elementKindName, 'library');
refactoring.newName = 'the.new.name';
// validate change
- return assertSuccessfulRefactoring('''
+ await assertSuccessfulRefactoring('''
library the.new.name;
part 'part.dart';
-''').then((_) {
- assertFileChangeResult('/part.dart', '''
+''');
+ assertFileChangeResult('/part.dart', '''
part of the.new.name;
''');
- });
}
void _createRenameRefactoring() {

Powered by Google App Engine
This is Rietveld 408576698