Chromium Code Reviews| Index: sdk/lib/_internal/pub/test/serve/utils.dart |
| diff --git a/sdk/lib/_internal/pub/test/serve/utils.dart b/sdk/lib/_internal/pub/test/serve/utils.dart |
| index 46d2a148fea25791f2c46b5f5b4509b150ac0558..cfa43906e9a3914a8f94f913e1b45dab23429d55 100644 |
| --- a/sdk/lib/_internal/pub/test/serve/utils.dart |
| +++ b/sdk/lib/_internal/pub/test/serve/utils.dart |
| @@ -88,11 +88,19 @@ class DartTransformer extends Transformer { |
| /// Schedules starting the "pub serve" process. |
| /// |
| /// If [shouldInstallFirst] is `true`, validates that pub install is run first. |
| +/// If [dart2js] is `false` does not compiles Dart entrypoints in "web" to |
|
nweiz
2013/10/04 20:26:10
Comma after "`false`", "compiles" -> "compile".
Bob Nystrom
2013/10/04 23:23:59
Done.
|
| +/// JavaScript. |
| /// |
| /// Returns the `pub serve` process. |
| -ScheduledProcess startPubServe({bool shouldInstallFirst: false}) { |
| +ScheduledProcess startPubServe({bool shouldInstallFirst: false, |
| + bool dart2js: true}) { |
| + |
| // Use port 0 to get an ephemeral port. |
| - _pubServer = startPub(args: ["serve", "--port=0", "--hostname=127.0.0.1"]); |
| + var args = ["serve", "--port=0", "--hostname=127.0.0.1"]; |
| + |
| + if (!dart2js) args.add("--no-dart2js"); |
| + |
| + _pubServer = startPub(args: args); |
| if (shouldInstallFirst) { |
| expect(_pubServer.nextLine(), |