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

Unified Diff: sdk/lib/_internal/pub/test/transformer/dart2js/does_not_compile_until_its_output_is_requested_test.dart

Issue 164773003: Change ScheduledProcess's output streams over to be ScheduledStreams. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: code review Created 6 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: sdk/lib/_internal/pub/test/transformer/dart2js/does_not_compile_until_its_output_is_requested_test.dart
diff --git a/sdk/lib/_internal/pub/test/transformer/dart2js/does_not_compile_until_its_output_is_requested_test.dart b/sdk/lib/_internal/pub/test/transformer/dart2js/does_not_compile_until_its_output_is_requested_test.dart
index f26c60f6b8f8fa025b23d980c2603b40f2cffba4..e25a36852896dee7c333ce9580343fb145c0d0f7 100644
--- a/sdk/lib/_internal/pub/test/transformer/dart2js/does_not_compile_until_its_output_is_requested_test.dart
+++ b/sdk/lib/_internal/pub/test/transformer/dart2js/does_not_compile_until_its_output_is_requested_test.dart
@@ -26,17 +26,14 @@ main() {
createLockFile('myapp', pkg: ['barback']);
var server = pubServe();
- expect(server.nextLine(),
- completion(equals("Build completed successfully")));
+ server.stdout.expect("Build completed successfully");
// Once we request the output, it should start compiling and fail.
requestShould404("syntax-error.dart.js");
- expect(server.nextLine(),
- completion(equals("[Info from Dart2JS]:")));
- expect(server.nextLine(),
- completion(equals("Compiling myapp|web/syntax-error.dart...")));
- expect(server.nextLine(),
- completion(equals("Build completed with 1 errors.")));
+ server.stdout.expect(emitsLines(
+ "[Info from Dart2JS]:\n"
+ "Compiling myapp|web/syntax-error.dart...\n"
+ "Build completed with 1 errors."));
endPubServe();
});
}

Powered by Google App Engine
This is Rietveld 408576698