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

Unified Diff: pkg/analysis_server/test/analysis/update_content_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
« no previous file with comments | « pkg/analysis_server/test/analysis/test_all.dart ('k') | pkg/analysis_server/test/analysis_server_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/test/analysis/update_content_test.dart
diff --git a/pkg/analysis_server/test/analysis/update_content_test.dart b/pkg/analysis_server/test/analysis/update_content_test.dart
index 135ce6ab31509efd998ef0e7008499325c8d0e3d..9681c47e90726913d836349e7aae339fb79c158c 100644
--- a/pkg/analysis_server/test/analysis/update_content_test.dart
+++ b/pkg/analysis_server/test/analysis/update_content_test.dart
@@ -17,9 +17,10 @@ import 'package:typed_mock/typed_mock.dart';
import 'package:unittest/unittest.dart';
import '../analysis_abstract.dart';
+import '../utils.dart';
main() {
- groupSep = ' | ';
+ initializeTestEnvironment();
defineReflectiveTests(UpdateContentTest);
}
@@ -55,8 +56,9 @@ class UpdateContentTest extends AbstractAnalysisTest {
createProject();
addTestFile('');
await server.onAnalysisComplete;
- server.setAnalysisSubscriptions(
- {AnalysisService.NAVIGATION: [testFile].toSet()});
+ server.setAnalysisSubscriptions({
+ AnalysisService.NAVIGATION: [testFile].toSet()
+ });
// update file, analyze, but don't sent notifications
navigationCount = 0;
server.updateContent('1', {testFile: new AddContentOverlay('foo() {}')});
@@ -110,17 +112,23 @@ class UpdateContentTest extends AbstractAnalysisTest {
test_multiple_contexts() async {
String fooPath = '/project1/foo.dart';
- resourceProvider.newFile(fooPath, '''
+ resourceProvider.newFile(
+ fooPath,
+ '''
library foo;
import '../project2/baz.dart';
main() { f(); }''');
String barPath = '/project2/bar.dart';
- resourceProvider.newFile(barPath, '''
+ resourceProvider.newFile(
+ barPath,
+ '''
library bar;
import 'baz.dart';
main() { f(); }''');
String bazPath = '/project2/baz.dart';
- resourceProvider.newFile(bazPath, '''
+ resourceProvider.newFile(
+ bazPath,
+ '''
library baz;
f(int i) {}
''');
« no previous file with comments | « pkg/analysis_server/test/analysis/test_all.dart ('k') | pkg/analysis_server/test/analysis_server_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698