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

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

Issue 1266923004: More fixes for failures on the Windows bot (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 4 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 098ff7dd075ce50e6975472585d017f6e953f382..3a16a14cc30e4f3baf75fd1f866a413c0362a102 100644
--- a/pkg/analysis_server/test/services/refactoring/rename_library_test.dart
+++ b/pkg/analysis_server/test/services/refactoring/rename_library_test.dart
@@ -9,10 +9,11 @@ import 'package:analyzer/src/generated/source.dart';
import 'package:test_reflective_loader/test_reflective_loader.dart';
import 'package:unittest/unittest.dart';
+import '../../utils.dart';
import 'abstract_rename.dart';
main() {
- groupSep = ' | ';
+ initializeTestEnvironment();
defineReflectiveTests(RenameLibraryTest);
}
@@ -37,11 +38,14 @@ library my.app;
refactoring.newName = 'my.app';
assertRefactoringStatus(
refactoring.checkNewName(), RefactoringProblemSeverity.FATAL,
- expectedMessage: "The new name must be different than the current name.");
+ expectedMessage:
+ "The new name must be different than the current name.");
}
test_createChange() async {
- Source unitSource = addSource('/part.dart', '''
+ Source unitSource = addSource(
+ '/part.dart',
+ '''
part of my.app;
''');
indexTestUnit('''
@@ -60,7 +64,9 @@ part 'part.dart';
library the.new.name;
part 'part.dart';
''');
- assertFileChangeResult('/part.dart', '''
+ assertFileChangeResult(
+ '/part.dart',
+ '''
part of the.new.name;
''');
}

Powered by Google App Engine
This is Rietveld 408576698