OLD | NEW |
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 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. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
| 5 // TODO(nweiz): Remove this tag when we can get [packageDir] working without it |
| 6 // (dart-lang/sdk#24022). |
| 7 library test.test.io; |
| 8 |
5 import 'dart:async'; | 9 import 'dart:async'; |
6 import 'dart:io'; | 10 import 'dart:io'; |
7 | 11 |
8 import 'package:path/path.dart' as p; | 12 import 'package:path/path.dart' as p; |
9 import 'package:scheduled_test/descriptor.dart' as d; | 13 import 'package:scheduled_test/descriptor.dart' as d; |
10 import 'package:scheduled_test/scheduled_process.dart'; | 14 import 'package:scheduled_test/scheduled_process.dart'; |
11 import 'package:scheduled_test/scheduled_stream.dart'; | 15 import 'package:scheduled_test/scheduled_stream.dart'; |
12 import 'package:scheduled_test/scheduled_test.dart'; | 16 import 'package:scheduled_test/scheduled_test.dart'; |
13 import 'package:test/src/util/io.dart'; | 17 import 'package:test/src/util/io.dart'; |
14 | 18 |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 var match; | 161 var match; |
158 while (match == null) { | 162 while (match == null) { |
159 var line = await pub.stdout.next(); | 163 var line = await pub.stdout.next(); |
160 match = _servingRegExp.firstMatch(line); | 164 match = _servingRegExp.firstMatch(line); |
161 } | 165 } |
162 _pubServePortCompleter.complete(int.parse(match[1])); | 166 _pubServePortCompleter.complete(int.parse(match[1])); |
163 }, "waiting for pub serve to emit its port number"); | 167 }, "waiting for pub serve to emit its port number"); |
164 | 168 |
165 return pub; | 169 return pub; |
166 } | 170 } |
OLD | NEW |