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

Unified Diff: pkg/analysis_server/test/integration/server/set_subscriptions_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/integration/server/set_subscriptions_test.dart
diff --git a/pkg/analysis_server/test/integration/server/set_subscriptions_test.dart b/pkg/analysis_server/test/integration/server/set_subscriptions_test.dart
index 517445b085b797e69afe5986ec8ae61a4be2788e..88df52e20978b93ab770a9c9c2b899bafd062bb6 100644
--- a/pkg/analysis_server/test/integration/server/set_subscriptions_test.dart
+++ b/pkg/analysis_server/test/integration/server/set_subscriptions_test.dart
@@ -10,9 +10,11 @@ import 'package:analysis_server/src/protocol.dart';
import 'package:test_reflective_loader/test_reflective_loader.dart';
import 'package:unittest/unittest.dart';
+import '../../utils.dart';
import '../integration_tests.dart';
main() {
+ initializeTestEnvironment();
defineReflectiveTests(Test);
}
@@ -31,7 +33,9 @@ class Test extends AbstractAnalysisServerIntegrationTest {
});
return sendServerSetSubscriptions([]).then((_) {
String pathname = sourcePath('test.dart');
- writeFile(pathname, '''
+ writeFile(
+ pathname,
+ '''
main() {
var x;
}''');
@@ -42,7 +46,9 @@ main() {
expect(statusReceived, isFalse);
return sendServerSetSubscriptions([ServerService.STATUS]).then((_) {
// Tickle test.dart just in case analysis has already completed.
- writeFile(pathname, '''
+ writeFile(
+ pathname,
+ '''
main() {
var y;
}''');

Powered by Google App Engine
This is Rietveld 408576698