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

Unified Diff: pkg/analysis_server/test/src/utilities/change_builder_core_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/src/utilities/change_builder_core_test.dart
diff --git a/pkg/analysis_server/test/src/utilities/change_builder_core_test.dart b/pkg/analysis_server/test/src/utilities/change_builder_core_test.dart
index a378fad9692269bd74026f817690bbfefc0c4bda..0647a831211ab88aad0653b2120e344ae703d741 100644
--- a/pkg/analysis_server/test/src/utilities/change_builder_core_test.dart
+++ b/pkg/analysis_server/test/src/utilities/change_builder_core_test.dart
@@ -4,15 +4,17 @@
library analysis_server.test.src.utilities.change_builder_core_test;
-import 'package:analysis_server/src/utilities/change_builder_core.dart';
import 'package:analysis_server/src/protocol.dart';
+import 'package:analysis_server/src/utilities/change_builder_core.dart';
import 'package:analysis_server/utilities/change_builder_core.dart';
import 'package:test_reflective_loader/test_reflective_loader.dart';
import 'package:unittest/unittest.dart';
+
import '../../domain_execution_test.dart';
+import '../../utils.dart';
main() {
- groupSep = ' | ';
+ initializeTestEnvironment();
defineReflectiveTests(ChangeBuilderImplTest);
defineReflectiveTests(EditBuilderImplTest);
defineReflectiveTests(FileEditBuilderImplTest);
@@ -25,7 +27,8 @@ class ChangeBuilderImplTest {
ChangeBuilderImpl builder = new ChangeBuilderImpl();
TestSource source = new TestSource('/test.dart');
int timeStamp = 54;
- FileEditBuilderImpl fileEditBuilder = builder.createFileEditBuilder(source, timeStamp);
+ FileEditBuilderImpl fileEditBuilder =
+ builder.createFileEditBuilder(source, timeStamp);
expect(fileEditBuilder, new isInstanceOf<FileEditBuilder>());
SourceFileEdit fileEdit = fileEditBuilder.fileEdit;
expect(fileEdit.file, source.fullName);
@@ -190,7 +193,8 @@ class EditBuilderImplTest {
expect(edit, isNotNull);
expect(edit.offset, offset);
expect(edit.length, length);
- expect(edit.replacement == '$text\n' || edit.replacement == '$text\r\n', isTrue);
+ expect(edit.replacement == '$text\n' || edit.replacement == '$text\r\n',
+ isTrue);
}
}
« no previous file with comments | « pkg/analysis_server/test/src/test_all.dart ('k') | pkg/analysis_server/test/src/utilities/change_builder_dart_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698