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

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

Issue 139493010: Invoke dart2js lazily when using pub serve. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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_support_invalid_command_line_options_type_test.dart
diff --git a/sdk/lib/_internal/pub/test/transformer/dart2js/does_not_support_invalid_command_line_options_type_test.dart b/sdk/lib/_internal/pub/test/transformer/dart2js/does_not_support_invalid_command_line_options_type_test.dart
index c13a5a28256f2f75e78812c11a2d37b181996357..66ee7037e020f49948036b41b1ebfb6ea82fb82a 100644
--- a/sdk/lib/_internal/pub/test/transformer/dart2js/does_not_support_invalid_command_line_options_type_test.dart
+++ b/sdk/lib/_internal/pub/test/transformer/dart2js/does_not_support_invalid_command_line_options_type_test.dart
@@ -32,12 +32,13 @@ main() {
createLockFile('myapp', pkg: ['barback']);
var server = pubServe();
+ // Make a request first to trigger compilation.
+ requestShould404("main.dart.js");
expect(server.nextErrLine(), completion(equals('Build error:')));
expect(server.nextErrLine(), completion(equals(
'Transform Dart2JS on myapp|web/main.dart threw error: '
'FormatException: Invalid value for \$dart2js.commandLineOptions: '
'"foo" (expected list of strings).')));
- requestShould404("main.dart.js");
endPubServe();
});
}

Powered by Google App Engine
This is Rietveld 408576698