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

Side by Side Diff: sdk/lib/_internal/pub_generated/test/run/app_can_read_from_stdin_test.dart

Issue 937243002: Revert "Revert "Use native async/await support in pub."" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file.
4
5 import '../descriptor.dart' as d;
6 import '../test_pub.dart';
7
8 const SCRIPT = """
9 import 'dart:io';
10
11 main() {
12 print("started");
13 var line1 = stdin.readLineSync();
14 print("between");
15 var line2 = stdin.readLineSync();
16 print(line1);
17 print(line2);
18 }
19 """;
20
21 main() {
22 initConfig();
23 integration('the spawned application can read from stdin', () {
24 d.dir(
25 appPath,
26 [d.appPubspec(), d.dir("bin", [d.file("script.dart", SCRIPT)])]).create( );
27
28 var pub = pubRun(args: ["script"]);
29
30 pub.stdout.expect("started");
31 pub.writeLine("first");
32 pub.stdout.expect("between");
33 pub.writeLine("second");
34 pub.stdout.expect("first");
35 pub.stdout.expect("second");
36 pub.shouldExit(0);
37 });
38 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698